cancel
Showing results for 
Search instead for 
Did you mean: 

Method of Access:HTTP GET in http to idoc scenario in SAP PI

Former Member
0 Kudos

Dear Team,

I am doing http to idoc scenario in PI7.3

I got input as one .xsd from client.I imported the same and i have completed that scenario.I gave some sample data in message mapping and i took the same source file into RWB for Test Message.I tested and i got idoc in R3 .

In Functional Spec, they have mentioned the method of Access:HTTP GET .

How this scenario will get live data from thier relevant httplink.Will any setup to be done like ICM configuration for SSL service to get Http to be activated.

How this HTTP GET will get input?

Regards

Mani

Accepted Solutions (0)

Answers (3)

Answers (3)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Mani,

                Could you please confirm if the sender system is REST webservice? If its REST webservice HTTP GET/POST methods have to be used. We have REST adapter to read/write from REST webservices. Check this blog http://scn.sap.com/people/peter.ha3/blog/2011/11/08/rest-adapter-for-netweaver-sap-pi . Please kindly rate the blog if you find it useful. In case your sender systems is not based on REST webservice please igonre this post.

Regards

Anupam   

Former Member
0 Kudos

Hi Anupam,

Thank u for ur information.I am new to this REST Webservice.I don't know whether it belongs to REST Webservice.In this scenario, Employees are going to purchase some products through their portal.That salesrecords going to be stored in SAP as IDOC from this http.

My sample link like http://XXX/getorders.igx?fromdate=2012-01-01&todate=2012-05-2012

Where,

XXX-Serverhostname,

getorders.igx is the URL end Point 

If the system was able to retrieve records for the query ,one XML will be returned with ORDERID,ACCOUNTID and INVOICENUM etc.

Pls suggest me to proceed with this.Shall i take this as REST webservice or not?

Regards

Mani

anupam_ghosh2
Active Contributor
0 Kudos

Hi Mani,

                   Ask the business to provide you more details on the GET method. The business must provide you with parameters you need to pass along with GET method. Now here are the questions you need answers

1. Was there  any SAP integrtaion with the sender system/service? If yes try get in contact with the team who did this integration.

2. If there was no SAP implementation, what were the other integration that has taken place? If so ask for the sample codes if any.

3. Ask the sender whether this is REST web service or not? If yes ask for API guide for intercating with the webservice.

                     From your description I can say there is maximum probability of the sender server being a REST webserver. Just interact with the sender server technical team they will help you on this.

Once you get answers to above questions the scenario will become clearer to you.

Then you can come back to forum with more questions , if any at all.

Regards

Anupam 

Former Member
0 Kudos

Hi Anupam,

As per your mail,for this scenario they mentioned method accessing is HTTP GET in functional spec.

1. Was there  any SAP integrtaion with the sender system/service? If yes try get in contact with the team who did this integration.

For SAP integration only we are doing this scenario right?whatelse be the integration before with this system /service

2. If there was no SAP implementation, what were the other integration that has taken place? If so ask for the sample codes if any.

what will be the other integration u mentioned .can u give some example for understanding?

3. Ask the sender whether this is REST web service or not? If yes ask for API guide for intercating with the webservice.

From ur explanation, i also expect this is under REST only.I will confirm the same.

Apart from this , they asked us to redign the xml as per mapping sheet  for this scenario input .What would be the input for this scenario?how will my scenario will take input from http link through HTTP GET.

Pls clarrify the above.

Regards

Mani

anupam_ghosh2
Active Contributor
0 Kudos

Hi Mani,

1.

For SAP integration only we are doing this scenario right?whatelse be the integration before with this system /service?

ans)

              I guess I could not clarify my first question properly.  I understand you are going to do the integration. If there has been a prior SAP - Third party integration that could serve you as a guide.Hence the reason of asking the first question.

2.

what will be the other integration u mentioned .can u give some example for understanding?

ans)

Second question: REST webservice-SAP  integration scenarios are much less in number. But non SAP system have been interacting with REST webservices in past, thus you might get sample codes to interact with the server. The way of authentication varies from server to server thus if you get a sample code you will understand the method of authentication applied. Check this link http://rest.elkstein.org/2008/02/what-is-rest.html

3.

Apart from this , they asked us to redign the xml as per mapping sheet  for this scenario input .What would be the input for this scenario?how will my scenario will take input from http link through HTTP GET.

ans) If the scenario is REST then the server cannot initiate any message flow.

You as a client have to initate the communication using GET and you will receive XML response in return which has to be mapped

you can use https://www.advantco.com/product/REST adapter to talk with this webservice. 

Hope this provides you some clarification on the scenario.

Regards

Anupam

Former Member
0 Kudos

Thank you Mr.Anupam,

Your information for my scenario gave me clarity to move forward in this scenario.I will get all details from client and get back to u.

Regards

Mani

udo_martens
Active Contributor
0 Kudos

Hi Mani,

7.3 supports HTTP GET: SAP help: Configuring the Java HTTP Adapter

You have to send to

http://<hostname:port>/<path>?<query-string>

path = /HttpAdapter/HttpMessageServlet query-string = ?interfaceNamespace=<interfaceNamespace>&interface=<interface>>& senderService=<senderService>&senderParty=<senderParty>&receiverParty=<receiverParty>&receiverService=<receiverService>&qos=<qos>&queueid=<queueid>&msgguid=<msgguid>

Regards,

Udo

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You might want to see soap axis adapter to handle http get operation. There is one michal blog about this.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-exchange-rates-fr...

Former Member
0 Kudos

Hi Baskar,

I have found your discursion in sdn blog that PI 7.3 only supports HTTP GET.I am working on PI 7.3 only.If my scenario want to retrive xml from webservice , i need to use HTTP Advanced Adapter Engine or anything else?

If i select , HTTP_AAE only , i can find this GET option.

If i have to use the same , pls refer some links .....

Regards

Mani