Hi,
Thanks for the quick response,
Stian Soiland-Reyes wrote:
> On Tue, Dec 1, 2009 at 09:38, Linda Bakker <[email protected]> wrote:
>
>> The problem that I am having is with optional parameters. In my wsdl
>> file, the parameterOrder is the following:
>> parameterOrder="datatype species genenames dataset sgi_corr_cutoff
>> sgi_inter_cutoff ppi_conf_cutoff" The first 3 are mandatory and the last
>> 4 are optional. If for example I decide to use the last optional
>> parameter, the first three optional input parameters should be marked as
>> empty and my value should be linked to the last field. In stead, the
>> value gets associated with the first optional input field. This happens
>> because
>>
>
> You don't specify in the WSDL that the parameter is optional, only:
>
> <wsdl:documentation>optional</wsdl:documentation>
>
>
> The wsdl:documentation is free text, so Taverna (or any other WSDL
> framework) can't understand that this means it is actually optional.
>
> As far as I know it is not possible to set minOccurs="0" for message
> parts, and even if it was I'm not sure how this would be interpreted
> when you have added a specific parameterOrder.
>
> The recommended way to do this these days is to do a Wrapped
> Document/Literal service with just a single part that is a complex
> type, and in the complex type you can define various elements to be
> optional or not using minOccurs.
>
Yes, well I tried adding something like this:
<wsdl:types>
<xsd:schema
targetNamespace="http://bioinformatics.holstegelab.nl/retrieve_integromics_data">
<xsd:complexType name="retrieveDataInput">
<xsd:sequence>
<xsd:element name="datatype" type="xsd:string" default="type" \>
<xsd:element name="species" type="xsd:string" default="species" \>
...etc
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
with several different options like: default="..", minoccurs="0",
nillable="false" etc...but nothing seems to work.
My preferred solution at this point would be to have a way to add
default values and if I add the wsdl:types tag to the current wsdl file
do I also need to modify the portType, binding and service tags??
Linda
------------------------------------------------------------------------------
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct
te informeren door het bericht te retourneren. Het Universitair Medisch
Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W.
(Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij
de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.
Denk s.v.p aan het milieu voor u deze e-mail afdrukt.
------------------------------------------------------------------------------
This message may contain confidential information and is intended exclusively
for the addressee. If you receive this message unintentionally, please do not
use the contents but notify the sender immediately by return e-mail. University
Medical Center Utrecht is a legal person by public law and is registered at
the Chamber of Commerce for Midden-Nederland under no. 30244197.
Please consider the environment before printing this e-mail.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/