Skip to Content
0

Creating a REST web service in SAP PI

Feb 22 at 10:52 AM

49

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Iñaki Vila Feb 22 at 01:29 PM
1

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0
Manoj K Feb 22 at 11:24 AM
1

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.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0
pushpalatha pabbathi

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

0

Thank you Manoj.

0