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 Octav Chipara <oc...@cse.unl.edu> on 2001/01/05 01:43:40 UTC
empty return ???
Hi all,
I am experiencing a strange problem ... I have on the server side a class
which returns another class as the return value. Unfortunatelly, when I look
at the reply which I get from the server I find out that there is no return
(no serialization maybe)... I will attach the reply and my class ... Could
someone give me a hand?
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:GetRecipeResponse xmlns:ns1="urn:recipe"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="urn:xml-recipe" xsi:type="ns2:recipe">
</return>
</ns1:GetRecipeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
public class RecipeBook
{
public Recipe GetRecipe(String in)
{
Recipe R=null;
if (in.compareTo("stuff")==0) R=new Recipe("stuff","www.kk.uk");
else R=new Recipe("Recipe not found","");
return R;
};
public RecipeBook()
{
}
};
Re: empty return ???
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Octav Chipara wrote:
> I have just noticed your email ... If you could tell me wat is the link
> between serializing/deserializing and the get/set methods would be great.
> Thanks ...
bean serializer/deserializer will use bean properties which are accessible by
get/set methods, see:
http://java.sun.com/docs/books/tutorial/javabeans/properties/properties.html
hope it helps,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)
Re: empty return ???
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Octav Chipara wrote:
> I have just noticed your email ... If you could tell me wat is the link
> between serializing/deserializing and the get/set methods would be great.
> Thanks ...
bean serializer/deserializer will use bean properties which are accessible by
get/set methods, see:
http://java.sun.com/docs/books/tutorial/javabeans/properties/properties.html
hope it helps,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)
RE: empty return ???
Posted by Octav Chipara <oc...@cse.unl.edu>.
Hi Alex,
I have just noticed your email ... If you could tell me wat is the link
between serializing/deserializing and the get/set methods would be great.
Thanks ...
- Octav
-----Original Message-----
From: Aleksander Slominski [mailto:aslom@cs.indiana.edu]
Sent: Friday, January 05, 2001 12:52 AM
To: soap-user@xml.apache.org
Subject: Re: empty return ???
Octav Chipara wrote:
> I am experiencing a strange problem ... I have on the server side a class
> which returns another class as the return value. Unfortunatelly, when I
look
> at the reply which I get from the server I find out that there is no
return
> (no serialization maybe)... I will attach the reply and my class ... Could
> someone give me a hand?
this is correct as Recipe class does not have any properties so bean
serializer
does not serialize anything - try to add get/set methods.
on the other hand if you wanted to return remote reference to the client s
it
can call methods on the instance of this class you will need to add it on
the
top of SOAP: it can be WSDL describing remote endpoint but the other way is
very
simple struct that contains endpoint type and URL that is sent and
unmarshalled
into stub - we have done this in SOAP RMI.
best,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: empty return ???
Posted by Octav Chipara <oc...@cse.unl.edu>.
Hi Alex,
I have just noticed your email ... If you could tell me wat is the link
between serializing/deserializing and the get/set methods would be great.
Thanks ...
- Octav
-----Original Message-----
From: Aleksander Slominski [mailto:aslom@cs.indiana.edu]
Sent: Friday, January 05, 2001 12:52 AM
To: soap-user@xml.apache.org
Subject: Re: empty return ???
Octav Chipara wrote:
> I am experiencing a strange problem ... I have on the server side a class
> which returns another class as the return value. Unfortunatelly, when I
look
> at the reply which I get from the server I find out that there is no
return
> (no serialization maybe)... I will attach the reply and my class ... Could
> someone give me a hand?
this is correct as Recipe class does not have any properties so bean
serializer
does not serialize anything - try to add get/set methods.
on the other hand if you wanted to return remote reference to the client s
it
can call methods on the instance of this class you will need to add it on
the
top of SOAP: it can be WSDL describing remote endpoint but the other way is
very
simple struct that contains endpoint type and URL that is sent and
unmarshalled
into stub - we have done this in SOAP RMI.
best,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
Re: empty return ???
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Octav Chipara wrote:
> I am experiencing a strange problem ... I have on the server side a class
> which returns another class as the return value. Unfortunatelly, when I look
> at the reply which I get from the server I find out that there is no return
> (no serialization maybe)... I will attach the reply and my class ... Could
> someone give me a hand?
this is correct as Recipe class does not have any properties so bean serializer
does not serialize anything - try to add get/set methods.
on the other hand if you wanted to return remote reference to the client s it
can call methods on the instance of this class you will need to add it on the
top of SOAP: it can be WSDL describing remote endpoint but the other way is very
simple struct that contains endpoint type and URL that is sent and unmarshalled
into stub - we have done this in SOAP RMI.
best,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)
Re: empty return ???
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Octav Chipara wrote:
> I am experiencing a strange problem ... I have on the server side a class
> which returns another class as the return value. Unfortunatelly, when I look
> at the reply which I get from the server I find out that there is no return
> (no serialization maybe)... I will attach the reply and my class ... Could
> someone give me a hand?
this is correct as Recipe class does not have any properties so bean serializer
does not serialize anything - try to add get/set methods.
on the other hand if you wanted to return remote reference to the client s it
can call methods on the instance of this class you will need to add it on the
top of SOAP: it can be WSDL describing remote endpoint but the other way is very
simple struct that contains endpoint type and URL that is sent and unmarshalled
into stub - we have done this in SOAP RMI.
best,
alek
--
Aleksander Slominski, IU, http://www.extreme.indiana.edu/~aslom
As I look afar I see neither cherry Nor tinted leaves Just a modest hut
on the coast In the dusk of Autumn nightfall - Fujiwara no Teika (1162-1241)