Connect to Polarion Webservice using C# (C Sharp)

Posts: 1
Joined: Fri Feb 02, 2018 3:08 pm

Connect to Polarion Webservice using C# (C Sharp)

Postby erlachma » Fri Feb 02, 2018 3:33 pm


I am desperately trying to get data out of polarion using C#.
I have imported the webservices into my VS2017 project, added some code to access it, read all information I could find on the internet.

The app connects successfully to Polarion, so I know the credentials are correct.

Code: Select all

            SessionWebServiceClient session = new SessionWebServiceClient();
            TrackerWebServiceClient tracker = new TrackerWebServiceClient();
            ProjectWebServiceClient project = new ProjectWebServiceClient();

            Settings s = new Settings();
            session.logIn(s.username, s.password);

            var projectGroup = project.getRootProjectGroup();

the logIn method seems to work, the getRootProjectGroup() however gives me a "not authorized" error. This seems to be due to a missing "sessionID", says the internet.

However, I have added a SoapExtension as others mentioned, but without success.

Can maybe someone share a piece of code that simply connects to Polarion and retrieves just any data?


Posts: 10
Joined: Tue Nov 29, 2016 3:30 pm

Re: Connect to Polarion Webservice using C# (C Sharp)

Postby mhoe » Mon Feb 05, 2018 8:28 am

Have a look at this sample. This works for me.
https://polarion.plm.automation.siemens ... OT-NET.pdf

HTH Marco

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests