Primavera (MOSC)

MOSC Banner

How to access REST API for P6 EPPM on premise

in Primavera (MOSC) 6 commentsAnswered

Hello I am trying to access the P6 REST API using Java Traditional method

P6 it is installed on premise:

The code is from Oracle Sample Guide.

Is it REST API available for on premise?

Is any configuration that should be done before this?

The error message that I recive:

"Exception in thread "main" java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8206/p6ws/restapi/user?user_0&Fields=Name

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)

at sampleprogram.SampleProgram.callRestURL(SampleProgram.java:55)

at sampleprogram.SampleProgram.main(SampleProgram.java:35)

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