axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krishna <>
Subject Re: getting attributes from the SoapResponse
Date Fri, 01 Jul 2005 19:45:10 GMT
Hi Chinthana / All

I am trying to get the server to return me a URI in the SOAP-RESPONSE as 
a ref attribute of a complex type.
The service which I selected was the array example using RPC_ENC ( I 
beleive in the latest build on the CVS it has shifted to DOC_LIT ).


I have modified the stubs in the server code (intArrayType.cpp) by 
passing the ref tag to the serialize function ( A very inappropriate way 
of doing it but it was supposed to be a makeshift till Axis C++ supports 
the functionality of setting attributes on the server side)

I have also modified the server stub to dump the result onto a file 
instead of returning it in the SOAP-RESPONSE(ie. The array of integers 
is dumped onto a file). The URL returned by the ref tag points to this 
result. So the service is also returning a 0 length array in the 
and the client side is expected to fetch the file from the URL. My 
motivation is to eliminate the time taken to serialize / deserialize 
data for very large amount of data ( in GB ). This is a part of a bigger 
project which I am trying to implement.


I am now trying to modify the client stub code to ensure that the ref 
tag can be extracted from the soap response.
Please see the ref tag as an attribute of intItemArray in the 

Please find the ( modified server side and unmodified client ) stub 
files attached.


>HTTP/1.1 200 OK
>Date: Thu, 30 Jun 2005 15:36:05 GMT
>Server: Apache/1.3.33 (Debian GNU/Linux)
>Transfer-Encoding: chunked
>Content-Type: text/xml
><?xml version='1.0' encoding='utf-8' ?>
><ns1:echoIntArrayResponse xmlns:ns1="">
><intArrayType xsi:type="ns2:intArrayType" 


View raw message