You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ae...@rbc.com on 2005/03/23 10:13:20 UTC

getting rid of ArrayOf in WSDL

Sorry if this has been asked before...

Is there anyway of using the Java2WSDL command to produce wrapped/literal WSDL that does NOT create separate complex types for Arrays.

In other words, I would like to see 

<complexType name="FullSearchCriteria">
    <complexContent>
     <extension base="tns5:SearchCriteria">
      <sequence>
       <element name="sortField" nillable="true" type="tns10:Property"/>
       <element name="queries" nillable="true" maxOccurs="unbounded" type="tns10:Query"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>


(as I cannot get ArrayOf version to work with .NET client)  instead of  

   <complexType name="ArrayOf_tns10_Query">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns10:Query"/>
    </sequence>
   </complexType>

.....

<complexType name="FullSearchCriteria">
    <complexContent>
     <extension base="tns5:SearchCriteria">
      <sequence>
       <element name="sortField" nillable="true" type="tns10:Property"/>
       <element name="queries" nillable="true" type="impl:ArrayOf_tns10_Query"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>

------------------------------------------------------------

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. 

Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.

============================================================

Re: getting rid of ArrayOf in WSDL

Posted by WAJSBERG Julien RD-BIZZ <ju...@francetelecom.com>.
try to use indexed accessors for queries in addition to normal accessors.
I mean :

getQueries(int i)
and
setQueries(int i, Query value)

see http://issues.apache.org/jira/browse/AXIS-1673 for more information


aedemar.cooke@rbc.com a écrit :

> Sorry if this has been asked before...
>
> Is there anyway of using the Java2WSDL command to produce 
> wrapped/literal WSDL that does NOT create separate complex types for 
> Arrays.
>
> In other words, I would like to see
>
> <complexType name="FullSearchCriteria">
>     <complexContent>
>      <extension base="tns5:SearchCriteria">
>       <sequence>
>        <element name="sortField" nillable="true" type="tns10:Property"/>
>        <element name="queries" nillable="true" maxOccurs="unbounded" 
> type="tns10:Query"/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
>
>
> (as I cannot get ArrayOf version to work with .NET client)  instead of 
>
>    <complexType name="ArrayOf_tns10_Query">
>     <sequence>
>      <element maxOccurs="unbounded" minOccurs="0" name="item" 
> type="tns10:Query"/>
>     </sequence>
>    </complexType>
>
> .....
>
> <complexType name="FullSearchCriteria">
>     <complexContent>
>      <extension base="tns5:SearchCriteria">
>       <sequence>
>        <element name="sortField" nillable="true" type="tns10:Property"/>
>        <element name="queries" nillable="true" 
> type="impl:ArrayOf_tns10_Query"/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
>
> ------------------------------------------------------------
>
> This e-mail may be privileged and/or confidential, and the sender does 
> not waive any related rights and obligations. Any distribution, use or 
> copying of this e-mail or the information it contains by other than an 
> intended recipient is unauthorized. If you received this e-mail in 
> error, please advise me (by return e-mail or otherwise) immediately.
>
> Ce courrier électronique est confidentiel et protégé. L'expéditeur ne 
> renonce pas aux droits et obligations qui s'y rapportent. Toute 
> diffusion, utilisation ou copie de ce message ou des renseignements 
> qu'il contient par une personne autre que le (les) destinataire(s) 
> désigné(s) est interdite. Si vous recevez ce courrier électronique par 
> erreur, veuillez m'en aviser immédiatement, par retour de courrier 
> électronique ou par un autre moyen.
>
> ============================================================
>