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 (1)

Answers (1)

Former Member
0 Kudos

Hello Vikesh,

There must be a crossdomain.xml file present on SAP PI File system. (Check with Basis)

You can add exception URLs from which communication is allowed.

For eg. in below requests from all servers are allowed

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*" />
</cross-domain-policy>

regards,

Anirudh Vyas