-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael,
The problem seems to be with the soap message. Can you post the response message that you got from the server. It seems to me that SOAP-ENV namespace is not defined in that. Chinthaka Michael Sutter wrote: > Hello list, > > I have a problem when I want to access a axiscpp (vers. 1.6) service from a > axis2 (vers. 1.3) client. I always get a > > org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Undeclared > namespace prefix "SOAP-ENV" > > exception. I wonder about this, because for my opinion the service and client > are generated with the right parameters. The WSDL is generated from a java > class: > > java org.apache.axis.wsdl.Java2WSDL > -l"http://localhost:9090/axis/TestService" -uLITERAL -yWRAPPED -T1.2 > -n"org.fzk.auger" org.fzk.auger.MathAdd > > after that the axiscpp service with: > > java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -lc++ -sserver -oserver > TestService.wsdl > > and least the axis2 client: > > $AXIS2_HOME/bin/wsdl2java.sh -wv 1.1 -uri MathAdd.wsdl -o javaClient > > After deploying everything the named exception is thrown. Made I something > wrong? Is it possible to access a axiscpp service from a axis2 client? I also > tried -b option when generating the client. But not all needed classes are > generated. The classes wrapping the results are not generated. > > The used WSDL can be found below. > > Kind regards > Michael > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions targetNamespace="org.fzk.auger" > xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="org.fzk.auger" > xmlns:intf="org.fzk.auger" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <!--WSDL created by Apache Axis version: 1.2RC2 > Built on Nov 16, 2004 (12:19:44 EST)--> > <wsdl:types> > <schema elementFormDefault="qualified" targetNamespace="org.fzk.auger" > xmlns="http://www.w3.org/2001/XMLSchema"> > <element name="add"> > <complexType> > <sequence> > <element name="a" type="xsd:int"/> > <element name="b" type="xsd:int"/> > </sequence> > </complexType> > </element> > <element name="addResponse"> > <complexType> > <sequence> > <element name="addReturn" type="xsd:int"/> > </sequence> > </complexType> > </element> > </schema> > </wsdl:types> > > <wsdl:message name="addRequest"> > > <wsdl:part element="impl:add" name="parameters"/> > > </wsdl:message> > > <wsdl:message name="addResponse"> > > <wsdl:part element="impl:addResponse" name="parameters"/> > > </wsdl:message> > > <wsdl:portType name="MathAdd"> > > <wsdl:operation name="add"> > > <wsdl:input message="impl:addRequest" name="addRequest"/> > > <wsdl:output message="impl:addResponse" name="addResponse"/> > > </wsdl:operation> > > </wsdl:portType> > > <wsdl:binding name="TestServiceSoapBinding" type="impl:MathAdd"> > > <wsdlsoap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > > <wsdl:operation name="add"> > > <wsdlsoap:operation soapAction=""/> > > <wsdl:input name="addRequest"> > > <wsdlsoap:body use="literal"/> > > </wsdl:input> > > <wsdl:output name="addResponse"> > > <wsdlsoap:body use="literal"/> > > </wsdl:output> > > </wsdl:operation> > > </wsdl:binding> > > <wsdl:service name="MathAddService"> > > <wsdl:port binding="impl:TestServiceSoapBinding" name="TestService"> > > <wsdlsoap:address location="http://localhost:9090/axis/TestService"/> > > </wsdl:port> > > </wsdl:service> > > </wsdl:definitions> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG34PojON2uBzUhh8RAh8KAJ48dVrTkGvvejhRyxi2sFlg5lXnQACeP9+X J2uQqD9vzUpfQyx8fUolACY= =Zlz1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
