Web services: receive attributes uri and unresolvable only

Description
martins
Posts: 181
Joined: Thu Nov 05, 2009 3:24 pm

Web services: receive attributes uri and unresolvable only

Postby martins » Fri Nov 06, 2009 8:41 am

Hello,

I try to implement an application (written in PHP) that accesses the Polarion ALM Web Services (Version 3.3.2) within the same local network but on another server.

The SoapClient connects e. g. to the TrackerWebService and retrieves the WSDL service description (this works well with all the different services). But when I call a function (e. g. getWorkItemById or anything else) I just receive the following response:

<getWorkItemByIdResponse xmlns="http://ws.polarion.com/TrackerWebService-impl">
<getWorkItemByIdReturn
uri="subterra:data-service:objects:/default/elibrary${WorkItem}EL-92"
unresolvable="true" xsi:type="ns3:WorkItem"
xmlns:ns1="http://ws.polarion.com/types"
xmlns:ns2="http://ws.polarion.com/ProjectWebService-types"
xmlns:ns3="http://ws.polarion.com/TrackerWebService-types"/>
</getWorkItemByIdResponse>

Where is the missing information, where is the content of the WorkItem element?

I suspect it has something to do with the 'unresolvable="true"' attribute. But what does this mean exactly?

Could it be a matter of authentication? Because I get the same response whether I set a valid "user" and "passwd" as connection options or not. Is there a special username / password required when connecting to the webservices (I use "admin") or how does the authentication and authorization work?

I have no experience in implementing web services (especially not with Polarion) but I am familiar with PHP, XML and the "basics" of Polarion. I'd be glad if anybody could give me a hint how to solve this problem.

Kind regards

Martin

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: Web services: receive attributes uri and unresolvable only

Postby NickEntin » Mon Nov 23, 2009 12:20 pm

Hi Martin,

You might want to look into .logs of Polarion itself (i.e. if there are any authentication problems, they will be reflected in the .logs).
So look into [for default Windows installation] c:\Polarion\data\workspace\.metadata for the most recent log4j-<timestamp of latest server start>.log

Best regards,
Nick

martins
Posts: 181
Joined: Thu Nov 05, 2009 3:24 pm

Re: Web services: receive attributes uri and unresolvable only

Postby martins » Wed Nov 25, 2009 1:57 pm

Hello Nick,

at that time the webservice access occured there are only two rows in the logfile:

[TP-Processor3] INFO com.polarion.alm.ws.handlers.SessionHandler - Session -1789532705051069046 created.
[TP-Processor3] INFO TXLOGGER - Tx 4902a3e4618bc_0_4902a3e4618bc_0_: finished. Time total: [ TIME 0,007398426 s. ], svn time total: [ TIME 0 s. ][] (0x), processed revs: [], write: false, rollback: false

That's all. It's a pity that there is no more information about what goes wrong.

Has anybody ever implemented a similar solution (an application running on one server and accessing the
polarion webservice running on another server)? Are there any examples (in addition to the SDK documentation /
examples which I find very poor) on how to implement a webservice?

Best regards,
Martin

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: Web services: receive attributes uri and unresolvable only

Postby NickEntin » Fri Nov 27, 2009 8:22 am

Hi Martin,

that looks strange.
First of all, all the WebService methods runs inside of a session, i.e. you may not get list of workitems or any other info from Polarion before you're actually logged in.
And log-in procedure retrieves license, check your permissions, roles, etc.etc.
Which means, that when your application accesses Polarion, there must be statements in the log - user name, authentication results, type of license consumed.
If you don't see these info, may be you simply forgot to call webServiceFactory.getSessionService().logIn(user, password) at the beginning of your code?

Of course we very actively use applications, which access Polarion from a different machine (all the importers and integrations work this way).
You may find additional examples here: http://extensions.polarion.com

Best regards,
Nick

ewiebe
Posts: 11
Joined: Fri Feb 26, 2010 3:05 pm

Re: Web services: receive attributes uri and unresolvable only

Postby ewiebe » Mon Mar 01, 2010 8:35 am

I have a question:
Does anybody know how to access the Polarion WebService(s) from C#?
Is there a description for it? (Step-by-step) Or could you say it?

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: Web services: receive attributes uri and unresolvable only

Postby NickEntin » Tue Mar 02, 2010 10:29 am

Hi,

yes, sure, it's possible :-)
I've posted more detailed answer in another thread from you
http://forums.polarion.com/viewtopic.php?f=5&t=9035

Best regards,
Nick


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 14 guests