ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Antonio (JIRA)" <j...@apache.org>
Subject [jira] Created: (MUSE-147) Input array parameters are not correctly generated
Date Tue, 14 Nov 2006 07:42:37 GMT
Input array parameters are not correctly generated
--------------------------------------------------

                 Key: MUSE-147
                 URL: http://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: Dan Jemiolo


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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Mime
View raw message