Hi, all, I write a webservice using Python, implementing a simple 'Echo' method, and use a simple Axis2 client to access this webservice, I do the following steps: 1. wsdl2java.bat -uri http://localhost/Echo.wsdl (generating two java files) 2. write a simple client to invoke the webservice then , I got the following errors:
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Unparseable message</faultstring><detail> <ZSI:ParseFaultDetail xmlns:ZSI="http://www.zolera.com/schemas/ZSI/"> <ZSI:string>Any cannot parse untyped element</ZSI:string> <ZSI:trace>/soapenv:Envelope/soapenv:Body/ns1:Echo/in_str</ZSI:trace> </ZSI:ParseFaultDetail> </detail></SOAP-ENV:Fault> </SOAP-ENV:Body> *My wsdl document is :* <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http=" http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://localhost:80/Echo.wsdl <http://localhost/Echo.wsdl>" targetNamespace="http://localhost:80/Echo.wsdl<http://localhost/Echo.wsdl>" > <message name="EchoRequest"> <part name="in_str" type="xsd:string"/> </message> <message name="EchoResponse"> <part name="result" type="xsd:string"/> </message> <portType name="EchoServer"> <operation name="Echo"> <input message="tns:EchoRequest"/> <output message="tns:EchoResponse"/> </operation> </portType> <binding name="EchoServer" type="tns:EchoServer"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/ <http://schemas.xmlsoap.org/soap/http%22/>> <operation name="Echo"> <soap:operation soapAction="Echo"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="EchoServer"> <port name="EchoServer" binding="tns:EchoServer"> <soap:address location=" http://localhost:80/EchoServer/.py"/<http://localhost/EchoServer/.py%22/> > </port> </service> </definitions> So what's the problem here? Thanks a lot!
