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. > Cheers, > Anjana. > > >> >> On Wed, Nov 23, 2011 at 11:59 AM, Anjana Fernando <[email protected]>wrote: >> >>> Hi Samisa, >>> >>> On Wed, Nov 23, 2011 at 10:01 AM, Samisa Abeysinghe <[email protected]>wrote: >>> >>>> >>>> >>>> On Wed, Nov 23, 2011 at 9:30 AM, Anjana Fernando <[email protected]>wrote: >>>> >>>>> Hi Samisa, >>>>> >>>>> It does work, you will get a link in try-it, when you select the HTTP >>>>> binding from the bindings list. Then you can simply click that generated >>>>> link. >>>>> >>>> >>>> But it wraps the request with a <body> element for HTTP endpoint. >>>> >>> >>> I didn't quite understand that .. where is such an element sent? .. it's >>> just the URL, when you click, it will just do a simple HTTP GET, (or you >>> can do POST, PUT, if it's configured that way) .. You can try this [1], >>> there select "_getcustomers", and select "HTTPEndpoint", then you will get >>> a link to [2]. >>> >>> [1] >>> https://data.stratoslive.wso2.com/services/t/laf.com/GSpreadSample?tryit# >>> [2] >>> http://data.stratoslive.wso2.com/services/t/laf.com/GSpreadSample.HTTPEndpoint/customers >>> >>> Cheers, >>> Anjana. >>> >>> >>>> >>>> >>>>> >>>>> Cheers, >>>>> Anjana. >>>>> >>>>> On Tue, Nov 22, 2011 at 7:48 PM, Samisa Abeysinghe <[email protected]>wrote: >>>>> >>>>>> $subject >>>>>> >>>>>> I know the answer is yes, but there is a bug. >>>>>> >>>>>> It does not work out of the box. Need to delete body element >>>>>> manually. Why does not the tool do it? >>>>>> >>>>>> Thanks, >>>>>> Samisa... >>>>>> >>>>>> Samisa Abeysinghe >>>>>> VP Engineering >>>>>> WSO2 Inc. >>>>>> http://wso2.com >>>>>> http://wso2.org >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Carbon-dev mailing list >>>>>> [email protected] >>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Anjana Fernando* >>>>> Senior Software Engineer >>>>> WSO2 Inc. | http://wso2.com >>>>> lean . enterprise . middleware >>>>> >>>>> _______________________________________________ >>>>> Carbon-dev mailing list >>>>> [email protected] >>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> Thanks, >>>> Samisa... >>>> >>>> Samisa Abeysinghe >>>> VP Engineering >>>> WSO2 Inc. >>>> http://wso2.com >>>> http://wso2.org >>>> >>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> [email protected] >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> >>> -- >>> *Anjana Fernando* >>> Senior Software Engineer >>> WSO2 Inc. | http://wso2.com >>> lean . enterprise . middleware >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> Thanks, >> Samisa... >> >> Samisa Abeysinghe >> VP Engineering >> WSO2 Inc. >> http://wso2.com >> http://wso2.org >> >> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > *Anjana Fernando* > Senior Software Engineer > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
