Like Sambildikar and RashmiR8 above, I am seeking information on the recommended way to build a RESTful service in PRPC. There is no wizard to do this.
1. How do I generate the Parse JSON and Stream JSON rules that are needed?
2. How do I generate the WADL file that my customer will need to configure his REST connector in SAP?
A good "How-To" guide for REST services in PRPC would be highly appreciated! There seems to be very little information I can find on PDN, and what I can find is very bald, with little detail on how-to.
For REST Service there wont be any Parse and Stream JSON required. The response is sent as JSON from the Service Page on which service is run.
Also there is n o WSDL or WADL for JSON and only the sample JSON response is given as refecrnce for the third party developing REST Connector.
If you are using a POST method in Service REST. The request and response mapping looks like below.
MapTo - JSON
MapToKey - Page Context on which Service is getting request (this will be mapped to Clipboard page on the Servir Page from there you can use this request values for processing).
MapToKey - .InputData (example)
this indicates the request will be available on clipboard in MyServicepPage.InputData. Here the thing to note is all the properties required ineed to be created manually in class of InputData Page.
In similar lines to request here we have
MapFrom - JSON
MapFromkey- .OutputData (example)
this indicates the reponse should be available on clipboard in MyServicepPage.OutputData . Here the thing to note is all the properties required need to be created manually in class of OutputData Page.