cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP GET Request sent to SAP PI

Former Member
0 Kudos

Hello,

I'm having the same issue as thread , meaning I'm trying to implement the following scenario:

Client Java proxy<>SAP PI <> RFC.

My requisite is that the client Java Proxy is addressed by a browser which would fire an HTTP GET request addressed to this PROXY. This proxy would be responsible to send the message to SAP PI and getting the RFC response to be displayed in the browser.

My problem is to figure out the URL to invoke my client java proxy. To which URL do I address my request?

Can you give me a hint?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Kindly Refer this Blog:

/people/amol.joshi2/blog/2006/06/28/must-fire-a-http-get-from-xi---try-this

BR,

Sai

stefan_grube
Active Contributor
0 Kudos

You have to write a servlet that calls the Java proxy EJB.

The servlet and the Java proxy have to run on same server.

Provide the URL of the servlet to the client.

Regards

Stefan

Former Member
0 Kudos

Hello Stefan,

Thanks for your suggestion.

Kind Regards.

prateek
Active Contributor
0 Kudos

Your requirement is not very clear. Get method is used for retrieving data through URL. This would mean that it usually works with http receiver cases. Therefore while implentinng java proxy instead of http receiver, server proxy is implemented and not the client proxy as you are implementing here.

Regards,

Prateek

Former Member
0 Kudos

Hello Prateek,

You're right, it is a server java proxy.

Do you have any suggestion?

Thank you.

prateek
Active Contributor
0 Kudos

Ok. So I guess the question further is

To which URL do I address my request?

This information would be needed to be filled in receiver XI communication channel. This would be the address of the java engine where the java proxy is deployed. e.g if it is the XI adapter engine, then

Target Host: adapter engine hostname

Service No: Port like 5xx00

Path: /MessagingSystem/receive/JPR/XI

Regards,

Prateek

Former Member
0 Kudos

Hello Prateek,

I think there is a tiny confusion, my first scenario was correct. What I want PI to do is to receive an HTTP GET Request, invoke an ABAP Proxy and send the response back.

So, it is a client proxy right? what you were suggesting was that PI would do the HTTP GET Request, right? But that is not the scenario, I really want to receive GET requests on PI and not invoking it.

Any idea?

former_member181985
Active Contributor
0 Kudos

Hi Gonçalo,

Your first and last explanations doesn't match.

Understand and come up with correct requirement.

- Gujjeti.

prateek
Active Contributor
0 Kudos

Let me make you clear about one thing. XI does not support this Get method at sender

What type of application exist at sender? If you cannot change it to send the entire payload as message body (like an http client), then we must think of some alternative.

As it is http Get, I consider that your application sends all data through some payload. Now develop a client java proxy and deploy it on XI adapter engine. So your sender application will be triggering this client proxy and provied data to it. Send this data to XI as a normal client proxy scenario. Is this scenario feasible for you?

Regards,

Prateek

Former Member
0 Kudos

Hello Prateek,

Relating to PI not supporting HTTP GET Request, unfortunately I'm aware of it

In my scenario, the sender has a browser (IExplorer or firefox or whatever) which will do an HTTP get to an URL and sending the data through the URL.

You're absolutely right in the scenario you described it.

"As it is http Get, I consider that your application sends all data through some payload. Now develop a client java proxy and deploy it on XI adapter engine. So your sender application will be triggering this client proxy and provied data to it. Send this data to XI as a normal client proxy scenario. Is this scenario feasible for you?"

I'll have to develop the client proxy but my main problem is, how will my sender application trigger the client proxy? What's the URL that the sender will have to address?

Thank you very much for your suggestions

Kind Regards,

Gonçalo Mouro Vaz

former_member181985
Active Contributor
0 Kudos

What is the content type from JAVA PROXY?

Former Member
0 Kudos

Hello Praveen,

Thank you for answering. What do you mean by content type? The response sent to the browser will be an xml file.