axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pezzei <>
Subject Axis 1.2 c++ Client to Axis Java WS
Date Sun, 24 Oct 2004 02:32:25 GMT

I am having quite some problems to get this working:

The Webservice is a simple Echo-Tool, which just returns
what it gets (either a String or an Object (which is nested).

 From the wsdl I created the sources with the wsdl2ws-Tool.
Im am able to compile them and send a String to the java WS.
There it gets properly deserialized but not properly sent back
( i guess the c Deserializer ...)

When I send a ComplexObject, the server throws the following Exception:

stackTrace:org.xml.sax.SAXException: Invalid element in 
myTestWS.model.Person - Adresse
and so on. Adresse is an Object which belongs to the Person object.

The WS is called EchoService, the methods either "echo" and

the SOAP Message the server gets looks like this:
<Person xsi:type="ns2:Person" xmlns:ns2="urn:EchoService" 
<Adresse xsi:type="ns2:Adresse">
   <ort xsi:type="xsd:string">Wien</ort>
   <plz xsi:type="xsd:string">1020</plz>
    <strasse xsi:type="xsd:string">Einweg 2</strasse>
<geburtsdatum xsi:type="xsd:dateTime">2004-10-24T04:16:11Z</geburtsdatum>
<vorname xsi:type="xsd:string">Max</vorname>
<zuname xsi:type="xsd:string">Musterman</zuname>

If I try the client (which I also wrote in java) from
jbuilder, the SOAP Message is multi-ref'd and is accepted by the WS.
Subsequently the Objects are properly returned to the java-client.

Any Hints on this? Can i set Multi-refs in my c++ client?

any help is greatly appreciated


PS: tested unter axis c 1.1, axis c1.2 and axis c current.
jars for the axis java server (which runs under tomcat) are taken
from java axis 1.1 / 1.2R1

View raw message