You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Kailash Aynor <ak...@hotmail.com> on 2000/07/31 18:08:47 UTC
Soap return Values
Does SOAP requires that every function should return a value. What if I have a function that has an [in/out] parameter. That is if I have a request like this
<m:Increment xmlns:m="Some-URI">
<counter>1</counter>
</m:Increment>
Would I be getting a response envelope simillar to following one or a different one with return value?
<m:IncrementResponse xmlns:m="Some-URI">
<counter>2</counter>
</m:IncrementResponse>
Thanx,
Kailash.
RE: internationlization
Posted by Steven McDowall <sj...@aptest.com>.
Alas, the current version of xml-soap is NOT very I18N compliant.. well, ok,
it isn't at all. :-(
At this time, there is really nothing you can do, unless you want to fix it
up :-)
I am planning (this week) on creating a Java Servlet which takes care of
some of the problems..
at least, on the response end, but that doesn't help the client portion
yet..
Someone (and I have it archived) published a nice TODO of the things that
needs fixing to make it
pretty I18N, and if I have some spare time after the Servlet I will start
doing those..
In the mean time, if you want the changes ASAP, you can get your CVS tree
created and make sure
you can build the latest soap from the XML Repository .. :-)
-Steve
-----Original Message-----
From: Jun-Liang Chen [mailto:jlchen@intumit.com]
Sent: Tuesday, August 01, 2000 3:39 AM
To: soap-user@xml.apache.org
Subject: internationlization
Dear All,
After making the sample.addressbook working, I played around with
it by adding some name
in the Hashtable and some chinese characters in it. Also, I put some
print statements in Address.java
like below,
public String toString()
{
System.err.println(" streetname = " + streetName ); // <---
System.err.println(" city = " + city ); // <--
return streetNum + " " + streetName + "\n" +
city + ", " + state + " " + zip + "\n" +
phoneNumber;
}
Then I ran the case and it turned out the output on server side giving
correct character type I wanted but on
client side displaying ??????????-like . Any explainations or suggestions?
Thanks!
Jun-Liang Chen
jlchen@intumit.com
RE: internationlization
Posted by Steven McDowall <sj...@aptest.com>.
Alas, the current version of xml-soap is NOT very I18N compliant.. well, ok,
it isn't at all. :-(
At this time, there is really nothing you can do, unless you want to fix it
up :-)
I am planning (this week) on creating a Java Servlet which takes care of
some of the problems..
at least, on the response end, but that doesn't help the client portion
yet..
Someone (and I have it archived) published a nice TODO of the things that
needs fixing to make it
pretty I18N, and if I have some spare time after the Servlet I will start
doing those..
In the mean time, if you want the changes ASAP, you can get your CVS tree
created and make sure
you can build the latest soap from the XML Repository .. :-)
-Steve
-----Original Message-----
From: Jun-Liang Chen [mailto:jlchen@intumit.com]
Sent: Tuesday, August 01, 2000 3:39 AM
To: soap-user@xml.apache.org
Subject: internationlization
Dear All,
After making the sample.addressbook working, I played around with
it by adding some name
in the Hashtable and some chinese characters in it. Also, I put some
print statements in Address.java
like below,
public String toString()
{
System.err.println(" streetname = " + streetName ); // <---
System.err.println(" city = " + city ); // <--
return streetNum + " " + streetName + "\n" +
city + ", " + state + " " + zip + "\n" +
phoneNumber;
}
Then I ran the case and it turned out the output on server side giving
correct character type I wanted but on
client side displaying ??????????-like . Any explainations or suggestions?
Thanks!
Jun-Liang Chen
jlchen@intumit.com
internationlization
Posted by Jun-Liang Chen <jl...@intumit.com>.
Dear All,
After making the sample.addressbook working, I played around with it by adding some name
in the Hashtable and some chinese characters in it. Also, I put some print statements in Address.java
like below,
public String toString()
{
System.err.println(" streetname = " + streetName ); // <---
System.err.println(" city = " + city ); // <--
return streetNum + " " + streetName + "\n" +
city + ", " + state + " " + zip + "\n" +
phoneNumber;
}
Then I ran the case and it turned out the output on server side giving correct character type I wanted but on
client side displaying ??????????-like . Any explainations or suggestions? Thanks!
Jun-Liang Chen
jlchen@intumit.com
Re: Soap return Values
Posted by Simon Fell <so...@zaks.demon.co.uk>.
On Mon, 31 Jul 2000 12:08:47 -0400, in soap you wrote:
>Does SOAP requires that every function should return a value. What if I have a function that has an [in/out] parameter. That is if I have a request like this
>
><m:Increment xmlns:m="Some-URI">
> <counter>1</counter>
></m:Increment>
>
>Would I be getting a response envelope simillar to following one or a different one with return value?
><m:IncrementResponse xmlns:m="Some-URI">
> <counter>2</counter>
></m:IncrementResponse>
>
>Thanx,
>Kailash.
>
no, you are not required to have a return value. The example you give
can map to either
int Increment ( [in] int counter ) ;
or
void Increment ( [in/out] int * counter ) ;
Cheers
Simon
internationlization
Posted by Jun-Liang Chen <jl...@intumit.com>.
Dear All,
After making the sample.addressbook working, I played around with it by adding some name
in the Hashtable and some chinese characters in it. Also, I put some print statements in Address.java
like below,
public String toString()
{
System.err.println(" streetname = " + streetName ); // <---
System.err.println(" city = " + city ); // <--
return streetNum + " " + streetName + "\n" +
city + ", " + state + " " + zip + "\n" +
phoneNumber;
}
Then I ran the case and it turned out the output on server side giving correct character type I wanted but on
client side displaying ??????????-like . Any explainations or suggestions? Thanks!
Jun-Liang Chen
jlchen@intumit.com
Re: Soap return Values
Posted by Simon Fell <so...@zaks.demon.co.uk>.
On Mon, 31 Jul 2000 12:08:47 -0400, in soap you wrote:
>Does SOAP requires that every function should return a value. What if I have a function that has an [in/out] parameter. That is if I have a request like this
>
><m:Increment xmlns:m="Some-URI">
> <counter>1</counter>
></m:Increment>
>
>Would I be getting a response envelope simillar to following one or a different one with return value?
><m:IncrementResponse xmlns:m="Some-URI">
> <counter>2</counter>
></m:IncrementResponse>
>
>Thanx,
>Kailash.
>
no, you are not required to have a return value. The example you give
can map to either
int Increment ( [in] int counter ) ;
or
void Increment ( [in/out] int * counter ) ;
Cheers
Simon