[wsas-java-dev] [Fwd: [wsas-java-user] change name of web service
parameters]
Keith Chapman
keith at wso2.com
Thu Feb 21 00:39:05 PST 2008
Paul Fremantle wrote:
> What about another set of entries in services.xml to allow setting
> parameter names?
and annotations (which should make it much easier for the POJO case)
Thanks,
Keith.
>
> 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 <wmorgan at ffpir.org>
> Reply-To: wsas-java-user at wso2.org
> To: wsas-java-user at wso2.org
>
> 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
>
> wmorgan at ffpir.org
> 303-573-5885 ext. 312
>
> 1536 Wynkoop St., Ste. 100
> Denver, CO 80202
>
>
> _______________________________________________
> Wsas-java-user mailing list
> Wsas-java-user at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
>
>
More information about the Wsas-java-dev
mailing list