[jboss-dev-forums] [JBoss ESB Development] - Re: httprouter issues with GET/POST WADL Services and Web Routing

Manel Fera do-not-reply at jboss.com
Thu Jun 30 07:00:46 EDT 2011


Manel Fera [http://community.jboss.org/people/manelfera] created the discussion

"Re: httprouter issues with GET/POST WADL Services and Web Routing"

To view the discussion, visit: http://community.jboss.org/message/612720#612720

--------------------------------------------------------------
Your solution is pretty nice and workfull

I have a question on how to send the rest params for GET, DELETE, and PUT actions.

My RestService have methods with the following specification:

@GET
@Path("")
@Produces("application/xml")
public StreamingOutput getCustomer(@PathParam("id") int id) {
     ....
}


How am I supposed to send the id through the custom http proxy. 
The rest service expects the id in the url  http://localhost:8080/rest-service/customer/1 http://localhost:8080/rest-service/customer/1

If I send the id at the end of the custom url it doesn't work. 
 http://localhost:8080/esbRestProxy/http/esb-proxy/simple/customers/1 http://localhost:8080/esbRestProxy/http/esb-proxy/simple/customers/1

Hope someone can help!

Cheers!
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/612720#612720]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110630/a6f3ae2f/attachment.html 


More information about the jboss-dev-forums mailing list