You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Andrew Eberbach (JIRA)" <ji...@apache.org> on 2007/01/25 02:56:49 UTC
[jira] Resolved: (MUSE-147) Input array parameters are not
correctly generated
[ 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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org