axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa" <dchandrad...@virtusa.com>
Subject RE: java client c++ server doesn't work
Date Thu, 15 Sep 2005 03:42:42 GMT
You can do the same by using a Client_config.wsdd file in the folder u
run the Java client with the following global configuration setting

 

<parameter name="sendMultiRefs" value="false"/>

 

Thanks,

Dushshantha

 

 

________________________________

From: Xavier Toth [mailto:txtoth@gmail.com] 
Sent: Thursday, September 15, 2005 5:01 AM
To: Apache AXIS C User List
Subject: Re: java client c++ server doesn't work

 

Sorry I found the pervious posting and adding :
((org.apache.axis.client.Stub)binding)._setProperty(org.apache.axis.Axis
Engine.PROP_DOMULTIREFS, Boolean.FALSE);
to the java client and solved the problem.



On 9/14/05, Xavier Toth <txtoth@gmail.com> wrote:

I built a java client for the c++ Calculator sample service with the
axis tools but it cause the server to generate a segmentation violation.

I used tcpmon to capture the soap from a java client generated with
axis-wsdl2java which fails and a c++ client that works:
<?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:add
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1=" http://localhost/axis/Calculator ">
<in0 href="#id0"/>
<in1 href="#id1"/>
</ns1:add>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:int"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
<http://schemas.xmlsoap.org/soap/encoding/%22> >1</multiRef>
<multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:int"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
<http://schemas.xmlsoap.org/soap/encoding/%22> >2</multiRef>
</soapenv:Body>
</soapenv:Envelope>

c++ client soap request:
<?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:add xmlns:ns1="http://localhost/axis/Calculator">
<in0 xsi:type="xsd:int">1</in0>
<in1 xsi:type="xsd:int">2</in1>
</ns1:add>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I'm a bit surprised that java clients and c++ servers won't work
together since these are both axis based. Is there something I could do
when generating the java client to get it to generate compatible soap?
I'm guessing that this is a c++ issue with href in the argument elements
in0 and in1?

 


Mime
View raw message