On Tuesday 30 November 2010 5:31:10 am Manoel Farrugia wrote:
> As a web service I have a getGreeting() method which is accessed by:
> http://localhost:8080/HelloWorldWebServices/services/HelloWorldPort/getGree
> ting<http://localhost:8080/HelloWorldWebServices/services/HelloWorldPort/ge
> tGreeting1?arg0=Manoel>
> 
> Now I want that any other request method which does not exist in my web
> service (for example getGreetingMe()) is redirected to getGreeting() as the
> address above.
> 
> How should I tackle this idea?

If  this is just for the "GET" requests, it shouldn't be too hard.   

String path = (String)message.get(Message.PATH_INFO);
String basePath = (String)message.get(Message.BASE_PATH);
String query = (String)message.get(Message.QUERY_STRING);

would get you the values that were sent in.  You would just need to reset them 
to the "getGreeting" versions of those via message.put(...) type things.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to