on 01-22-2013 10:29 AM
Hi All,
Below is the interface design steps to be done in PI. Kindly suggest best flow to implement the scenario and the adapter to be used to connect to restservice.
SAP <-> PI <-> RestService
Below are the Mutliple calls to be done in SAP PI 7.3.
Response to first step will be as
response_line : HTTP/1.1 201 Created
server_protocol : HTTP/1.1
status_code : 201
status_reason : Created
server : Apache-Coyote/1.1
location : http://xxxxxx/services/rest/org/venue/175150
content-type : application/xml
content-length : 0
date : Fri, 04 Jan 2013 16:58:42 GMT
connection : close
Regards,
Sabitha
Hi Sabitha,
The KaTe RESTful adapter for PI / slideshare can handle such scenarios (support for resource links, etc)
With best regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sabitha,
Below are the Mutliple calls to be done in SAP PI 7.3.
- SAP/PI requests HTTP POST to http://xxxxx/services/rest/org/venue
- Above Service returns a URL as response like this http://xxxxxxx/services/rest/org/venue/101497
- SAP/PI requests HTTP GET to the above service (Step 2)
- SAP/PI receives back the Response XML of Venue Details.
You actually have two options:
1. Use two separate synchronous scenarios for the HTTP Post and HTTP Get e.g execute the Post and then if you get a response, then use trigger the HTTP Get.
2. Use just one scenario, you would need to use a Java User-Defined Function to work. For preference, I would choose to use the HTTP Post for the UDF.
Question: Can the HTTP Adapter of 7.3 handle an empty HTTP Body response for the HTTP Post method?
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You may use soap axis adapter for rest. Check this note:
Note 1039369 - FAQ XI Axis Adapter
Please check below links:
http://scn.sap.com/thread/3208828
http://scn.sap.com/thread/3170074
http://events.asug.com/2012AC/0814_Enabling_REST_Services_with_SAP_NetWeaver_Process_Integration.pdf
Regards,
Beena.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sabitha,
As you need to do only GET and POST operations it should be possible to do so by using HTTP/SOAP AXIS adapter:
Please check Q 34 in FAQ note.
Can I send a plain XML message to a REST service?
See a sample configuration of posting to a REST based service by setting the enableREST context property using MessageContextPropertiesHandler
. For calling a REST service using the GET method, the soap12.webmethod
property must be set to GET
.
Also check below blog
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/07/integrating-rest-services-on-pi
So I think the approach you have mentioned should work. However you will have to use dynamic configuration to set the URL received from POST operation to set it in adapter. Please check this link:
http://help.sap.com/saphelp_nwpi711/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm
Please udpate this thread if this solution works for you. It will be helpful
Thanks,
Beena.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.