You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Tawfik Lachheb (JIRA)" <ji...@apache.org> on 2007/10/17 19:51:51 UTC

[jira] Created: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

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
    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.


Re: [jira] Created: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by Tawfik <ta...@yahoo.com>.
Has anyone found a work-around for this issue?
We are releasing to production soon and unless we can resolve this issue, we
will have to rollback everything we did to start using CXF.

Any help will be appreciated.

Thanks



JIRA jira@apache.org wrote:
> 
> 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
>     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.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Created%3A-%28CXF-1116%29-1-dimentional-arrays-appear-as-2-dimentional-in-the-wsdl-tf4642273.html#a13297157
Sent from the cxf-issues mailing list archive at Nabble.com.


[jira] Assigned: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-1116:
--------------------------------

    Assignee: Daniel Kulp

> 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
>            Assignee: Daniel Kulp
>            Priority: Blocker
>             Fix For: 2.0.3
>
>
> 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.


[jira] Commented: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536296 ] 

Daniel Kulp commented on CXF-1116:
----------------------------------


I can work on this on Monday, but need some help from the Aegis experts as to what people think it SHOULD look like.

Should it look like what JAXB generates:
<xsd:sequence> 
   <xsd:element maxOccurs="unbounded" minOccurs="0" name="return" type="xsd:string" /> 
</xsd:sequence>

Or should it look like what Aegis does with collections:
<xsd:sequence> 
   <xsd:element name="return" type="tns:ArrayOfString"/> 
</xsd:sequence>

Either one looks non-trivial to do.   The first mapping would require a lot more work in the Aegis databinding.    The second mapping would require a bit of work in the ReflectionServiceFactoryBean and some flags passed between it and the databinding.



> 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
>    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.


[jira] Commented: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Tawfik Lachheb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536762 ] 

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

I have tried the 10-20-2007 snapshot and I see that the issue is fixed.  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.


[jira] Resolved: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1116.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3

> 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
>             Fix For: 2.0.3
>
>
> 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.


[jira] Commented: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536460 ] 

Daniel Kulp commented on CXF-1116:
----------------------------------


I discovered that going with:

<xsd:sequence> 
    <xsd:element name="return" nillable="true" type="tns:ArrayOfString"/> 
 </xsd:sequence> 

was actually easier than I thought so I went with that.    I would appreciate if someone could test it out and make sure it all works OK.   I'm going to deploy new snapshots now so another hour or so and they should be there.




> 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.


[jira] Commented: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Tawfik Lachheb (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (CXF-1116) 1-dimentional arrays appear as 2-dimentional in the wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-1116:
-----------------------------

    Component/s: Aegis Databinding

> 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.