cancel
Showing results for 
Search instead for 
Did you mean: 

Htttp Adapter

manigram
Active Participant
0 Kudos

HI,

I have configured HTTP receiver Adapter in SAP  PI to connect jsp application. i developed some pages in jsp also, in that second.jsp file path i configured in PI. I can able to indentify PI is connecting the second.jsp file. But i dont know how to reterive the values of PI in JSP file.

Please share your idea and thought .

Regards,

Manigandan

Accepted Solutions (0)

Answers (1)

Answers (1)

DG
Active Contributor
0 Kudos

Hi

It all depends on how you are designing your JSP pages.

If they respond with XML then you can just perform a mapping in PI.

If the reponse is html, you will have to perform a parsing and then a pi mapping based on it.

I will not recommend creating interfaces using jsp. JSP is mosly designed for webfronts. Better create a propper webservice.

manigram
Active Participant
0 Kudos

Hi Daniel,

Thanks for your reply. i know it's not mandiatory to create jsp pages.

But just am trying to use htpp adapter in Pi. For that i created one jsp file and i can able to connect from PI to that JSP page. But i dont know how to retrive the values which is coming from PI.

Please share how to do , like which class and method i have to use in JSP.

DG
Active Contributor
0 Kudos

Hi

If you just want to send what the PI/PO server is creating you can make a servlet much like the following.

http://stackoverflow.com/questions/5023718/how-to-retreive-raw-post-data-from-httpservletrequest-in-...

Though I would save the input to a file on the java server to see the raw request.

Daniel

manigram
Active Participant
0 Kudos

Hi daniel,

Thanks for your reply, ingeneral we can use request.getParameter() method to retrive the values from HTML page. In case of PI how can i retrive is there any difference b/w usual data from one jsp file to anothe jsp file and PI.

Please suggest me.