cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Service exposed trough Portal reverse proxy

Former Member
0 Kudos

Hello Dear SAP gurus.

We are requiered to expose a PI service to internet but dont want to expose it directly, we hearded that an optime way is that we expose it to portal (wich is exposed to internet) using a reverse proxy in Portal server. We are a little new to this technology and could help if someone who has allready done this could provide us with some guiadance.

We are using SAP PI 7.1 EPH 1 and Portal 7.3

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alejandro,

I think that what you are trying to do is to actually expose the web service securely to the internet right?

I don't know how the architecture of your network and applications looks like but I assume you are using the Web Dispatcher that lives in the Java Stack of your Portal instance. In this case you can use this Web Dispatcher (which among other things, can work as a reverse proxy) and configure it to route that request INTERNALLY to PII which holds the Web service implementation.

Please see the architecture of the Web Dispatcher in the link below and you will see more clearly what I mean.

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/48/8fe37933114e6fe10000000a421937/frameset.htm

Cheers,

Pablo

Answers (4)

Answers (4)

Former Member
0 Kudos

Unfurtunatly they tell me webdispatcher is not an option due project restrictions.

Yes the overall picture is to expose a PI service (lets call it Service1).

So I have my Service1 WSDL hosted in the PI server working fine (Lets call it srv80), the requierement is that somehow they can manage to consume it from the Enterprise portal Server(srv100).

I allready tried using an iview containing the wsdl of srv80 but didnt worked.

Baskar for what you tell me in your last post I could need someone to develop a custom service (in Enterprise Portal) that consume the internal PI service right?

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Now your requirement is very clear. You host webservice in Pi using soap sender.  Create WSDL and provide it to the portal team. Portal team pretty much create webservice client using wsdl to consume the webservice which is hosted on PI. That's it. You are good to go...

Creating wsdl client logic using portal is easier and feasible approach.

Former Member
0 Kudos

Then is just telling them to build a webservice client wsdl that consume the wsdl that is allready in PI...

Former Member
0 Kudos

What we have is PI in our Intranet,

Portal exposed to internet

What we need is to publish one service to internet trough the portal... Just that we are not sure how to make this kind of configuration...

baskar_gopalakrishnan2
Active Contributor

If you want to host webservice using portal ,then you might not need PI. Keeping both PI and portal is redundant in your design landscape. You can still host webservice using portal and handle through it.

refer this link

http://help.sap.com/saphelp_nw72/helpdata/en/49/d6a9032190736fe10000000a42189b/content.htm

If you like to route message using java web dispatchert to PI, then you create and host webservice in pi as I already replied. But you have to change the just the portnumber accordingly for the webdispatcher. So webdispatcher will redirect the call to the appropriate PI port number (ex: 50000). Rest is same.

iaki_vila
Active Contributor
0 Kudos

Hi Alejandro,

As Baskar says the Service Registry is the way to expose webservices inside the SOA architecture.You can check the excellent Daniel Graversen's blog for this http://scn.sap.com/people/daniel.graversen/blog/2008/02/27/publish-services-from-pi-71-to-the-servic...

Regards.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

The ideal & best practice to host webservice is using PI soap sender adapter.  Also SAP PI 7.1 is SOA middleware.  So I would recommend you to do above ways. Why do you need to host via portal. Also you can register your webservice in the Service Registry.  There are plenty of blogs and threads about creating webservice, sender adapter configuration, register web services in PI.  Please search scn.

You might want to glance all these documents...

http://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/content.htm

http://www.riyaz.net/sap/xipi-a-guide-to-using-sap-xi-soap-adapter/113/