[kepler-users] Problems with Actor - WebService With ComplexTypes

Luis Assunção lass at isel.ipl.pt
Wed Apr 2 04:27:11 PDT 2008


Hi Daniel

See attach the xml file from workflow.
The Web Service is running on a local machine in ASP .NET Web service. It is
very simple (I wrote it only for test kepler with web service actor that
support complex types) and the type used as input/output methods is a simple
Class with 3 fields of the type string. In future I will need kepler to
invoke Web services with more complex data types, for instance, an
aggregated Class based on other classes. 

Thanks in advance
Luis Assuncao

-----Original Message-----
From: Daniel Crawl [mailto:crawl at sdsc.edu] 
Sent: Wednesday, April 02, 2008 12:38 AM
To: Luis Assunção
Cc: kepler-users at ecoinformatics.org
Subject: Re: [kepler-users] Problems with Actor - WebService With
ComplexTypes


Hi Luis,

Could you send the workflow xml file? I would like to know
what web service URL causes this problem.

Thanks,

  --dan

Luis Assunção wrote:
>
> Hi
>
> After I have waited for Web Service Actor with complex types, finally 
> I saw that this feature is available in Kepler version 1.0 rc1.
>
> Unfortunately I am disappointed because I tested with very simple 
> workflow, see attached bitmap from kepler design,  (first actor call a 
> method getContact that return a complex type (ct) and the second actor 
> call other method that receive the result from 1^st actor (ct) and 
> then return the same complex type (ct).
>
> If I only call the first method works, but if call the second method 
> (see below) I have the following exception:
>
>  
>
> ptolemy.kernel.util.IllegalActionException: Attempt to link more than 
> one relation to a single port.
>
>   in .ComplexTypes.normalizeContact.ct and .ComplexTypes.ct
>
>                 at 
> ptolemy.actor.IOPort._checkMultiportLink(IOPort.java:3811)
>
>                 at ptolemy.actor.IOPort._checkLink(IOPort.java:3255)
>
>                 at 
> ptolemy.actor.TypedIOPort._checkLink(TypedIOPort.java:736)
>
>                 at 
> ptolemy.kernel.ComponentPort.link(ComponentPort.java:540)
>
>                 at ptolemy.actor.IOPort.link(IOPort.java:2217)
>
>                 at 
>
org.sdm.spa.WSWithComplexTypes._addPortForComposite(WSWithComplexTypes.java:
1182)
>
>                 at 
> org.sdm.spa.WSWithComplexTypes._createOnePort(WSWithComplexTypes.java:946)
>
>                 at 
>
org.sdm.spa.WSWithComplexTypes._genInputPortsAndActors(WSWithComplexTypes.ja
va:594)
>
>                 at 
> org.sdm.spa.WSWithComplexTypes._initMethod(WSWithComplexTypes.java:573)
>
>                 at 
> org.sdm.spa.WSWithComplexTypes.preinitialize(WSWithComplexTypes.java:363)
>
>                 at ptolemy.actor.Director.preinitialize(Director.java:865)
>
>                 at 
> ptolemy.domains.sdf.kernel.SDFDirector.preinitialize(SDFDirector.java:527)
>
>                 at 
> ptolemy.actor.CompositeActor.preinitialize(CompositeActor.java:1103)
>
>                 at 
> ptolemy.actor.Manager.preinitializeAndResolveTypes(Manager.java:913)
>
>                 at ptolemy.actor.Manager.initialize(Manager.java:578)
>
>                 at ptolemy.actor.Manager.execute(Manager.java:321)
>
>                 at ptolemy.actor.Manager.run(Manager.java:1071)
>
>                 at ptolemy.actor.Manager$3.run(Manager.java:1112)
>
> There is someone can give me some help ?
>
>  
>
> Luis Assuncao
>
> lass at isel.ipl.pt
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComplexTypes.xml
Type: text/xml
Size: 58389 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20080402/a0fd13ec/attachment.xml>


More information about the Kepler-users mailing list