Hello, I'm not sure, that I'm using the right versions - the error must come from something. Here is exactly what I'm doing. The server is AXISC (vers. 1.6b) and the client is AXIS2 (vers. 1.3)
first generating the wsdl: (CLASSPATH=$AXIS_HOME/lib) java org.apache.axis.wsdl.Java2WSDL -l"http://ipepc45.ka.fzk.de:9090/axis/TestService" -uLITERAL -yWRAPPED -T1.2 -n"org.fzk.auger" org.fzk.auger.MathAdd then generating the skeleton: (CLASSPATH=$AXISCPP_DEPLOY/lib) java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -lc++ -sserver -ocpp TestService.wsdl then generating the stubs: (CLASSPATH=$AXIS2_HOME/lib) $AXIS2_HOME/bin/wsdl2java.sh -uri TestService.wsdl -u -s -o java/ -wv 1.1 During query of the service with the AXIS2 client I always get the com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix "SOAP-ENV" exception. If you have a idea what I was making wrong please tell it me. When generating the WSDL with -yDocument the resulting wsdl has the declared function, but without params - so I used the WRAPPED argument. Maybe this is my error? Attached you can find all my files. Kind regards Michael -------- Original-Nachricht -------- > Datum: Mon, 27 Aug 2007 09:33:50 -0500 > Von: Nadir Amra <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: Undeclared namespace prefix "SOAP-ENV" > Ensure you are using SOAP 1.1. !.2 is not supported as of yet. > > Nadir K. Amra > > > "Michael Sutter" <[EMAIL PROTECTED]> wrote on 08/21/2007 09:39:15 AM: > > > Hello list, > > > > I have a problem by accessing a AXISCPP service from an AXIS(2) Java > > client. I have a very simple WSDL, having only one method adding two > > numbers. I must access this service over a Java client, if it is > > possible over a AXIS2 Java client. > > > > The wsdl is generated from a Java Class with java org.apache.axis. > > wsdl.Java2WSDL -l"http://localhost:9090/axis/TestService" -uLITERAL > > -yDOCUMENT -nauger org.fzk.auger.MathAdd > > > > When I generate the client stubs and access the service I always get > > an Exception: > > org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: > > Undeclared namespace prefix "SOAP-ENV" > > at [row,col {unknown-source}]: [2,19] > > at org.apache.axis2.transport.TransportUtils. > > createSOAPMessage(TransportUtils.java:81) > > at org.apache.axis2.description.OutInAxisOperationClient. > > send(OutInAxisOperation.java:356) > > at org.apache.axis2.description.OutInAxisOperationClient. > > execute(OutInAxisOperation.java:294) > > at > org.fzk.auger.MathAddServiceStub.add(MathAddServiceStub.java:151) > > at org.fzk.auger.Client.main(Client.java:14) > > > > Does anybody know how I can solve the exception? Or it is not > > possible to access a c++ service generated with -uLITERAL -yDOCUMENT > > - where I think the problem is from. > > > > You can find the WSDL below - but I dont't think that it is wrong. > > > > Kind regards > > Michael > > > > <?xml version="1.0" encoding="UTF-8"?> > > <wsdl:definitions targetNamespace="http://auger.fzk.org" > xmlns:apachesoap=" > > http://xml.apache.org/xml-soap" xmlns:impl="http://auger.fzk.org" > xmlns:intf=" > > http://auger.fzk.org" 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.4 > Built on Apr 22, 2006 > > (06:55:48 PDT)--> > > <wsdl:types> > > <schema elementFormDefault="qualified" > targetNamespace="http://auger.fzk.org > > " 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="addResponse"> > > > > <wsdl:part element="impl:addResponse" name="parameters"/> > > > > </wsdl:message> > > > > <wsdl:message name="addRequest"> > > > > <wsdl:part element="impl:add" 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> > > > > -- > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
