You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Shiv Kumar <sh...@accelrys.com> on 2004/02/12 06:44:34 UTC

Axis C++ Client does not return string of more that 1200 bytes.

Hi,
I am using Axis C++ client  for web service. My Web service returns a 
string of length 1500 bytes. My client does receives this result (In debug 
version it prints that "payload" is ** and received message is "***") but 
this is lost before coming to me.

Can someone tell me whether Axis C++ client can handle bigger string or 
not.

Thanks & Regards
Shiv Kumar

C++ client should should be flexible.

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,
After generating C++ client stub it set attribute of object "m_pCall" of 
class "Call" by calling 
"
m_pCall->SetProtocol(APTHTTP);
m_pCall->SetHeader("SOAPAction", "QueryServiceBeanService");
m_pCall->SetEndpointURI("http://Madhusudan:8080/jboss-net/services/QueryService");
"

Since "EndPointURL" is very likely to change in deployment scenario. So It 
would be really nice to have method in client stub that reset the 
endpointurl.

I mean like this.
void  ClientSideStub:: SetEndpointURI(string NewEndpointURI)
{
        m_pCall->SetEndpointURI(NewEndpointURI.c_str());
}

Thanks & Regards
Shiv Kumar

Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by su...@opensource.lk.
I tested with latest code in CVS and it works fine.

> Hi,
> 1500 is string value but not the total length of message.
>
> Thanks & Regards
> Shiv Kumar
>
> "Forgiveness does not change the past, but it does enlarge the
> future."—
 Paul Boese
>
>
>
> <su...@opensource.lk>
> 02/12/2004 11:23 AM
> Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>
> To
> <ax...@ws.apache.org>
> cc
>
> Subject
> Re: Axis C++ Client does not return string of more that 1200 bytes.

>
>
>
>
>
> Is this 1500 the total length of the SOAP message or the string value ?
> I mean <string>some string with 1500 charactors .....</string> ?
>
>> Hi,
>> I am using Axis C++ client  for web service. My Web service returns a
>> string of length 1500 bytes. My client does receives this result (In
>> debug  version it prints that "payload" is ** and received message is
>> "***") but  this is lost before coming to me.
>>
>> Can someone tell me whether Axis C++ client can handle bigger string
>> or
 not.
>>
>> Thanks & Regards
>> Shiv Kumar
>
>
>
>
>



WSDL2WS tool reverse the parameter of C++ client stub

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,

I generated the C++ client stub using WSDL2WS tool but it reverse the 
parameter web service method. I have attached the WSDL file.
We have web service that takes input "string" , "bool" repectively in this 
order and returns "string". But generated client stub has reverse the 
parameter. 

If I change the order manually then it work fine otherwise it gives error 
"soapenv:Server.userException". 


Thanks & Regards
Shiv Kumar

Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by sanjaya singharage <sa...@opensource.lk>.
As susantha pointed out the code in CVS works fine. Could you try to get a check out and do a build? You can find instructions in the documentation in the axiscpp site.
sanjaya.
  ----- Original Message ----- 
  From: Shiv Kumar 
  To: Apache AXIS C User List 
  Sent: Thursday, February 12, 2004 1:33 AM
  Subject: Re: Axis C++ Client does not return string of more that 1200 bytes.



  Hi,
  There is no special character in string. Client is working fine when return string is 1K but it does not give return value when return string is more than 1.2K. 

  Thanks & Regards
  Shiv Kumar




  could you send the actual string that your web service returns to the client? May be some special characters are causing a problem? 
    
  sanjaya. 
  ----- Original Message ----- 
  From: Shiv Kumar 
  To: Apache AXIS C User List 
  Sent: Wednesday, February 11, 2004 10:46 PM 
  Subject: Re: Axis C++ Client does not return string of more that 1200 bytes. 


  Hi,
  Yes I am using latest code from location 

  Apache Axis C++ 1.0 (released Dec 2003) (http://ws.apache.org/axis/cpp/documentation.html) 

  Just for your info, It works fine when return value is less than 1000 bytes. 

  Thanks & Regards
  Shiv Kumar 


Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,
There is no special character in string. Client is working fine when 
return string is 1K but it does not give return value when return string 
is more than 1.2K.

Thanks & Regards
Shiv Kumar




could you send the actual string that your web service returns to the 
client? May be some special characters are causing a problem?
 
sanjaya.
----- Original Message ----- 
From: Shiv Kumar 
To: Apache AXIS C User List 
Sent: Wednesday, February 11, 2004 10:46 PM
Subject: Re: Axis C++ Client does not return string of more that 1200 
bytes.


Hi,
Yes I am using latest code from location 

Apache Axis C++ 1.0 (released Dec 2003) (
http://ws.apache.org/axis/cpp/documentation.html) 

Just for your info, It works fine when return value is less than 1000 
bytes. 

Thanks & Regards
Shiv Kumar

Re: Axis C++ Client does not return string of more that 3900 bytes.

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,
Exact length of string is 3900.
Thanks & Regards
Shiv Kumar




could you send the actual string that your web service returns to the 
client? May be some special characters are causing a problem?
 
sanjaya.
----- Original Message ----- 
From: Shiv Kumar 
To: Apache AXIS C User List 
Sent: Wednesday, February 11, 2004 10:46 PM
Subject: Re: Axis C++ Client does not return string of more that 1200 
bytes.


Hi,
Yes I am using latest code from location 

Apache Axis C++ 1.0 (released Dec 2003) (
http://ws.apache.org/axis/cpp/documentation.html) 

Just for your info, It works fine when return value is less than 1000 
bytes. 

Thanks & Regards
Shiv Kumar

Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by sanjaya singharage <sa...@opensource.lk>.
could you send the actual string that your web service returns to the client? May be some special characters are causing a problem?

sanjaya.
  ----- Original Message ----- 
  From: Shiv Kumar 
  To: Apache AXIS C User List 
  Sent: Wednesday, February 11, 2004 10:46 PM
  Subject: Re: Axis C++ Client does not return string of more that 1200 bytes.



  Hi,
  Yes I am using latest code from location 

  Apache Axis C++ 1.0 (released Dec 2003) (http://ws.apache.org/axis/cpp/documentation.html) 

  Just for your info, It works fine when return value is less than 1000 bytes. 

  Thanks & Regards
  Shiv Kumar


Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,
Yes I am using latest code from location

Apache Axis C++ 1.0 (released Dec 2003) (
http://ws.apache.org/axis/cpp/documentation.html) 

Just for your info, It works fine when return value is less than 1000 
bytes.

Thanks & Regards
Shiv Kumar

Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by su...@opensource.lk.
Are you using the latest code in the CVS or Axis release 1.0 ?

> Hi,
> 1500 is string value but not the total length of message.
>
> Thanks & Regards
> Shiv Kumar
>
> "Forgiveness does not change the past, but it does enlarge the
> future."—
 Paul Boese
>
>
>
> <su...@opensource.lk>
> 02/12/2004 11:23 AM
> Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>
> To
> <ax...@ws.apache.org>
> cc
>
> Subject
> Re: Axis C++ Client does not return string of more that 1200 bytes.

>
>
>
>
>
> Is this 1500 the total length of the SOAP message or the string value ?
> I mean <string>some string with 1500 charactors .....</string> ?
>
>> Hi,
>> I am using Axis C++ client  for web service. My Web service returns a
>> string of length 1500 bytes. My client does receives this result (In
>> debug  version it prints that "payload" is ** and received message is
>> "***") but  this is lost before coming to me.
>>
>> Can someone tell me whether Axis C++ client can handle bigger string
>> or
 not.
>>
>> Thanks & Regards
>> Shiv Kumar
>
>
>
>
>



Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by Shiv Kumar <sh...@accelrys.com>.
Hi,
1500 is string value but not the total length of message.

Thanks & Regards
Shiv Kumar

"Forgiveness does not change the past, but it does enlarge the future."— 
Paul Boese



<su...@opensource.lk> 
02/12/2004 11:23 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
<ax...@ws.apache.org>
cc

Subject
Re: Axis C++ Client does not return string of more that 1200 bytes.






Is this 1500 the total length of the SOAP message or the string value ?
I mean <string>some string with 1500 charactors .....</string> ?

> Hi,
> I am using Axis C++ client  for web service. My Web service returns a
> string of length 1500 bytes. My client does receives this result (In
> debug  version it prints that "payload" is ** and received message is
> "***") but  this is lost before coming to me.
>
> Can someone tell me whether Axis C++ client can handle bigger string or
> not.
>
> Thanks & Regards
> Shiv Kumar






Re: Axis C++ Client does not return string of more that 1200 bytes.

Posted by su...@opensource.lk.
Is this 1500 the total length of the SOAP message or the string value ?
I mean <string>some string with 1500 charactors .....</string> ?

> Hi,
> I am using Axis C++ client  for web service. My Web service returns a
> string of length 1500 bytes. My client does receives this result (In
> debug  version it prints that "payload" is ** and received message is
> "***") but  this is lost before coming to me.
>
> Can someone tell me whether Axis C++ client can handle bigger string or
> not.
>
> Thanks & Regards
> Shiv Kumar