<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<META http-equiv="Content-Type" content="text/html; charset=shift_jis"> | |
<!--*** This is a generated file. Do not edit. ***--> | |
<link rel="stylesheet" href="../skin/tigris.css" type="text/css"> | |
<link rel="stylesheet" href="../skin/mysite.css" type="text/css"> | |
<link rel="stylesheet" href="../skin/site.css" type="text/css"> | |
<link media="print" rel="stylesheet" href="../skin/print.css" type="text/css"> | |
<title>WebServices - Axis</title> | |
</head> | |
<body bgcolor="white" class="composite"> | |
<!--================= start Banner ==================--> | |
<div id="banner"> | |
<table width="100%" cellpadding="8" cellspacing="0" summary="banner" border="0"> | |
<tbody> | |
<tr> | |
<!--================= start Group Logo ==================--> | |
<td align="left"> | |
<div class="groupLogo"> | |
<a href="http://ws.apache.org/"><img border="0" class="logoImage" alt="The Apache WebServices Project" src="../images/project-logo.jpg"></a> | |
</div> | |
</td> | |
<!--================= end Group Logo ==================--> | |
<!--================= start Project Logo ==================--><td align="right"> | |
<div class="projectLogo"> | |
<a href="http://ws.apache.org/axis/"><img border="0" class="logoImage" alt="The Apache Axis Project" src="../images/axis.jpg"></a> | |
</div> | |
</td> | |
<!--================= end Project Logo ==================--> | |
<!--================= start Search ==================--><td valign="top" rowspan="2" align="right" class="search"> | |
<form target="_blank" action="http://www.google.com/search" method="get"> | |
<table summary="search" border="0" cellspacing="0" cellpadding="0"> | |
<tr> | |
<td bgcolor="#a5b6c6" colspan="3"><img height="10" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> | |
</tr> | |
<tr> | |
<td colspan="3"><img height="8" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> | |
</tr> | |
<tr> | |
<td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap"><input value="ws.apache.org" name="sitesearch" type="hidden"><input size="10" name="q" id="query" type="text"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><input name="Search" value="GO" type="submit"> | |
<br> | |
Search WS</td><td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> | |
</tr> | |
<tr> | |
<td colspan="3"><img height="7" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> | |
</tr> | |
<tr> | |
<td class="bottom-left-thick"></td><td bgcolor="#a5b6c6"><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td class="bottom-right-thick"></td> | |
</tr> | |
</table> | |
</form> | |
</td> | |
<!--================= end Search ==================--> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<!--================= end Banner ==================--> | |
<!--================= start Main ==================--> | |
<table width="100%" cellpadding="0" cellspacing="0" border="0" summary="nav" id="breadcrumbs"> | |
<tbody> | |
<!--================= start Status ==================--> | |
<tr class="status"> | |
<td> | |
<!--================= start BreadCrumb ==================--><a href="http://www.apache.org/">Apache</a> | <a href="http://ws.apache.org/">WS</a><a href=""></a> | |
<!--================= end BreadCrumb ==================--></td><td id="tabs"> | |
<!--================= start Tabs ==================--> | |
<div class="tab"> | |
<span class="selectedTab"><a class="base-selected" href="../index.html">WebServices-Axis</a></span> | |
</div> | |
<!--================= end Tabs ==================--> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!--================= end Status ==================--> | |
<table id="main" width="100%" cellpadding="8" cellspacing="0" summary="" border="0"> | |
<tbody> | |
<tr valign="top"> | |
<!--================= start Menu ==================--> | |
<td id="leftcol"> | |
<div id="navcolumn"> | |
<div class="menuBar"> | |
<div class="menu"> | |
<span class="menuLabel">Axis</span> | |
<div class="menuItem"> | |
<a href="/axis/ja/index.html">ͶßÉ</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/news.html">¨mç¹</a> | |
</div> | |
<div class="menuItem"> | |
<a href="index.html">FAQ/Wiki</a> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">®ÉQÁ</span> | |
<div class="menuItem"> | |
<a href="/axis/ja/overview.html">Tv</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/cvs.html">CVS |Wg</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/mail.html">[OXg</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/ref.html">t@XCu</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/bugs.html">oO</a> | |
</div> | |
<div class="menuItem"> | |
<a href="howtobuild.html">TCg\zû@</a> | |
</div> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">Axis (Java)</span> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/index.html">hL g</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/install.html">CXg[</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/user-guide.html">[UKCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/developers-guide.html">JÒKCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/integration-guide.html">KCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/architecture-guide.html">A[LeN`KCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/reference.html">t@XKCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/reading.html">ÇKCh</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/java/requirements.html">v</a> | |
</div> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">Axis (C++)</span> | |
<div class="menuItem"> | |
<a href="/axis/ja/cpp/index.html">Axis C++ ÅVÅ[X</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/cpp/documentation.html">hL g</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/cpp/download.html">_E[h</a> | |
</div> | |
<div class="menuItem"> | |
<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?AxisCPPProjectPages">Wiki y[W</a> [OTCg] | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/cpp/who.html">oÐî</a> | |
</div> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">_E[h</span> | |
<div class="menuItem"> | |
<a href="/axis/ja/releases.html">[X</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/interim.html">bèÅ</a> | |
</div> | |
<div class="menuItem"> | |
<a href="http://cvs.apache.org/viewcvs/ws-axis/">\[XR[h</a> [OTCg] | |
</div> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">ÖAvWFNg</span> | |
<div class="menuItem"> | |
<a href="http://ws.apache.org/wsif/">WSIF</a> [OTCg] | |
</div> | |
<div class="menuItem"> | |
<a href="http://cvs.apache.org/viewcvs/*checkout*/ws-wsil/java/README.htm">WSIL</a> [OTCg] | |
</div> | |
<div class="menuItem"> | |
<a href="http://www-124.ibm.com/developerworks/projects/wsdl4j/">WSDL4J</a> [OTCg] | |
</div> | |
<div class="menuItem"> | |
<a href="http://www.uddi4j.org/">UDDI4J</a> [OTCg] | |
</div> | |
</div> | |
<div class="menu"> | |
<span class="menuLabel">»Ì¼</span> | |
<!-- | |
<div class="menuItem"> | |
<a href="../site.html">TCgSÄ</a> | |
</div> | |
--> | |
<div class="menuItem"> | |
<a href="/axis/ja/who.html">oÐî</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/contact.html">Aæ</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/legal.html">@ÖA</a> | |
</div> | |
<div class="menuItem"> | |
<a href="/axis/ja/docs.html">/hL g</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</td> | |
<!--================= end Menu ==================--> | |
<!--================= start Content ==================--><td> | |
<div id="bodycol"> | |
<div class="app"> | |
<div align="center"> | |
<h1>WebServices - Axis</h1> | |
</div> | |
<div class="h3"> | |
<div class="h3"> | |
<h3>WebServices - Axis - FAQ/Wiki</h3> | |
</div> | |
<p>[|óÒ: ±Ìy[WÍ FAQ/Wiki y[WðÃIÉ|óµ½àÌÅ·BÅVÌàeÉ«ܵÄÍ<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages">{Æ FAQ/Wiki</a> 𲺳¢B]</p> | |
<div class="h4"> | |
<h4>NCAgÖA</h4> | |
</div> | |
<ol> | |
<li><a name="JavaTimeout">[WSDL2Java X^uðgp·éÛÉAÇÌæ¤ÉµÄ^CAEgðÝè·éÌÅ·©?]</a> [ÒWú 2004N524úpm8:22 Å] | |
<p><b>¿â: WSDL2Java X^uðgp·éÛÉAÇÌæ¤ÉµÄ^CAEgðÝè·éÌÅ·©?</b></p> | |
<p>ñ: ¶¬³ê½X^uSĪg£·é org.apache.axis.client.Stub NXÉ setTimeout \bhª èÜ·B</p> | |
<p>±±É Foo Æ¢¤¼OÌT[rXÉ^CAEgðÝè·éû@ð¦µÜ·B</p> | |
<pre> FooServiceLocator loc = new FooServiceLocator(); | |
FooService binding = loc.getFooService(); | |
org.apache.axis.client.Stub s = (Stub) binding; | |
s.setTimeout(1000); // 1bB~bÅ | |
</pre> | |
<p>Axis 1.1 È~ÌftHgÌ^CAEgÍ60bÅ·BAxis 1.0 ÉÍftHgÌ^CAEgª èܹñŵ½(ÂÜèftHg0b)B±Ì^CAEglÍ HTTP \PbgÉÝè³êéàÌÅ ÁÄAAxis 1.1 ÉÍÈ¢ÀðKvÆ·éRlNV^CAEgÅÍ èܹñB</p> | |
<p><b>¿â: setTimeout(15*10000)A é¢Íæèå«ÈlðÝèµÄ http Ì url ÉÚ±·éÆȺÌG[ªÅÜ·B½¾µ localhost Ì url ÅÍG[ªÅܹñB</b></p> | |
<b><pre> java.net.ConnectException<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ConnectException">?</a>: Connection timed out: connect | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.socketConnect(Native Method) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.doConnect(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:305) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.connectToAddress<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ToAddress">?</a>(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:171) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.connect(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:158) | |
at java.net.Socket.connect(Socket.java:452) | |
at java.net.Socket.connect(Socket.java:402) | |
at sun.net.NetworkClient<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=NetworkClient">?</a>.doConnect(NetworkClient<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=NetworkClient">?</a>.java:139) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.openServer(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:402) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.openServer(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:618) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.<init>(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:306) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.<init>(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:267) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:339) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:320) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:315) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.plainConnect(HttpURLConne<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConne">?</a>ction.java:512) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.connect(HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.java:489) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.getInputStream<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=InputStream">?</a>(HttpURLCon<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLCon">?</a>nection.java:617) | |
at java.net.URL.openStream(URL.java:913) | |
at org.apache.xerces.readers.DefaultReaderFactory<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultReaderFactory">?</a>.createReader(DefaultRe<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultRe">?</a>aderFactory.java:149) | |
at org.apache.xerces.readers.DefaultEntityHandler<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultEntityHandler">?</a>.startReadingFromDocume<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ReadingFromDocume">?</a>nt(DefaultEntityHandler<A | |
href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultEntityHandler">?</a>.java:491) | |
at org.apache.xerces.framework.XMLParser.parseSomeSetup<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SomeSetup">?</a>(XMLParser.java:312) | |
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) | |
at org.apache.xerces.jaxp.DocumentBuilderImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DocumentBuilderImpl">?</a>.parse(DocumentBuilderImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DocumentBuilderImpl">?</a>.java:195) | |
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322) | |
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367) | |
at org.apache.axis.wsdl.symbolTable.SymbolTable<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SymbolTable">?</a>.populate(SymbolTable<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SymbolTable">?</a>.java:384) | |
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245) | |
at java.lang.Thread.run(Thread.java:534)java.net.ConnectException<A | |
href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ConnectException">?</a>: | |
Connection timed out: connect at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.socketConnect(Native Method) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.doConnect(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:305) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.connectToAddress<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ToAddress">?</a>(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:171) | |
at java.net.PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.connect(PlainSocketImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=PlainSocketImpl">?</a>.java:158) | |
at java.net.Socket.connect(Socket.java:452) | |
at java.net.Socket.connect(Socket.java:402) | |
at sun.net.NetworkClient<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=NetworkClient">?</a>.doConnect(NetworkClient<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=NetworkClient">?</a>.java:139) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.openServer(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:402) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.openServer(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:618) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.<init>(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:306) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.<init>(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:267) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:339) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:320) | |
at sun.net.www.http.<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.New(<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?HttpClient">HttpClient</a>.java:315) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.plainConnect(HttpURLConne<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConne">?</a>ction.java:512) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.connect(HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.java:489) | |
at sun.net.www.protocol.http.HttpURLConnection<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLConnection">?</a>.getInputStream<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=InputStream">?</a>(HttpURLCon<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=HttpURLCon">?</a>nection.java:617) | |
at java.net.URL.openStream(URL.java:913) | |
at org.apache.xerces.readers.DefaultReaderFactory<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultReaderFactory">?</a>.createReader(DefaultRe<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultRe">?</a>aderFactory.java:149) | |
at org.apache.xerces.readers.DefaultEntityHandler<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultEntityHandler">?</a>.startReadingFromDocume<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=ReadingFromDocume">?</a>nt(DefaultEntityHandler<A | |
href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DefaultEntityHandler">?</a>.java:491) | |
at org.apache.xerces.framework.XMLParser.parseSomeSetup<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SomeSetup">?</a>(XMLParser.java:312) | |
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) | |
at org.apache.xerces.jaxp.DocumentBuilderImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DocumentBuilderImpl">?</a>.parse(DocumentBuilderImpl<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=DocumentBuilderImpl">?</a>.java:195) | |
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322) | |
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367) | |
at org.apache.axis.wsdl.symbolTable.SymbolTable<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SymbolTable">?</a>.populate(SymbolTable<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=SymbolTable">?</a>.java:384) | |
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245) | |
at java.lang.Thread.run(Thread.java:534) | |
</pre></b> | |
<p><b>¼ÉÝèªKvÅ·©?</b></p> | |
</li> | |
<hr> | |
<li><a name="AxisProxy">[vLVÍÇÌæ¤ÉµÄÝè·éÌÅ·©?]</a> [ÒWú 2004N316úam5:16 Å] | |
<p><b>vLVÍÇÌæ¤ÉµÄÝè·éÌÅ·©?</b></p> | |
<p>ñ: vLVÌÝèÉ͢©Ìû@ª èÜ·B</p> | |
<p>ÅÌû@ÍAvLVîñðwè·éVXevpeBðÝè·éû@Å·B</p> | |
<p>±êðs¤ÉÍAJava ðN®·éÛÉȺÌIvVðR}hCÉÇÁµÜ·B</p> | |
<p>-Dhttp.proxyHost=proxy.mycompany.com -Dhttp.proxyPort=80 -Dhttp.proxyUser=myusername -Dhttp.proxyPassword=mypassword</p> | |
<p>2ÂßÌû@ÍAJava 1.4.x ÅÌbÅ·ªA<a href="http://java.sun.com/j2se/1.4.1/docs/api/java/net/Authenticator.html">[Authenticator]</a> ðÝè·éû@Å·B</p> | |
<p>ȺÌæ¤ÉµÄR[hxÅVXevpeBðÝè·é±ÆàÅ«Ü·B</p> | |
<p>System.setProperty("http.proxyHost","192.168.100.14");</p> | |
<p>System.setProperty("http.proxyPort","4480");</p> | |
<p>±Ìû@ÍAproxy plus Ìæ¤ÈvLVAvP[Vðgp·él̽ßÌàÌÅ·B</p> | |
<p><b>¿â: vLVT|[gÉÖµÄxâo±¥ÈÇÍ èÜ·©?</b></p> | |
<p>ñ: Java Ì»ÝÌ[XÍAî{FØðgp·évLVT[oµ©T|[gµÄ¢Ü¹ñBnutshell ÅÍ[U¼ÆpX[hª base64 ÅGR[h³êÄAhttp NGXgÌwb_ÉÇÁ³êÜ·BÚ×Í <a href="http://www.kbcafe.com/articles/HowTo.Base64.pdf">[How to Base-64 (Base-64 Ìdû)]</a> 𲺳¢B</p> | |
<p>Windows Ì Java 1.4.2 ÅÍASun Í NTLM FØÌT|[gðÇÁµ½æ¤Å·BÚ×Í <a href="http://java.sun.com/j2se/1.4.2/changes.html#networking">[Enhancements and Changes in Java 2 SE Version 1.4.2 (Java 2 SE o[W 1.4.2 ɨ¯é@\»ÆÏX)]</a> 𲺳¢B</p> | |
<p>NTLM FØÍêÊIÉ Microsoft Proxy Server Ågp³êÜ·BT[hp[eB»\tgEFAðgp¹¸ÉAJava ÌÈOÌ[XÌàÆÅ¼Ú NTLM FØðgp·éÌÍsÂ\Å·B(³ÊÈÔðß²³È¢Åº³¢)B</p> | |
<p>Microsoft Proxy Server ÉÖ·éâèÌÚ×ͱ¿ç𲺳¢B<a href="http://www.vamphq.com/jwsfaq.html#msproxy">[Unofficial Java Web Start/JNLP FAQ (AItBVÈ Java Web Start/JNLP FAQ)]</a></p> | |
<p>NTLM ÌZpIÈc_É¢Äͱ¿ç𲺳¢B<a href="http://davenport.sourceforge.net/ntlm.html">[The NTLM Authentication Protocol (NTLM FØvgR)]</a>B</p> | |
<p>»ÝÌƱëANTLM T|[gÉÖµÄÍ <a href="http://jakarta.apache.org/commons/httpclient/">[Jakarta Commons HttpClient]</a> ðgp·é±Æð¨©ßµÜ·B</p> | |
</li> | |
<hr> | |
<li><a name="KeepAlive">[Axis Í HTTP 1.1 Keep-Alive wb_ðT|[gµÄ¢Ü·©?]</a> [ÒWú 2003N1124úpm5:32 Å] | |
<p><b>¿â: Axis Í HTTP 1.1 Keep-Alive wb_ðT|[gµÄ¢Ü·©?</b></p> | |
<p>ñ: <a href="http://ietf.org/rfc/rfc2616.txt">[HTTP 1.1 specification (HTTP 1.1 dl)]</a> ÅÍAHTTP Ú±ÌI[vÆN[YÉÖA·éI[owbhðŬÀÉ·é½ßÉAKeep-Alive wb_É¢ľyµÄ¢Ü·B</p> | |
<p>ÀÛÌƱë Keep-Alive ÍAïÐÌÝèÅÍvLVT[oª éÌÅÁÉ¿lª éí¯ÅÍ èܹñB</p> | |
<p>Keep-Alive wb_ðgpµ½¢êÍA<a href="http://jakarta.apache.org/commons/httpclient">[Jakarta Commons HttpClient package (Jakarta Commons HttpClient pbP[W)]</a> Æ¤É org.apache.axis.transport.http.CommonsHTTPSender NXðgp·×«Å·B</p> | |
<p>ÖA·égsbN: <a href="http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16522">http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16522</a></p> | |
</li> | |
<hr> | |
<li><a name="AxisClientWSDD">[AXIS NCAgÉ client-config.wsdd ðÊm³¹éÉÍǤ·ê΢¢ÌÅ·©?]</a> [ÒWú 2004N41úam5:21 Å] | |
<p><b>AXIS É client-config.wsdd ð©Â¯³¹éÉÍǤ·ê΢¢ÌÅ·©?</b></p> | |
<p>AXIS ÍNCAg¤ÅnhÌgpðT|[gµÄ¢ÄA<a href="http://ws.apache.org/ws-fx/">[WS-FX]</a> vWFNg̽ͱÌÁ¥ðpµÄÀ³êĢܷBNCAgÌÝèîñÍ client-config.wsdd ÉÜÜêĢܷB</p> | |
<p>ftHgÅÍAAXIS ÌNCAgR[hÍ2ÓűÌt@CðTµÜ·B</p> | |
<p>1) ܸÍAAXISªN®µÄ¢évZXÌìÆfBNgðmFµÜ·Bൻ±Å client-config.wsdd ª©Â©êλêðgpµÜ·B</p> | |
<p>2) ൠclient-config.wsdd ª©Â©çȯêÎ org/apache/axis/client pbP[WÌÌNXpXðmFµÜ·B</p> | |
<p>(àµÝèt@CðÊXÌêÉu«½¢ÌÅ êÎ) client-config.wsdd t@CÌêð¾¦IÉwè·é±ÆàÂ\Å·B±êðs¤ÉÍAR}hCðgpµÄȺÌæ¤ÉVXevpeBðÝè·éKvª èÜ·B</p> | |
<pre>java -Daxis.ClientConfigFile=/location/of/client-config.wsdd ... | |
</pre> | |
<p>±êÍ AntÅA<java> ÉlXg³ê½ <systemproperty> vfðgpµÄs¤±ÆàÅ«Ü·B</p> | |
<pre><sysproperty key="axis.ClientConfigFile" value="/location/of/client-config.wsdd"> | |
</pre> | |
</li> | |
<hr> | |
<li><a name="AxisCommonsHTTP">[Apache Jakarta Commons-HttpClient ðgpµÄÚ±ðv[·éÉÍAAxis NCAgðÇÌæ¤ÉÝè·ê΢¢ÌÅ·©?]</a> [ÒWú 2004N526úam9:49 Å] | |
<p><b><a href="http://jakarta.apache.org/commons/httpclient/">[Apache Jakarta Commons-HttpClient]</a> ðgpµÄÚ±ðv[·éÉÍAAxis NCAgðÇÌæ¤ÉÝè·ê΢¢ÌÅ·©?</b></p> | |
<p>ñ: àµNCAgªWebAvP[VƵÄfvC³êÄ¢éÌÅ êÎACLASSPATH é¢Í WEB-INF/lib É commons-httpclient ðCXg[·éKvª èÜ·BൠAxis ð\[X©çrh·éÌÅ êÎAAxis ˶fBNgÉ commons-httpclient ðu¢Ä CommonsHTTPSender NXªrh³êéæ¤É·éKvª èÜ·B</p> | |
<p>ÉAAxis ª HTTP ðîµÄbZ[WðéA é¢Íó¯æéÛÉAWIÈ HTTPSender ÌãíèÉ CommonsHTTPSender ðgp·éæ¤ÉÝè³ê½ client-config.wsdd ðCXg[·éKvª èÜ·B±±Éáð¦µÜ·B</p> | |
<pre><?xml version="1.0" encoding="UTF-8"?> | |
<deployment name="commonsHTTPConfig" | |
xmlns="http://xml.apache.org/axis/wsdd/" | |
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> | |
<transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender" /> | |
<transport name="local" pivot = "java:org.apache.axis.transport.local.LocalSender" /> | |
<transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender" /> | |
</deployment></pre> | |
<p>ÅãÉARlNVv[ÌftHgÌÝè (v[TCYA^CAEgÈÇ) 𲮵ܷB±êçÍ org.apache.axis.components.net.CommonsHTTPClientProperties C^[tF[XÉè`³êÄ¢ÄAAxis ÌvOÂ\ÈSÄÌR|[lg©çgp³êé AxisProperties<a href="http://nagoya.apache.org/wiki/apachewiki.cgi?action=edit&id=AxisProperties">?</a> API ðgpµÄÝè·é±ÆªÅ«Ü·B»êçÌÝèÉεÄÁÊȲ®ðs¤Kvª éêÍACommonsHTTPClientProperties C^[tF[XÌ©ªpÌÀðñ·é±ÆàÅ«Ü·B»Ì½ßÉÍ commons-discovery API ðgpµÜ·B(±êÉÍ Axis 1.2 ªKvÅ·)</p> | |
</li> | |
<hr> | |
<li><a name="AxisWebStart">[Axis Å Web Start ðgp·éÉÍǤ·ê΢¢ÌÅ·©?]</a> [ÒWú 2003N1120úpm11:38 Å] | |
<p><b>¿â: <a href="http://java.sun.com/products/javawebstart/">[Web Start]</a> ©ç§¿ãªéAvP[VÅ Axis ðgp·é±ÆÍÅ«Ü·©?</b></p> | |
<p>ñ: Í¢B ȽÌAvP[VÉÜÜêéSÄÌ jar ð¼µÄASÄÌR[hªKØÈZL eBp[~bVÅÀs³êé±ÆðÛØ·éKvª èÜ·BWeb Start Éæ觳êéZL eBfÍAAvP[VªA_E[h³ê½T[oÈOÌT[oÉÚ±ð·é±Æðh¬Ü·B</p> | |
<p>Web Start Æ FØvLVT[oÌgpÅAñ³ê½âèª é±ÆÉӵľ³¢BAxis ÅvLVT[oðgp·éÛÌÚ×É¢ÄÍ <a href="http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/AxisProxy">/AxisProxy</a> 𲺳¢B</p> | |
<p>³çÉâèª èÜ·BJava Web Start ÍVXevpeB "proxyHost" Æ "proxyPort" ðÝèµÜ·ªAAxis Í "http.proxyHost" Æ "http.proxyPort" ðKvƵܷBÅ·©çÌNCAgÅÍȺÌR[hðgpµÜ·B</p> | |
<pre> // Java Web Start ÍVXevpeB "proxyHost" Æ "proxyPort" ðÝèµÜ·ªAAxis Í "http.proxyHost" Æ "http.proxyPort" ðKvƵܷ! | |
// https.* àÝè·éKvª èÜ·©? | |
if ((null == System.getProperty ("http.proxyHost")) && (null != System.getProperty ("proxyHost"))) { | |
System.setProperty ("http.proxyHost", System.getProperty ("proxyHost")); | |
} | |
if ((null == System.getProperty ("http.proxyPort")) && (null != System.getProperty ("proxyPort"))) { | |
System.setProperty ("http.proxyPort", System.getProperty ("proxyPort")); | |
} | |
</pre> | |
<p>Web Start ÉÖ·é³çÈéîñÆ jar t@C̼É¢Äͱ¿ç𲺳¢B</p> | |
<pre> <a href="http://www.vamphq.com/jwsfaq.html">[Unofficial Java Web Start/JNLP FAQ]</a> | |
<a href="http://java.sun.com/products/javawebstart/faq.html">[Sun Java Web Start FAQ ]</a> | |
</pre> | |
</li> | |
<hr> | |
<li><a name="AxisClientConfiguration">[Axis NCAgÅÇÌæ¤ÉµÄnhðÝè·ê΢¢ÌÅ·©?]</a> [ÒWú 2004N52úam5:18 Å] | |
<p><b>Axis NCAgÅÇÌæ¤ÉµÄnhðÝè·ê΢¢ÌÅ·©?</b></p> | |
<p>T[rXIuWFNgðCX^X»·éÛÉA©ªpÌ EngineConfiguration ðñµÜ·B©ªpÌÝèð\z·éû@͢© èÜ·B</p> | |
<ul> | |
<li>T[o¤ÌfvCgfBXNv^Ìæ¤ÉAWSDD-XML ðgp·éB</li> | |
</ul> | |
<dl> | |
<dt></dt> | |
<dd>±ÌáÍ HTTP-transport-chain ÌNGXgt[ÆX|Xt[ɨ¯é SimpleSessionHandler ðÝèµÜ·B</dd> | |
</dl> | |
<pre> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="..." > | |
<handler type="java:org.apache.axis.handlers.SimpleSessionHandler" | |
name="SimpleSessionHandler"/> | |
<transport name="http" | |
pivot="java:org.apache.axis.transport.http.HTTPSender"> | |
<requestFlow><handler type="SimpleSessionHandler"/></requestFlow> | |
<responseFlow><handler type="SimpleSessionHandler"/></responseFlow> | |
</transport>" | |
</deployment> | |
</pre> | |
<dl> | |
<dt></dt> | |
<dd>±Ì^¦ç꽶ñ©ç EngineConfiguration ð¾éR[hÍÌæ¤ÉÈèÜ·B</dd> | |
</dl> | |
<pre> EngineConfiguration clientConfig = (EngineConfiguration) new XMLStringProvider(WSDDString); | |
</pre> | |
<ul> | |
<li>EngineConfiguration C^[tF[XðÀ·é©ªpÌNXð\zµÜ·B</li> | |
</ul> | |
<ul> | |
<li>ªIÉÝèÂ\Èù¶Ì EngineConfiguration NXðgpµÜ·B</li> | |
</ul> | |
<dl> | |
<dt></dt> | |
<dd>á¦Î SimpleProvider Í Transport chain ÌfvCðFßÜ·B</dd> | |
<dt></dt> | |
<dd>ȺÌáÍãLÌ WSDD Ư¶±Æðs¢Ü·B</dd> | |
</dl> | |
<pre> import org.apache.axis.configuration.SimpleProvider; | |
import org.apache.axis.EngineConfiguration; | |
import org.apache.axis.Handler; | |
import org.apache.axis.SimpleChain; | |
import org.apache.axis.SimpleTargetedChain; | |
import org.apache.axis.handlers.SimpleSessionHandler; | |
import org.apache.axis.transport.http.HTTPSender; | |
import org.apache.axis.transport.http.HTTPTransport; | |
EngineConfiguration createClientConfig() | |
{ | |
SimpleProvider clientConfig=new SimpleProvider(); | |
Handler sessionHandler=(Handler)new SimpleSessionHandler(); | |
SimpleChain reqHandler=new SimpleChain(); | |
SimpleChain respHandler=new SimpleChain(); | |
reqHandler.addHandler(sessionHandler); | |
respHandler.addHandler(sessionHandler); | |
Handler pivot=(Handler)new HTTPSender(); | |
Handler transport=new SimpleTargetedChain(reqHandler, pivot, respHandler); | |
clientConfig.deployTransport(HTTPTransport.DEFAULT_TRANSPORT_NAME,transport); | |
return clientConfig; | |
} | |
</pre> | |
<p>WSDL2Java ª¶¬µ½R[hðgp·éÛA(Service ðg£µ½) XYServiceLocator ÍÝèð^¦éRXgN^ðñµÜ¹ñB¶¬³ê½R[hðC³µ½È¯êÎAȺÌæ¤ÉµÄηé±ÆªÅ«Ü·B</p> | |
<pre> EngineConfiguration clientConfig=getClientConfig(); | |
XYServiceLocator service=new XYServiceLocator(); | |
service.setEngineConfiguration(clientConfig); | |
service.setEngine(new AxisClient(clientConfig)); | |
XY myservice=service.getmyservice(); | |
</pre> | |
</li> | |
</ol> | |
</div> | |
</div> | |
</div> | |
</td> | |
<!--================= end Content ==================--> | |
</tr> | |
</tbody> | |
</table> | |
<!--================= end Main ==================--> | |
<!--================= start Footer ==================--> | |
<div id="footer"> | |
<table summary="footer" cellspacing="0" cellpadding="4" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<!--================= start Copyright ==================--> | |
<td colspan="2"> | |
<div align="center"> | |
<div class="copyright"></div> | |
</div> | |
</td> | |
<!--================= end Copyright ==================--> | |
</tr> | |
<tr> | |
<td align="left"> | |
<!--================= start Host ==================--> | |
<!--================= end Host ==================--></td><td align="right"> | |
<!--================= start Credits ==================--> | |
<div align="right"> | |
<div class="credit"> | |
<a href="http://validator.w3.org/check/referer"><img width="88" height="31" alt="Valid HTML 4.01!" src="../skin/images/valid-html401.png" class="logoImage"></a><a href="http://jigsaw.w3.org/css-validator/"><img width="88" height="31" alt="Valid CSS!" src="../skin/images/vcss.png" class="logoImage"></a><a href="http://xml.apache.org/forrest/"><img border="0" class="logoImage" alt="Built with Apache Forrest" src="../images/built-with-forrest-button.png" width="88" height="31"></a> | |
</div> | |
</div> | |
<!--================= end Credits ==================--> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<!--================= end Footer ==================--> | |
</body> | |
</html> |