axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject Re: Axis 1.2 c++ Client to Axis Java WS
Date Tue, 26 Oct 2004 01:38:52 GMT
This simply does not work because of href/multiref support is missing.

Users look for alternatives, as this is a real interop problem.

Samisa...

--- Ben Pezzei <ben@webstuhl.net> wrote:

> Hi Samisa,
> 
> Tnx for your reply. I admit that I switched to gsoap the same day. About
> one hour later I had a working client, so I won't test/use axis c++ any 
> further (although I kinda liked the c API).
> 
> If you still want to investigate the behaviour I described, I attached
> the sources.
> 
> Samisa Abeysinghe schrieb:
> > Hi Ben,
> >    Do you have a Java client for the same Java service? If yes; what does the Java
client send
> to
> > the service?
> 
> attached as java_request.txt. As you see the XML-File uses multi-refs, 
> whereas the c client sends nested Tags (see my previous post).
> 
> >    Additionaly, if possible, please send the WSDL of the service. That will help
check the
> > generated code and see waht is going wrong.
> 
> The wsdl File is attached.
> 
> I guess that the namespace isn't correctly produced in the generated 
> EchoService.cpp. I found no way to additionally to set some xml Elements
> (in the docs).
> Right now I have no request of the 1.1 Package but basically they
> produced an error: so such operation "echo"
> on the serverside.
> 
> The only thing which worked was the "echo" method, which just
> returned the String it got from the request.
> 
> > von java:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:echoPerson soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="http://soapinterop.org/">
>    <arg0 href="#id0"/>
>   </ns1:echoPerson>
>   <multiRef id="id0" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Person"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:EchoService">
>    <adresse href="#id1"/>
>    <geburtsdatum xsi:type="xsd:dateTime" xsi:nil="true"/>
>    <vorname xsi:type="xsd:string">Reinhard</vorname>
>    <zuname xsi:type="xsd:string">Prehofer</zuname>
>   </multiRef>
>   <multiRef id="id1" soapenc:root="0"
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Adresse"
> xmlns:ns3="urn:EchoService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>    <ort xsi:type="xsd:string">Mauerbach</ort>
>    <plz xsi:type="xsd:string">3001</plz>
>    <strasse xsi:type="xsd:string">Hauptstrasse 132</strasse>
>   </multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> 
> von c:
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <SOAP-ENV:Body>
>     <ns1:echoPerson xmlns:ns1="http://silk.webstuhl.net/cgi-bin/recv.pl">
>     <Person xsi:type="ns2:Person" xmlns:ns2="urn:EchoService">
>     <Adresse xsi:type="ns2:Adresse" xmlns:ns2="urn:EchoService">
>        <ort xsi:type="xsd:string">Wien</ort>
>        <plz xsi:type="xsd:string">1020</plz>
>        <strasse xsi:type="xsd:string">Einweg 2</strasse>
>     </Adresse>
>     <geburtsdatum xsi:type="xsd:dateTime">2004-10-21T20:23:30Z</geburtsdatum>
>     <vorname xsi:type="xsd:string">Max</vorname>
>     <zuname xsi:type="xsd:string">Musterman</zuname>
>     </Person></ns1:echoPerson>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> von c (Attr Datum nicht gesetzt)
> <?xml version='1.0' encoding='utf-8' ?>
>   <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <SOAP-ENV:Body>
>     <ns1:echoPerson xmlns:ns1="http://silk.webstuhl.net/cgi-bin/recv.pl">
>     <Person xsi:type="ns2:Person" xmlns:ns2="urn:EchoService">
>       <Adresse xsi:type="ns2:Adresse" xmlns:ns2="urn:EchoService">
>         <ort xsi:type="xsd:string">Wien</ort>
>         <plz xsi:type="xsd:string">1020</plz>
>         <strasse xsi:type="xsd:string">Einweg 2</strasse>
>       </Adresse><geburtsdatum
> xsi:type="xsd:dateTime">1900-01-00T-1:1076713472:00Z</geburtsdatum>
>       <vorname xsi:type="xsd:string">Max</vorname>
>       <zuname xsi:type="xsd:string">Musterman</zuname>
>     </Person>
>     </ns1:echoPerson>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://192.168.0.1:8080/axis/services/EchoService"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://192.168.0.1:8080/axis/services/EchoService"
> xmlns:intf="http://192.168.0.1:8080/axis/services/EchoService"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:EchoService"
> 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.2RC1
> Built on Sep 29, 2004 (08:29:40 EDT)-->
>  <wsdl:types>
>   <schema targetNamespace="urn:EchoService" xmlns="http://www.w3.org/2001/XMLSchema">
>    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>    <complexType name="Adresse">
>     <sequence>
>      <element name="ort" nillable="true" type="soapenc:string"/>
>      <element name="plz" nillable="true" type="soapenc:string"/>
>      <element name="strasse" nillable="true" type="soapenc:string"/>
>     </sequence>
>    </complexType>
>    <complexType name="Person">
>     <sequence>
>      <element name="adresse" nillable="true" type="tns1:Adresse"/>
>      <element name="geburtsdatum" nillable="true" type="xsd:dateTime"/>
>      <element name="vorname" nillable="true" type="soapenc:string"/>
>      <element name="zuname" nillable="true" type="soapenc:string"/>
>     </sequence>
>    </complexType>
>   </schema>
>  </wsdl:types>
> 
>    <wsdl:message name="echoPersonResponse">
> 
>       <wsdl:part name="echoPersonReturn" type="tns1:Person"/>
> 
>    </wsdl:message>
> 
>    <wsdl:message name="echoPersonRequest">
> 
>       <wsdl:part name="person" type="tns1:Person"/>
> 
>    </wsdl:message>
> 
>    <wsdl:message name="echoRequest">
> 
>       <wsdl:part name="text" type="soapenc:string"/>
> 
>    </wsdl:message>
> 
>    <wsdl:message name="echoResponse">
> 
>       <wsdl:part name="echoReturn" type="soapenc:string"/>
> 
>    </wsdl:message>
> 
>    <wsdl:portType name="EchoService">
> 
>       <wsdl:operation name="echo" parameterOrder="text">
> 
>          <wsdl:input message="impl:echoRequest" name="echoRequest"/>
> 
>          <wsdl:output message="impl:echoResponse" name="echoResponse"/>
> 
>       </wsdl:operation>
> 
>       <wsdl:operation name="echoPerson" parameterOrder="person">
> 
>          <wsdl:input message="impl:echoPersonRequest" name="echoPersonRequest"/>
> 
>          <wsdl:output message="impl:echoPersonResponse" name="echoPersonResponse"/>
> 
>       </wsdl:operation>
> 
>    </wsdl:portType>
> 
>    <wsdl:binding name="EchoServiceSoapBinding" type="impl:EchoService">
> 
>       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
> 
>       <wsdl:operation name="echo">
> 
>          <wsdlsoap:operation soapAction=""/>
> 
>          <wsdl:input name="echoRequest">
> 
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://services.myTestWS" use="encoded"/>
> 
>          </wsdl:input>
> 
>          <wsdl:output name="echoResponse">
> 
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://192.168.0.1:8080/axis/services/EchoService" use="encoded"/>
> 
>          </wsdl:output>
> 
>       </wsdl:operation>
> 
>       <wsdl:operation name="echoPerson">
> 
>          <wsdlsoap:operation soapAction=""/>
> 
>          <wsdl:input name="echoPersonRequest">
> 
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://services.myTestWS" use="encoded"/>
> 
>          </wsdl:input>
> 
>          <wsdl:output name="echoPersonResponse">
> 
>             <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://192.168.0.1:8080/axis/services/EchoService" use="encoded"/>
> 
>          </wsdl:output>
> 
>       </wsdl:operation>
> 
>    </wsdl:binding>
> 
>    <wsdl:service name="EchoServiceService">
> 
>       <wsdl:port binding="impl:EchoServiceSoapBinding" name="EchoService">
> 
>          <wsdlsoap:address location="http://192.168.0.1:8080/axis/services/EchoService"/>
> 
>       </wsdl:port>
> 
>    </wsdl:service>
> 
> </wsdl:definitions>
> 



		
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

Mime
View raw message