Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

how to use request parameters in a generic service

Hi. I've almost got the Generic Service thing worked out.. I can happily use it to read data from a service and populate an sqlite database. Want I need to do now is to go the other way. i.e. send the info back. To do this I'm guessing I need to set up some request parameters. I think I saw they need to go into request.data. I can't find any examples of what exactly is needed and how that matches to the parameter names when I do the mapping. Can you help please ?

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

how to use request parameters in a generic service

Thanks Max. I did read that but it mostly talks about response parameters. I got that sorted (mostly from that link). Where i'm running into issues is it refers to "Request parameters you define will be available in settings.data". Just need to know a little more about how and what is in settings.data

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to use request parameters in a generic service

Let's say you defined a request parameter called 'email' in the Service editor. You can access it via settings.data.email.

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

how to use request parameters in a generic service

That means that, in this case, if I put something into settings.data.email it would be sent as part of the request to my webservice. Correct ?

Return to “Issues”