[ 
https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536351
 ] 

Tawfik Lachheb commented on CXF-1116:
-------------------------------------

FYI: I was able to move further by setting the minOccurs/maxOccurs in the 
method aegis mapping.  I added this:

<return-type mappedName="out" minOccurs="0" maxOccurs="1"/>

This resulted in the response being

  <xsd:sequence>
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="response" 
type="ns0:ArrayOfString-1-0" />
  <xsd:sequence>

which seems to be correct given that ArrayOfString-1-0 looks like this:

  <xsd:complexType name="ArrayOfString-1-0">
  <xsd:sequence>
  <xsd:element minOccurs="0" name="string" nillable="true" type="xsd:string" /> 
  </xsd:sequence>
  </xsd:complexType>

We are having our QA team see the effect on clients such as AXIS and .NET as I 
can see differences in the way parameters and return objects are shown in the 
client stubs.  A return object that used to appear as a String[] type in xfire 
now appears ArrayOfString-1-0[] type.  A little confusing to clients but 
correct...

Thanks

> 1-dimentional arrays appear as 2-dimentional in the wsdl
> --------------------------------------------------------
>
>                 Key: CXF-1116
>                 URL: https://issues.apache.org/jira/browse/CXF-1116
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1
>            Reporter: Tawfik Lachheb
>            Priority: Blocker
>
> We are trying to publish interfaces using the simple frontend with aegis.  We 
> are seeing that any method that returns an array does not appear correctly in 
> the wsdl.  For example, if a method returns a String[], the return appears in 
> the wsdl as:
>   <xsd:sequence>
>   <xsd:element maxOccurs="unbounded" minOccurs="0" name="return" 
> type="tns:ArrayOfString" /> 
>   </xsd:sequence>
> which represents a 2-dimentional array because of the maxOccurs="unbounded".
> This is a show-stopper for us.  If a fix is made, we are willing to use a 
> snapshot build until a release happens.
> Thanks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to