私は 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>