Hi,
On the post (red line) I get com.sun.jersey.api.client.UniformInterfaceException: POST returned a response status of 405
My code bellow:
@GET
@RequestMapping("/jsonp")
@Path("/jsonp/{url}/add/{jsond}")
public String jsonp(@PathParam("jsond") String jsond, @PathParam("url") String url, HttpServletRequest request, HttpServletResponse response, Model model) {
try {
java.net.URI baseUri = UriBuilder.fromUri(url).build();
WebResource webResource = Client.create().resource(baseUri);
String s = webResource.type("application/json").post(String.class, jsond);
model.addAttribute("jsondata", s);
..
Thanks for advice
Regards,
Rafal
--
You received this message because you are subscribed to the Google Groups "JPassion.com: Web Programming Basics" group.
To unsubscribe from this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jpassion_web?hl=en-US.
