[
https://issues.apache.org/jira/browse/MUSE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Eberbach resolved MUSE-147.
----------------------------------
Resolution: Fixed
This should finally be fixed as part of the commit for Muse-118.
For example:
<xsd:element name="MyOperation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="first" type="xsd:string"
minOccurs="2"/>
<xsd:element name="second" type="xsd:boolean"
minOccurs="4"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Would define a method that takes an array of strings and an array of booleans.
> Input array parameters are not correctly generated
> --------------------------------------------------
>
> Key: MUSE-147
> URL: https://issues.apache.org/jira/browse/MUSE-147
> Project: Muse
> Issue Type: Bug
> Components: Core Engine - WSDL Processing
> Affects Versions: 2.1.0
> Environment: I think all platforms are affected but anyway I'm using
> Ubuntu Linux with Sun's JDK 1.5.
> Reporter: Jose Antonio
> Assigned To: Andrew Eberbach
> Fix For: 2.2.0
>
>
> When using this kind of input message in a WSDL file:
> .......
> <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>
> .......
> It is expected to obtain a method with an Array as input but instead I get
> this kind method signature:
> String lookup(String param0) throws Exception;
> Instead of the expected
> String lookup(String[] param0) throws Exception;
> I also tried defining the input as
> <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 then I get the following method signature:
> String lookup(Element param0) throws Exception;
> I think maybe the WSDL generation tool ignores the minOccurs - MaxOccurs
> attributes of the input message so it does not treat it like an Array.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]