Page 1 of 1

Connect to Polarion Webservice using C# (C Sharp)

Posted: Fri Feb 02, 2018 3:33 pm
by erlachma

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?


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

Posted: Mon Feb 05, 2018 8:28 am
by mhoe
Have a look at this sample. This works for me.
https://polarion.plm.automation.siemens ... OT-NET.pdf

HTH Marco

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

Posted: Wed Sep 19, 2018 11:41 am
by Mohamed123
I want to log into Polarion by using SessionId. can you please show me how is this done??