cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Webservices hosted on PI server and cross domain issue

Former Member
0 Kudos

Hi,

I have a Netweaver portal, a mobile application running on a local server and a PI server in the landscape.

The PI server is hosting a webservice, which needs to be consumed using the application hosted on the local machine using Javascript(ajax) / JSP.

When the webservice is requested from the locally hosted application on Tomcat, the PI server rejects the request, because of the origin policy, as the service is being hosted in the different domain.

We want to understand if there is any work around to complete the webservice consumption.

Is there anyway we can make use of HTTP destinations configured on the portal to access the webservices on the PI server?

Any help will be appreciated.

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

The issue here is your client java application and the hosted PI web service are in the different network. Basically your web service is allowed within its network. Talk to Basis and firewalls team to allow the web service to expose for all. Or you can use network gateway devices such as F5 or apache proxy server to forward the client request to the pi server  via firewall rules. If you configure gateway devices then the client will refer gateway device URL and the gateway device map the client url request to PI address and port.

Former Member
0 Kudos

Hi Roshan,

You need to expose your web service to reverse poxy server through DMZ layer web server which will communicate back n forth(Users& internal PI server) . This way the users outside your network can access to your internal network.

Regards,

Ashish

rajasekhar_reddy14
Active Contributor
0 Kudos

If your JAVA based appalictaion not part of client network then PI team has to expose  PI web service to outside world then only you can access it.

Some clients not ready to expose PI web services outside world then SAP Web dispatcher required.