What about another set of entries in services.xml to allow setting
parameter names?
Paul
-------- Original Message --------
Subject: [wsas-java-user] change name of web service parameters
Date: Wed, 20 Feb 2008 16:46:01 -0700
From: Wes Morgan <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
I've searched and searched for an answer to this, but can't find one
anywhere. It seems like it should be really simple, and yet...
I have a web service called zip2citystate. I implemented it in Java,
wrote the services.xml file, archived it all into a .aar file and
uploaded it to WSAS.
I can call it just fine by doing an HTTP GET at /zip2citystate?
param0=80218
from which I get this as a return:
<ns:zip2citystateResponse>
<ns:return>Denver</ns:return>
<ns:return>CO</ns:return>
</ns:zip2citystateResponse>
But I want to be able to do /zip2citystate?zip=80218 (calling the
parameter zip instead of param0) and then get something like this:
<ns:zip2citystateResponse>
<ns:city>Denver</ns:city>
<ns:state>CO</ns:state>
</ns:zip2citystateResponse>
How do I make those changes? I'm happy to RTFM, I just can't find the
FM! :)
Thanks.
--------------------------------------------------------
Wes Morgan
Internet Organizer
Code for Change Director
Fund for Public Interest Research
[EMAIL PROTECTED]
303-573-5885 ext. 312
1536 Wynkoop St., Ste. 100
Denver, CO 80202
_______________________________________________
Wsas-java-user mailing list
[EMAIL PROTECTED]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
Office: +1 646 290 8050
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev