Re: Problem communicating strings with Apache Axis 1.3 toolkit

2006-02-23 Thread Adrian Dick
Hi,

I have raised Jira issue AXISCPP-938 (
http://issues.apache.org/jira/browse/AXISCPP-938 ) to follow the progress
of this problem.

Regards,
Adrian
___
Adrian Dick ([EMAIL PROTECTED])


Michael Thadani [EMAIL PROTECTED] wrote on 03/02/2006
00:14:17:

 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:stringThe quick brown fox jumped over the
 lazy dog./in0
   in1 xsi:type=xsd:int2/in1
   in2 xsi:type=xsd:int10/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



Re: Problem communicating strings with Apache Axis 1.3 toolkit

2006-02-21 Thread Tao Yang
Just in case - you do remember to convert that string from UTF8 encoding 
to what ever appropriate before you pass it to std::out, right? since 
you are using a Java server which would encoding all string in UTF8 in 
my understanding.


Hope your problem has been solved.
cheers,
Tao