Primavera (MOSC)

MOSC Banner

Can a java.net.Proxy object be used to connect to Primavera Web Services using the java stub classes

edited Jul 11, 2019 5:04AM in Primavera (MOSC) 2 commentsAnswered

The normal way of connecting to P6 Web Services is fairly simple

     URL wsdlURL = new URL("https://my.location.com:8206/p6ws/services/ProjectService?wsdl");

     ProjectService ps = new ProjectService(wsdlURL);

     ProjectPortType pt = ps.getProjectPort();

and then using the port created in this way is also fairly straightforward. The problem is that the P6 Web Services server is exposed via SAP Cloud Connect and in order to connect a java.net.Proxy is needed. So if I were connecting to the server directly (bypassing the Web services Java api) I would create the URL as above, but a call to URL.openConnection() would fail, but I would have to use URL.openConnection(java.net.Proxy) instead.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center