cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver SOAP/HTTP Or REST adapter (REST Protocol) - PI 7.4

former_member596513
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

maheswarareddykonda
Active Contributor
0 Kudos

Not sure how to handle this. This is synchronous scenario as the Response or Error Response from the target system need to be logged

this can be helped to you

former_member596513
Participant
0 Kudos

Thanks Maheswarareddy.

I have gone through the link.

I still need to understand how to start this.

From xml file to JSON response.

Regards,

Archana

maheswarareddykonda
Active Contributor
0 Kudos

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.

former_member186851
Active Contributor
0 Kudos

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

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/904db720-042f-3010-b6ba-e62a4192b...

since your receiver seems to accept rest protocol I would suggest to go with rest adapter

And for configuring rest adapter refer below link

former_member596513
Participant
0 Kudos

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

former_member186851
Active Contributor
0 Kudos

Hello Archana,

No need of 2 ICOs