*Does **Response received get printed?*
On Thu, Feb 13, 2014 at 9:40 AM, Sudheera Palihakkara <[email protected]>wrote: > yeah. I get this response. > > { > > - "GeneratedKeys":{ > - "Entry":{ > - "ID":"58" > } > } > > } > > > > > I tried intercepting both jaggery post request and browser plugin (or > wget) request using tcpmon. Both request and response are same except only > Jaggery post can't return the response :( > > > > > On Thu, Feb 13, 2014 at 9:32 AM, Chan <[email protected]> wrote: > >> Hmmm.. Are you sure the service will return anything for POST requests? >> Try it from a browser plugin and see. >> >> >> On Thu, Feb 13, 2014 at 9:28 AM, Sudheera Palihakkara >> <[email protected]>wrote: >> >>> hi, >>> thank for the reply. I'll try it this way. When I call *http get* same >>> way I can get a json returned form the same service. why *post* don't >>> get a json response. >>> >>> thanks >>> >>> >>> >>> On Thu, Feb 13, 2014 at 8:17 AM, Chan <[email protected]> wrote: >>> >>>> 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 <%2B94712112165>* >>>> >>>> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >>>> >>>> * ~Blog blog.dulithawijewantha.com >>>> <http://dulichan.github.io/chan/>* >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> >>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email [email protected] <[email protected]>* >> * ~Mobile +94712112165 <%2B94712112165>* >> >> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >> >> * ~Blog blog.dulithawijewantha.com >> <http://dulichan.github.io/chan/>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> > > -- 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
