-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 As I mentioned in my earlier email, the SOAP-ENV namespace used in the response message is not defined.
Please log a JIRA issue or send a mail to Axis C++ users list. BTW, please do not post these sorts of questions to the dev list. As Sanjiva also mentioned, this list is limited to design and architectural problems. Please use axis-user list. Thanks, Chinthaka Michael Sutter wrote: > Hello Chinthaka, > > I have monitored the request and response and I think I know why the response > can not be queried from the axis2 libraries. > > Here is the request: > <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:add > > xmlns:ns1="http://auger.fzk.org"><ns1:a>5</ns1:a><ns1:b>4</ns1:b></ns1:add></soapenv:Body></soapenv:Envelope> > > and here the response: > HTTP/1.1 200 OK > > Server: Apache Axis C++/1.6.a > > Connection: close > > Content-Length: 348 > > Content-Type: text/xml > > > > <?xml version='1.0' encoding='utf-8' ?> > <SOAP-ENV:Envelope> > <SOAP-ENV:Body> > <SOAP-ENV:Fault> > <faultcode>SOAP-ENV:Server</faultcode> > <faultstring>Unknown exception</faultstring> > <faultactor>ipepc45:9090</faultactor> > <detail><appSpecific>Unknown Exception has occurred</appSpecific> > </detail> > </SOAP-ENV:Fault> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > If I look on the different messages I see a unknown exception in it but I > don't find anything in the logs of my server. Do you have any idea? > To memory the server is axiscpp 1.6 and the client is axis2 1.3. > > Regards Michael > > -------- Original-Nachricht -------- >> Datum: Thu, 06 Sep 2007 00:36:56 -0400 >> Von: Eran Chinthaka <[EMAIL PROTECTED]> >> An: [email protected] >> Betreff: Re: axis cpp service from axis2 Client > > 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> >>>> >> - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4Mq8jON2uBzUhh8RAuvYAJ9rXRFG1pF81xhqgd4/JcUnE0sDfQCdFh6y d/fURL3YQvLRIbhMfoMY3c4= =fvQs -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
