You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <de...@tuscany.apache.org> on 2008/08/07 12:13:44 UTC

[jira] Closed: (TUSCANY-2358) Incorrect wsdl generated with ?wsdl for a service operation with two dimensional String array parameter

     [ https://issues.apache.org/jira/browse/TUSCANY-2358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder closed TUSCANY-2358.
------------------------------

    Resolution: Fixed

I believe this is fixed now

> Incorrect wsdl generated with ?wsdl for a service operation with two dimensional String array parameter
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2358
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2358
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>
> I have a service operation String[][] getGreetingsArray2(String[][] names).  I am using interface.java in my service element in the composite.  When the service uses a webservice binding, I get the following wsdl using ?wsdl on the endpoint url.
> <wsdl:definitions ....>
>     <wsdl:types>
>         <xs:schema attributeFormDefault="qualified"
>             elementFormDefault="qualified"
>             targetNamespace="http://jaxb.databindings.itest.sca.tuscany.apache.org/"
>             xmlns:ns0="http://util.java/"
>             xmlns:xs="http://www.w3.org/2001/XMLSchema">
>             <xs:element name="getGreetingsArray2">
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element maxOccurs="unbounded" minOccurs="0"
>                             name="arg0" nillable="true" type="xs:string" />
>                     </xs:sequence>
>                 </xs:complexType>
>             </xs:element>
>             <xs:element name="getGreetingsArray2Response">
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element maxOccurs="unbounded" minOccurs="0"
>                             name="return" nillable="true" type="xs:string" />
>                     </xs:sequence>
>                 </xs:complexType>
>             </xs:element>
>             ...
>         </xs:schema>
>     </wsdl:types>
>     ....
> </wsdl:definitions>
> Notice that the types correspond to String[] and not String[][].
> I have added "@WebMethod public String[][] getGreetingsArray2(String[][] names)" to MyServiceImpl class in sca\modules\interface-java-jaxws and used jaxws-maven-plugin to generate the wsdl.
> MyServiceImplService.wsdl has
>   <types>
>     <xsd:schema>
>       <xsd:import namespace="http://jaxws.java.interfacedef.sca.tuscany.apache.org/" schemaLocation="MyServiceImplService_schema1.xsd"/>
>     </xsd:schema>
>     <xsd:schema>
>       <xsd:import namespace="http://jaxb.dev.java.net/array" schemaLocation="MyServiceImplService_schema2.xsd"/>
>     </xsd:schema>
>   </types>
> MyServiceImplService_schema2.xsd has
>   <xs:complexType name="stringArray" final="#all">
>     <xs:sequence>
>       <xs:element name="item" type="xs:string" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
>     </xs:sequence>
>   </xs:complexType>
> MyServiceImplService_schema1.xsd has
>   <xs:complexType name="getGreetingsArray2">
>     <xs:sequence>
>       <xs:element name="arg0" type="ns1:stringArray" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="getGreetingsArray2Response">
>     <xs:sequence>
>       <xs:element name="return" type="ns1:stringArray" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
>     </xs:sequence>
>   </xs:complexType>
> In other words jaxws-maven-plugin seems to generate proper types for String[][].
> There seems to be a problem with the code that generates wsdl when ?wsdl is used on the endpoint url.
> See http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg32014.html

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