on 05-27-2011 10:30 PM
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
> 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.