This usually happens when you don't return json from your service (You are mentioning to return json in the post call). Try it out using the xhr object[1] instead of the post method and check.
[1] - http://jaggeryjs.org/apidocs/xhr.jag On Wed, Feb 12, 2014 at 6:38 PM, Sudheera Palihakkara <[email protected]>wrote: > Hi, > > I'm calling a data service by invoking a rest resource using *http post *to > insert some data into database. I have configured the data service so that > it returns the generated key through the response body. When I tried this > using http client (add-on for chrome) I can see the response body includes > the result id. But when I used the Jaggery *post* it does not return > anything. Is anything wrong with Jaggery post or am I doing anything wrong. > (I'm using http get function with jaggery with no issues) > > here's my *post* invocation line > > > > > *var data_post_result = post(url, post_data, optionalHeadersPost, "json", > function (data, xhr) { log("Response received"); } );* > > > thanks. > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email [email protected] <[email protected]>* * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
