cancel
Showing results for 
Search instead for 
Did you mean: 

Sender HTTP with GET method

Former Member
0 Kudos

Hi

Can we use HTTP GET method to send data to XI?

If so, what will be the URL format?

My scenario is HTTP to RFC and it works good with HTTP POST method.

But the sender system sends a HTTP Get request and it throws error.

Is there any work around for this?

Thanks,

Poorni

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

refer the below log for some help.

chirag

Former Member
0 Kudos

Thanks for your replies.

I went through this link and this speaks about receiver http.They called the http address inside java proxy.

In my case it is sender http. Also as it is tested from client side, i cant see the error message.

Actually that HTTP Get request didnt even hit XI.

Whether we can send request to XI using HTTP GET method, does XI can recognize HTTP GET url and can extract the payload?

As in HTTP Get method the whole query string is appended in the url itself, can anyone provide me the url format for sending a single field say "MATNR" to XI.

Thanks.

Former Member
0 Kudos

I think HTTP GET is not supported by XI.

chirag.

Former Member
0 Kudos

Is there any other work around to send data to XI from HTTP using GET method?

Thanks.

Former Member
0 Kudos

Sorry to say but I have not done any scenarios with HTTP get but I suggest to give a try to search on SDN.

chirag

Former Member
0 Kudos

I searched in SDN, but couldnt find a suitable post.

Anyway thanks for your response Chirag.

Let me look for some favourable replies.

Thanks.

stefan_grube
Active Contributor
0 Kudos

You can use Java proxy or create a web service running on J2EE server.

Implement the HTTP call in Java and return the response to PI.

If you want to poll the HTTP call, you have to create your own adapter. You can use the sample adapter and replace the file reading part with the HTTP call.

Hope that helps

Stefan

Former Member
0 Kudos

Hi Stefan,

Thank you very much for your reply.

Can u please tell me in little detail how this can be done using java proxy?

How the call to HTTP adapter plain's url can be connected with java proxy?

Thanks,

Dava

stefan_grube
Active Contributor
0 Kudos

Check this blog:

Stefan

Former Member
0 Kudos

Thanks Stefan.

I looked at this blog, it gives me an idea how to access a externel http service with GET method.

I'm not very clear on hoe this can be used in sender side. Please clarify me.

If i use a java proxy at the sender side, can the sender system still use the same url

"http://server:port/sap/xi/adapter_plain?namespace=&interface=&service=&sap-user=&sap-password="

or should i use an external service to receive the data and then use it in java proxy?

stefan_grube
Active Contributor
0 Kudos

You have to use the proxy at receiver side. You send a message to PI, this calls the proxy. The proxy retrieves the response from server and send it back to PI.

Former Member
0 Kudos

Hello Stefan,

I'm having the same issue as Poorni. I'm trying to develop an HTTP GET which is fired to SAP PI.

You said:

"You have to use the proxy at receiver side. You send a message to PI, this calls the proxy. The proxy retrieves the response from server and send it back to PI."

What do you mean "You have to use the proxy at receiver side. You send a message to PI, this calls the proxy" ? How do you send a message to PI? The message reaches PI by doing the HTTP GET to a JAVA Proxy. The proxy will then invoke an ABAP proxy for getting a response and sending it back as the HTTP GET response.

This HTTP GET would be done by a browser which would invoke an URL responsible to invoke the JAVA Proxy. Is this possible? What would the URL be? Poorni mentioned "http://server:port/sap/xi/adapter_plain?namespace=&interface=&service=&sap-user=&sap-password=" but this is not possible since this URL is on the ABAP stack of PI and the JAVA proxy is on the JAVA stack.

Can you give me a hint?

Answers (2)

Answers (2)

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

HTTP adapters can be used only for HTTP Post.

former_member181985
Active Contributor
0 Kudos

Could you post the error........

Also post the header part for get Method.

Edited by: Praveen Gujjeti on Nov 14, 2008 8:20 AM