You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by venkat reddy <ve...@Gandiva.com> on 2001/06/27 22:14:58 UTC

Problem Returning BEAN

How do we set the encoding style of the return value of a soap call?

I have a service that creates a bean which has nothing but a couple of class
variable set to data from the database.
In the service side I get the data create this bean object and return it. On
the client when i extract the object from the result,
the bean has no values. The bean is retrieved from the response object but
has no values. I double checked that values have 
been set on the server side.

Can you one figure out Y?

~Venkat

RE: Problem Returning BEAN

Posted by Kartheek Hirode <kh...@home.com>.
The encoding style is set in the Response constructor in your RPCProvider
class. This could be the same as the incoming 'call' or something different
if that is what is needed.
resp = new Response (targetID, callMethodName, returnParam, null,
                           null, call.getEncodingStyleURI(), respContext);

The TcpTunnelGui might help you in debugging the contents of the Response if
nothing is showing up on the client.
--KH

-----Original Message-----
From: venkat reddy [mailto:venkatr@Gandiva.com]
Sent: Wednesday, June 27, 2001 1:15 PM
To: 'soap-user@xml.apache.org'
Subject: Problem Returning BEAN



How do we set the encoding style of the return value of a soap call?

I have a service that creates a bean which has nothing but a couple of class
variable set to data from the database.
In the service side I get the data create this bean object and return it. On
the client when i extract the object from the result,
the bean has no values. The bean is retrieved from the response object but
has no values. I double checked that values have
been set on the server side.

Can you one figure out Y?

~Venkat


RE: Problem Returning BEAN

Posted by Kartheek Hirode <kh...@home.com>.
The encoding style is set in the Response constructor in your RPCProvider
class. This could be the same as the incoming 'call' or something different
if that is what is needed.
resp = new Response (targetID, callMethodName, returnParam, null,
                           null, call.getEncodingStyleURI(), respContext);

The TcpTunnelGui might help you in debugging the contents of the Response if
nothing is showing up on the client.
--KH

-----Original Message-----
From: venkat reddy [mailto:venkatr@Gandiva.com]
Sent: Wednesday, June 27, 2001 1:15 PM
To: 'soap-user@xml.apache.org'
Subject: Problem Returning BEAN



How do we set the encoding style of the return value of a soap call?

I have a service that creates a bean which has nothing but a couple of class
variable set to data from the database.
In the service side I get the data create this bean object and return it. On
the client when i extract the object from the result,
the bean has no values. The bean is retrieved from the response object but
has no values. I double checked that values have
been set on the server side.

Can you one figure out Y?

~Venkat