Sorry I didn't notice the thread earlier. On Wed, Nov 23, 2011 at 2:58 PM, Samisa Abeysinghe <[email protected]> wrote:
> > > On Wed, Nov 23, 2011 at 2:28 PM, Anjana Fernando <[email protected]> wrote: > >> Hi Samisa, >> >> On Wed, Nov 23, 2011 at 12:56 PM, Samisa Abeysinghe <[email protected]>wrote: >> >>> <body> >>> <p:getCreditHistoryLength xmlns:p="http://cb.loanbroker.wso2.org"> >>> <!--0 to 1 occurrence--> >>> <xs:ssn xmlns:xs="http://cb.loanbroker.wso2.org">1289</xs:ssn> >>> </p:getCreditHistoryLength> >>> </body> >>> >> >> AFAIK, this is a SOAP message that's going when you click "send" in >> try-it with this payload. >> >> >>> >>> This is what it gives me as sample request when I select HTTP endpoint. >>> >>> But this really should be >>> <p:getCreditHistoryLength xmlns:p="http://cb.loanbroker.wso2.org"> >>> <!--0 to 1 occurrence--> >>> <xs:ssn xmlns:xs="http://cb.loanbroker.wso2.org">1289</xs:ssn> >>> </p:getCreditHistoryLength> >>> >> >> This format you showed is I guess, in the format of POX content type, for >> REST requests, the data will be simply request parameters URL encoded for >> GET, where in POST, that content will just be in the HTTP request's >> payload. Someone please correct me, if what I said is wrong. >> > > You can I are talking the same thing :) > > My point is, when I select HTTP endpoint, try-it still wraps the auto > generated sample request with <body> element. That is the bug. If I select > HTTP endpoint, it should not wrap it with <body> and give the bare XML to > be posted. > Yes, actual payload shouldn't contain those <body> tags. It is just a dummy body tag that was added to prevent displaying an empty payload at the tryit page. Initially, for services which doesn't have any payload, an empty page was displayed. But as it might give users a wrong impression of an issue being occurred in tryit page, it was decided to wrap the content with a body tag which is being removed when the request is send. It seems like, in HTTP case, it doesn't get removed properly. /Ruchira
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
