cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a REST web service in SAP PI

former_member255627
Participant
0 Kudos

Dear All,

I have a requirement to create REST web service in PI with given input and output parameters.Also using a REST adapter when communicating with third party portal.

It is a synchronous interface where third party portal requests for an information from the ECC or updates the information in ECC

Cant we create a simple SOAP to Proxy synchronous here?

Can anyone guide me on how to create a REST web service in PI?

I need to provide these inputs to client, so awaiting your replies soon.

Thanks & Regards,

Pushpa

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor

Hi Pushpalatha,

I have changed sever SOAP - proxy to REST - proxy you can use all the ESR development for you before scenario. You only need to set a new communication component or party/communication component and to have to senders for the same scenario if you want it. Even if you have to use JSON format with REST, in the first REST tab (General) you can convert the JSON to XML. In the section "Input Message Format" the field "Add Wrapper Element" and in the "Output Message Format:" section the field "Add Wrapper Element".

Regards.

former_member255627
Participant
0 Kudos

Thank you Inaki for your reply.

I will try to create web service and configure the REST adapter. I will reach you if i face any difficulties.

Regards,

Pushpa

manoj_khavatkopp
Active Contributor

It is same as you create SOAP webservice meaning you being the server by using SOAP adapter , same way use REST sender adapter create the outbound service interface with given request/response structure and give third party necessary connection details.

former_member255627
Participant
0 Kudos

Thanks Manoj.

Here, I have to create REST based web service.

Is it same like creating normal web service in PI? Means,after creating all interface objects, generating the web service in ID

Regards,

Pushpa

manoj_khavatkopp
Active Contributor
0 Kudos

Yes its the same , just use the REST adapter to create REST webservice that's it.

former_member255627
Participant
0 Kudos

Thank you Manoj.