AnsweredAssumed Answered

How to authenticate Primavera P6 Web Services using Username Token in C#?

Question asked by jessica210 on May 25, 2017

I need to use Username Token in order to authenticate Primavera P6 Web Services. I have created console application in VS2010 and added a service reference to:

http://localhost:8206/p6ws/services/ExportService?wsdl

So at this moment I have a proxy class and I can write something like this:

var exportService = new ExportPortTypeClient();var project = new ExportProject { ProjectObjectId = 1000 };exportService.ExportProject(project);

While I'm trying to invoke ExportProject() I get an exception because of authentication failed.

Does anyone have an example code of authentication using Username Token?

Outcomes