Many thanks for your reply Donal.
I tried your suggestion, but unfortunately the unmarshalling error persists. :(
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap="http://ns.taverna.org.uk/2010/xml/server/soap/"
xmlns:xlin="http://www.w3.org/1999/xlink"
xmlns:ser="http://ns.taverna.org.uk/2010/xml/server/">
<soapenv:Header/>
<soapenv:Body>
<soap:getRunDirectoryContents>
<runName>93130422-cc39-48df-8276-8e1448efb2b9</runName>
<directory>out</directory>
</soap:getRunDirectoryContents>
</soapenv:Body>
</soapenv:Envelope>
Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: Unable to create an instance of
org.taverna.server.master.common.DirEntryReference</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I get a similar error for getRunDirectoryAsZip as well.
Regards,
Ali
-----Original Message-----
From: Donal K. Fellows [mailto:[email protected]]
Sent: Thursday, January 20, 2011 9:38 PM
To: Ali Ranalvi
Cc: [email protected]
Subject: Re: [Taverna-users] Problem with retrieving output of workflow run
using SOAP in TavernaServer-2.2a1
On 20/01/2011 04:02, Ali Ranalvi wrote:
> Did you have a chance to look at this problem? I also want to add that
> I performed the same test with REST and it works just fine. Infact, I
> was able to retrieve the output contents of the same workflow run
> mentioned in the messages below (491bcc2c-0129-4c23-bbbe-e9f76bc6aa83) using
> REST.
>
> Once again, I appreciate your time. If you could confirm where the
> problem lies (some misconfiguration, missing library or a bug in the
> code), it would really help us a great deal.
At a guess, the issue is that you're passing an invalid URL. If we look at one
of the messages that leads to a failure:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:soap="http://ns.taverna.org.uk/2010/xml/server/soap/"
> xmlns:xlin="http://www.w3.org/1999/xlink"
> xmlns:ser="http://ns.taverna.org.uk/2010/xml/server/">
> <soapenv:Header/>
> <soapenv:Body>
> <soap:getRunDirectoryContents>
> <runName>491bcc2c-0129-4c23-bbbe-e9f76bc6aa83</runName>
> <directory xlin:href="?" ser:name="?">out</directory>
> </soap:getRunDirectoryContents>
> </soapenv:Body>
> </soapenv:Envelope>
We see that the xlin:href attribute of <directory> is "?", which I believe is
invalid. Can you instead omit it? It is optional after all.
The only part you need is the content, and the overall message should be (with
xmlns noise stripped; that's the same as in your samples):
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<soap:getRunDirectoryContents>
<runName>491bcc2c-0129-4c23-bbbe-e9f76bc6aa83</runName>
<directory>out</directory>
</soap:getRunDirectoryContents>
</soapenv:Body>
</soapenv:Envelope>
Donal.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/