axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Thadani" <michael.thad...@rlmgroup.com.au>
Subject Problem communicating strings with Apache Axis 1.3 toolkit
Date Fri, 03 Feb 2006 00:14:17 GMT
Hi, 

I have a small webservice deployed on a jetty webserver running axis
java 1.3. I have written test clients in java to verify it is working
correctly.

After having difficulties using the 1.5 binary release of axisc (the
object files were being ignored because of apparent incompatability), I
decided to build axisc from source and built from the cvs. 

I now have a small c++ client. I have been able to successfully send
strings from the client to the server and return an int value denoting
their size (very simple but it was just a test case). However, in
another test I am attempting to return a string from a method and the
axisc client is not performing correctly. 

The program does not terminate unexpectedly but calling the remote
function does not seem to return a valid string. Attempts to print the
contents of the returned string (via std::cout) have not worked - after
calling 'std::cout << returnedString' the program's output is blank and
subsequent cout calls seem to not work (they are executed but do not
produce output).

The soap requests are being made (viewable from the SOAP Monitor) so it
appears the problem lies in the parsing/interpreting of the response. 

I have included the xml below in case there is a problem in it that I am
not seeing. 

Is the 1.6 current build currently correctly accepting strings as return
parameters? If so, any suggestions about how I may go about debugging
this odd behaviour?

Thanks in advance
Michael Thadani


<?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:getSubstring xmlns:ns1="urn:simplewebservice">
      <in0 xsi:type="xsd:string">The quick brown fox jumped over the
lazy dog.</in0>
      <in1 xsi:type="xsd:int">2</in1>
      <in2 xsi:type="xsd:int">10</in2>
    </ns1:getSubstring>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<?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:getSubstringResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:simplewebservice">
      <getSubstringReturn xsi:type="soapenc:string"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">e
quick</getSubstringReturn>
    </ns1:getSubstringResponse>
  </soapenv:Body>
</soapenv:Envelope>

Mime
View raw message