The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

shailesh572004 (1) [Avatar] Offline
#1
Are there any example of REST web service which accepts https post request?
David Dossot (233) [Avatar] Offline
#2
Re: Example of REST web service with https transport and POST data
First configure an HTTPS connector as explained here: http://www.mulesoft.org/documentation/display/MULE3USER/HTTPS+Transport+Reference#HTTPSTransportReference-HTTPSConnector

Then you can either use a Simple Service pattern with an HTTP inbound address or any flow with an HTTPS inbound endpoint.
o4bo (1) [Avatar] Offline
#3
Re: Example of REST web service with https transport and POST data
David, I am pretty sure we all would like to see an example using the 3.3 REST Component beyond just a @GET A simple POJO with CRUD operations @GET, @PUT, @POST and @DELETE would be lovely. While I realize the original question mentioned https, I think it was more about POST to a REST service.

Even the documentation of the REST component (FKA Jersey Module) only shows @GET, please expand on this. The Jersey examples don't port over to the Mule REST Component as they all leverage a servlet with @context annotations that don't map.
David Dossot (233) [Avatar] Offline
#4
Re: Example of REST web service with https transport and POST data
I'm not 100% about what you're referring to when you say "REST Component". Is it the Jersey module http://www.mulesoft.org/documentation/display/MULE3USER/Jersey+Module+Reference ?

If yes, since it's standard JAX-RS, there's not many reasons for detailing more HTTP verbs. Moreover, this module will become obsolete in Mule 3.4 and, while being kept as an optional module, the focus for REST handling will be on a new and coming REST router. Even less reasons for us to cover it further.

D.