[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsas-java-user
Subject:    Re: [wsas-java-user] change name of web service parameters
From:       Wes Morgan <wmorgan () ffpir ! org>
Date:       2008-02-21 17:08:19
Message-ID: 9E9EE248-EC3A-4614-912C-9806B4B58E8B () ffpir ! org
[Download RAW message or body]

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
>> wmorgan@ffpir.org
>> 303-573-5885 ext. 312
>> 1536 Wynkoop St., Ste. 100
>> Denver, CO 80202
>> _______________________________________________
>> Wsas-java-user mailing list
>> Wsas-java-user@wso2.org
>> 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
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> _______________________________________________
> Wsas-java-user mailing list
> Wsas-java-user@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user


--------------------------------------------------------

Wes Morgan
Internet Organizer
Code for Change Director
Fund for Public Interest Research

wmorgan@ffpir.org
303-573-5885 ext. 312

1536 Wynkoop St., Ste. 100
Denver, CO 80202


_______________________________________________
Wsas-java-user mailing list
Wsas-java-user@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic