I think it's probably the case that wsdl2java does not recognize the 
minOccurs/maxOccurs values as requiring an array. I'll ask Andrew to chime 
in with clarification, and if necessary, we'll file a bug to get this 
support.

In the meantime, yes, the Muse runtime that process requests will handle 
basic types and their arrays. If you change the method signature to:

        String[] lookup(String param0);

and then return an array of strings, you will see them serialized 
properly. Check out 'MyCapabilityImpl.java' in the 'wsrf' sample project 
to see an example of string arrays as a return value (albeit for resource 
properties).

thanks,
Dan



"José Antonio Sánchez" <[EMAIL PROTECTED]> wrote on 11/10/2006 11:11:12 
AM:

> Hello, I'm developing some services with Muse and in one of them I
> want it to receive an array of strings. I have defined the input
> message as:
> 
> .......
> <xsd:element name="Lookup">
>    <xsd:complexType>
>       <xsd:sequence>
>          <xsd:element name="Entry" type="xsd:string" minOccurs="0"
> maxOccurs="unbounded"/>
>       </xsd:sequence>
>    </xsd:complexType>
> </xsd:element>
> .......
> 
> but then I get a method
> 
> String lookup(String param0) throws Exception;
> 
> So I tried with:
> 
> <xsd:element name="Lookup">
>    <xsd:complexType>
>       <xsd:sequence>
>          <xsd:element name="Entries" type="tns:EntriesType"/>
>       </xsd:sequence>
>    </xsd:complexType>
> </xsd:element>
> 
> <xsd:complexType name="PackagesType">
>    <xsd:sequence>
>       <xsd:element name="Entry" type="xsd:string" minOccurs="0"
> maxOccurs="unbounded"/>
>    </xsd:sequence>
> </xsd:complexType>
> 
> but now I get
> 
> String lookup(Element param0) throws Exception;
> 
> According to the reference documentation, Muse comes with
> serialization for basic types and their arrays, but how can I declare
> an array in the wsdl so the generated method look something like
> this:?
> 
> String lookup(String[] param0) throws Exception;
> 
> -- 
> Regards.
> José Antonio Sánchez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to