cancel
Showing results for 
Search instead for 
Did you mean: 

PI Consume Restful Webservices

Former Member
0 Kudos

Hi,

I have scenario in which PI needs to consume Restful webservices.

I am looking at HTTP receiver adapter in which I want to set appropreate action (POST, GET, PUT or DELETE) based on mapping.

For example I want to DELETE purcahse order TXU-19282. The http request that sends to Restful webservice looks like as follows.

DELETE /restfulwebservice-war/poservice/TXU-19282 HTTP/1.0

Connection: close

Content-Type: text/xml

Content-Length: 0

Pragma: no-cache

Now my question is how do I set set above information on HTTP receiver adapater. I looked at dynamic configuration and could find it useful.

Also I am interested in finding how do I set both heder and Payload via mapping?

Please let me know.

Thank you,

Balaji

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

> Now my question is how do I set set above information on HTTP receiver adapater. I looked at dynamic configuration and could find it useful.

>

> Also I am interested in finding how do I set both heder and Payload via mapping?

This is not possible. HTTP adapter (and even SOAP adapter) only support method POST.

If you need HTTP other commands like DELETE, then you have to write your own code to achieve this, for example you could use a Java proxy.

Former Member
0 Kudos

As Stefan said above, http adapter only support POST action.

Former Member
0 Kudos

I dont think, there is an option to mention (POST, GET, PUT or DELETE) in HTTP reciever adapter.

usually , it is with JDBC adapter.

Lets wait for someone to answer as well. am not much sure.

Also I am interested in finding how do I set both heder and Payload via mapping?

Usually, header can be filled with XSL mapping. payload can also be filled with XSL or else with simple graphical mapping.

-santosh.