Thanks Nilmini! On 7 March 2016 at 09:40, Nilmini Perera <[email protected]> wrote:
> Hi all, > > So I have moved the content on 'Sending JSON payloads to REST resources' > from [1] to [2]. > As I understand, this section is completely independent of JSON mapping, > so it makes sense to remove the content from [1]. > > Will do the same for DSS 322 as well. > > [1] https://docs.wso2.com/display/DSS350/JSON+Mapping > [2] https://docs.wso2.com/display/DSS350/Exposing+Data+as+REST+Resources > > Thanks, > Nilmini > > On Thu, Mar 3, 2016 at 6:21 PM, Nilmini Perera <[email protected]> wrote: > >> I am fixing the documentation for this. >> Thanks for the info. >> >> On Tue, Mar 1, 2016 at 10:12 PM, Gokul Balakrishnan <[email protected]> >> wrote: >> >>> Hi Madhawa, >>> >>> Thanks, I was using an input format like: >>> >>> { >>> "timeFrom" : "2001-01-01 11:44:52", >>> "timeTo": "2010-06-01 11:44:52" >>> } >>> >>> but it only worked once I'd incorporated the resource name as well, >>> similar to: >>> >>> { >>> "getFilteredNotices": { >>> "timeFrom" : "2001-01-01 11:44:52", >>> "timeTo": "2010-06-01 11:44:52" >>> } >>> } >>> >>> Please note that as per the documentation, we should add "_post" to the >>> resource name, which did *not* work (there was an NPE). Could you >>> please do the needful to correct the documentation as required? >>> >>> Thanks, >>> >>> On 29 February 2016 at 16:51, Madhawa Gunasekara <[email protected]> >>> wrote: >>> >>>> Hi Gokul, >>>> >>>> No, We have to do the json mapping for requests as well. >>>> If you need to send a json payload in a request, you have to follow >>>> this json format[1]. otherwise it won't work. >>>> >>>> [1] >>>> https://docs.wso2.com/display/DSS350/JSON+Mapping#JSONMapping-JSONRequestPayloads >>>> >>>> Thanks, >>>> Madhawa >>>> >>>> On 2/29/16, Gokul Balakrishnan <[email protected]> wrote: >>>> > Hi Madhawa, >>>> > >>>> > To my understanding, this is only required when we're mapping the >>>> output to >>>> > JSON, right? My requirement is to send a JSON payload to the resource >>>> as >>>> > opposed to compose a custom JSON result. >>>> > >>>> > Thanks, >>>> > >>>> > On 29 February 2016 at 11:48, Madhawa Gunasekara <[email protected]> >>>> wrote: >>>> > >>>> >> Hi Gokul, >>>> >> >>>> >> How did you build the json payload? we have to build json payload >>>> >> according to [1]. >>>> >> >>>> >> [1] https://docs.wso2.com/display/DSS350/JSON+Mapping >>>> >> >>>> >> Thanks, >>>> >> Madhawa >>>> >> >>>> >> On Mon, Feb 29, 2016 at 5:12 PM, Gokul Balakrishnan <[email protected]> >>>> >> wrote: >>>> >> >>>> >>> Hi DSS team, >>>> >>> >>>> >>> I've created a dataservice and certain operations as REST-style >>>> >>> resources >>>> >>> as per the doc [1]. However, when I attempt to call that REST >>>> endpoint >>>> >>> using a JSON payload, I'm getting the following error, which leads >>>> me to >>>> >>> conclude that DSS is not accepting it: >>>> >>> >>>> >>> Caused by: javax.xml.stream.XMLStreamException: DS Fault Message: >>>> Error >>>> >>> in 'CallQuery.extractParams', cannot find parameter with >>>> >>> type:query-param >>>> >>> name:WorksReference >>>> >>> DS Code: INCOMPATIBLE_PARAMETERS_ERROR >>>> >>> >>>> >>> However, I see that urlencoded and XML content types seems to work >>>> >>> properly. >>>> >>> >>>> >>> Do you have any idea what I might be doing wrong? >>>> >>> >>>> >>> [1] >>>> https://docs.wso2.com/display/DSS350/Exposing+Data+as+REST+Resources >>>> >>> >>>> >>> Thanks, >>>> >>> >>>> >>> >>>> >>> -- >>>> >>> Gokul Balakrishnan >>>> >>> Senior Software Engineer, >>>> >>> WSO2, Inc. http://wso2.com >>>> >>> M +94 77 5935 789 | +44 7563 570502 >>>> >>> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> *Madhawa Gunasekara* >>>> >> Software Engineer >>>> >> WSO2 Inc.; http://wso2.com >>>> >> lean.enterprise.middleware >>>> >> >>>> >> mobile: +94 719411002 <+94+719411002> >>>> >> blog: *http://madhawa-gunasekara.blogspot.com >>>> >> <http://madhawa-gunasekara.blogspot.com>* >>>> >> linkedin: *http://lk.linkedin.com/in/mgunasekara >>>> >> <http://lk.linkedin.com/in/mgunasekara>* >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > Gokul Balakrishnan >>>> > Senior Software Engineer, >>>> > WSO2, Inc. http://wso2.com >>>> > M +94 77 5935 789 | +44 7563 570502 >>>> > >>>> >>>> >>>> -- >>>> *Madhawa Gunasekara* >>>> Software Engineer >>>> WSO2 Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: +94 719411002 <+94+719411002> >>>> blog: *http://madhawa-gunasekara.blogspot.com >>>> <http://madhawa-gunasekara.blogspot.com>* >>>> linkedin: *http://lk.linkedin.com/in/mgunasekara >>>> <http://lk.linkedin.com/in/mgunasekara>* >>>> >>> >>> >>> >>> -- >>> Gokul Balakrishnan >>> Senior Software Engineer, >>> WSO2, Inc. http://wso2.com >>> M +94 77 5935 789 | +44 7563 570502 >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "WSO2 Documentation Group" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/a/wso2.com/d/optout. >>> >> >> >> >> -- >> Nilmini Perera >> >> Senior Technical Writer >> WSO2 Inc. >> >> Mobile: 0094776722152 >> >> > > > -- > Nilmini Perera > > Senior Technical Writer > WSO2 Inc. > > Mobile: 0094776722152 > > -- Gokul Balakrishnan Senior Software Engineer, WSO2, Inc. http://wso2.com M +94 77 5935 789 | +44 7563 570502
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
