on 09-23-2015 11:20 AM
Hi,
I have gone through the various posts after which i am posting this requirement.
I have never worked with the REST protocol and not sure if the receiver adapter should be a HTTP/SOAP or REST adapter.
We are on PI 7.4 SP 11.
I have a requirement to map a scenario where by the sender is a File/FTP message that should be sent out as below-
Not sure how to handle this. This is synchronous scenario as the Response or Error Response from the target system need to be logged
Target System: Commerce
Protocol: REST
REST Handler: FulfillmentHandler
OOB: No
HTTP Method: PUT
Resource: fulfilment
Path: http://<HostName>/wcs/resource/filfillment
Method: pickNotification
Please advise.
Regards,
Archana
Regards,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
What i understood is you need response from receiver just as status,
if that yes, you can go a head start development by refering link, which i had shared.
i think all you have to do is create normal scenario File to REST and in configuration of rest channel is just add info one for status codes other than 200(such as 500,400,404...) in Error handlingtab, also add for 200 for success.
let me know if you confused.
Hello Archana,
Since the sender file is Asyn you need a async/sync bridge to capture the response.It can done using beans/NWBPM
Please refer the below links
since your receiver seems to accept rest protocol I would suggest to go with rest adapter
And for configuring rest adapter refer below link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghuraman,
Thanks for the links. Yes my scenario will be asynch (file) to sych (service response)
what i have been given is that all the interfaces will be REST based and available from the same web server.
version number will be embedded within the REST service URLs
The base service URL will be ‘reports/v1’
I checked the blog - PI REST Adapter - Define custom http header elements
http://scn.sap.com/docs/DOC-63397
It mentions that for versioning REST APIs, there are two approaches which are commonly used - either via URI versioning or via media type versioning. In my case looking at the URL given, it is former where i will need to put the version number into the URI of the service request, e.g., http://host:port/rest/v2/query/customer/67.
All service responses will be formatted using JSON. and any requests that result in a validation error will return a HTTP 400 error (Bad Request) in JSON format.
From the link that you provided, document by Alexander Bundschuh does mention that the RequestResponseBean module is used to convert an asynchronous request message to a synchronous request message
However, it gave the step by step for developing 2 ICO -
from the JMS broker to the Web Service provider AND from the Web Service provider to the JMS broker
I am not sure if i also need 2 ICO
I have an incoming file in xml format and a request needs to be sent to the service provider which should return a response.
Please advise.
Regards,
Archana
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.