我正在使用 Axis 1.4 版本并使用org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask生成客户端代码。但是,当我尝试拨打电话时出现以下错误,在此先感谢
java.io.IOException: Chunked input stream failed to receive valid chunk size:<?xmlversion="1.0"
at org.apache.axis.transport.http.ChunkedInputStream.getChunked(ChunkedInputStream.java:155)
at org.apache.axis.transport.http.ChunkedInputStream.read(ChunkedInputStream.java:87)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:453)
at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:559)
at org.apache.axis.Message.getSOAPPartAsString(Message.java:412)
at org.apache.axis.handlers.LogHandler.logMessages(LogHandler.java:89)
at org.apache.axis.handlers.LogHandler.invoke(LogHandler.java:68)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
build.xml 中的目标是,
<target name="generate-java">
<wsdl2java
url="${resources.dir}/2.0/popsp.wsdl"
debug="true"
printstacktraceonfailure="true"
output="src">
<mapping namespace="https://www.dhl.au/popweb/gw/ws/schema/2.0/popws"
package="com.soap.autogen"/>
</wsdl2java>
</target>