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: 22
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

Posts: 1
Joined: Mon Sep 17, 2018 11:46 am

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

Postby Mohamed123 » Wed Sep 19, 2018 11:41 am

I want to log into Polarion by using SessionId. can you please show me how is this done??

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 9 guests