Paul,
Thank you! That was just the hint I needed to get it working. :)
Wes
On Feb 21, 2008, at 1:26 AM, Paul Fremantle wrote:
Wes
The problem is that the POJO support picks up the parameter names
from the .class file. If the class file is generated normally,
parameter names aren't stored.
So the way to fix this is to compile your Java with the -g option.
This stores the parameter names from your code into the .class file,
where they are picked up by WSAS.
There are options in Eclipse, IDEA, Ant and Maven to do the
equivalent of -g. Let me know your build environment and I'll
explain how.
Paul
Wes Morgan wrote:
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-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
--------------------------------------------------------
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