I don't have an answer to your question, but I have a question.  Why
does your definitions element have all of those elements?  When I do
?wsdl on my service, none of those elements exist.

<wsdl:definitions targetNamespace="http://ws.bci.bh.com";
xmlns:impl="http://ws.bci.bh.com"; xmlns:intf="http://ws.bci.bh.com";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; name="WsAccountInfo"

On 11/22/05, Diego Rey M <[EMAIL PROTECTED]> wrote:
>  Hello: i can change the name of element of an array in a wsdl generate by
> ?wsdl   ???
>
>  a example:
>
>  my wsdl:
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <wsdl:definitions targetNamespace="http://ws.bci.bh.com";
> xmlns:impl="http://ws.bci.bh.com"; xmlns:intf="http://ws.bci.bh.com";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> name="WsAccountInfo">
>   <wsdl:types>
>    <schema xmlns="http://www.w3.org/2001/XMLSchema";
> targetNamespace="http://ws.bci.bh.com"; elementFormDefault="qualified">
>     <element name="cardData" type="xsd:string"/>
>     <complexType name="Costumer">
>      <sequence>
>       <element name="vip" type="xsd:boolean"/>
>       <element name="name" nillable="true" type="xsd:string"/>
>       <element name="number" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="Manager">
>      <sequence>
>       <element name="identification" nillable="true" type="xsd:string"/>
>       <element name="email" nillable="true" type="xsd:string"/>
>       <element name="name" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="AlertInfo">
>      <sequence>
>       <element name="code" type="xsd:string"/>
>       <element name="date" type="xsd:dateTime"/>
>       <element name="alert" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="Alerts">
>      <sequence>
>       <element name="AlertInfo" type="impl:AlertInfo" minOccurs="0"
> maxOccurs="unbounded"/>
>      </sequence>
>     </complexType>
>     <complexType name="AccountInfo">
>      <sequence>
>       <element name="costumer" nillable="true" type="impl:Costumer"/>
>       <element name="manager" nillable="true" type="impl:Manager"/>
>       <element name="Alerts" nillable="true" type="impl:Alerts"/>
>       <element name="number" nillable="true" type="xsd:string"/>
>       <element name="applicationURL" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <element name="getAccountInfoReturn" type="impl:AccountInfo"/>
>    </schema>
>   </wsdl:types>
>
>     <wsdl:message name="getAccountInfoRequest">
>
>        <wsdl:part name="cardData" element="impl:cardData"/>
>
>     </wsdl:message>
>
>     <wsdl:message name="getAccountInfoResponse">
>
>        <wsdl:part name="getAccountInfoReturn"
> element="impl:getAccountInfoReturn"/>
>
>     </wsdl:message>
>
>     <wsdl:portType name="WSAccountInfo">
>
>        <wsdl:operation name="getAccountInfo" parameterOrder="cardData">
>
>           <wsdl:input name="getAccountInfoRequest"
> message="impl:getAccountInfoRequest"/>
>
>           <wsdl:output name="getAccountInfoResponse"
> message="impl:getAccountInfoResponse"/>
>
>        </wsdl:operation>
>
>     </wsdl:portType>
>
>     <wsdl:binding name="WSAccountInfoSoapBinding" type="impl:WSAccountInfo">
>
>        <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>        <wsdl:operation name="getAccountInfo">
>
>           <wsdlsoap:operation soapAction=""/>
>
>           <wsdl:input name="getAccountInfoRequest">
>
>              <wsdlsoap:body use="literal"/>
>
>           </wsdl:input>
>
>           <wsdl:output name="getAccountInfoResponse">
>
>              <wsdlsoap:body use="literal"/>
>
>           </wsdl:output>
>
>        </wsdl:operation>
>
>     </wsdl:binding>
>
>     <wsdl:service name="WSAccountInfoService">
>
>        <wsdl:port name="WSAccountInfo"
> binding="impl:WSAccountInfoSoapBinding">
>
>           <wsdlsoap:address
> location="http://localhost:8080/WebServiceProject/services/WSAccountInfo"/>
>
>        </wsdl:port>
>
>     </wsdl:service>
>
>  </wsdl:definitions>
>
>  the wsdl generated by ?wsdl
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <wsdl:definitions targetNamespace="http://ws.bci.bh.com";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:impl="http://ws.bci.bh.com"; xmlns:intf="http://ws.bci.bh.com";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>  <!--WSDL created by Apache Axis version: 1.2.1
>  Built on Jun 14, 2005 (09:15:57 EDT)-->
>   <wsdl:types>
>    <schema elementFormDefault="qualified"
> targetNamespace="http://ws.bci.bh.com";
> xmlns="http://www.w3.org/2001/XMLSchema";>
>     <element name="cardData" type="xsd:string"/>
>     <complexType name="Costumer">
>      <sequence>
>       <element name="vip" type="xsd:boolean"/>
>       <element name="name" nillable="true" type="xsd:string"/>
>       <element name="number" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="Manager">
>      <sequence>
>       <element name="identification" nillable="true" type="xsd:string"/>
>       <element name="email" nillable="true" type="xsd:string"/>
>       <element name="name" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="AlertInfo">
>      <sequence>
>       <element name="code" type="xsd:string"/>
>       <element name="date" type="xsd:dateTime"/>
>       <element name="alert" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <complexType name="ArrayOfAlertInfo">
>      <sequence>
>       <element maxOccurs="unbounded" minOccurs="0" name="item"
> type="impl:AlertInfo"/>
>      </sequence>
>     </complexType>
>     <complexType name="AccountInfo">
>      <sequence>
>       <element name="costumer" nillable="true" type="impl:Costumer"/>
>       <element name="manager" nillable="true" type="impl:Manager"/>
>       <element name="Alerts" nillable="true" type="impl:ArrayOfAlertInfo"/>
>       <element name="number" nillable="true" type="xsd:string"/>
>       <element name="applicationURL" nillable="true" type="xsd:string"/>
>      </sequence>
>     </complexType>
>     <element name="getAccountInfoReturn" type="impl:AccountInfo"/>
>    </schema>
>   </wsdl:types>
>
>     <wsdl:message name="getAccountInfoRequest">
>
>        <wsdl:part element="impl:cardData" name="cardData"/>
>
>     </wsdl:message>
>
>     <wsdl:message name="getAccountInfoResponse">
>
>        <wsdl:part element="impl:getAccountInfoReturn"
> name="getAccountInfoReturn"/>
>
>     </wsdl:message>
>
>     <wsdl:portType name="WSAccountInfo">
>
>        <wsdl:operation name="getAccountInfo" parameterOrder="cardData">
>
>           <wsdl:input message="impl:getAccountInfoRequest"
> name="getAccountInfoRequest"/>
>
>           <wsdl:output
> message="impl:getAccountInfoResponse"
> name="getAccountInfoResponse"/>
>
>        </wsdl:operation>
>
>     </wsdl:portType>
>
>     <wsdl:binding name="WSAccountInfoSoapBinding" type="impl:WSAccountInfo">
>
>        <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>        <wsdl:operation name="getAccountInfo">
>
>           <wsdlsoap:operation soapAction=""/>
>
>           <wsdl:input name="getAccountInfoRequest">
>
>              <wsdlsoap:body use="literal"/>
>
>           </wsdl:input>
>
>           <wsdl:output name="getAccountInfoResponse">
>
>              <wsdlsoap:body use="literal"/>
>
>           </wsdl:output>
>
>        </wsdl:operation>
>
>     </wsdl:binding>
>
>     <wsdl:service name="WSAccountInfoService">
>
>        <wsdl:port binding="impl:WSAccountInfoSoapBinding"
> name="WSAccountInfo">
>
>           <wsdlsoap:address
> location="http://192.168.100.65:8080/WebServiceProject/services/WSAccountInfo"/>
>
>        </wsdl:port>
>
>     </wsdl:service>
>
>  </wsdl:definitions>
>
>  the problem is that soap response is send with the name of element
> "AlertInfo" like the first wsdl
>
>  example
>
>  <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>    <soapenv:Body>
>      <getAccountInfoReturn xmlns="http://ws.bci.bh.com";>
>        <costumer>
>          <vip>true</vip>
>          <name>nombre costumer</name>
>          <number>number</number>
>        </costumer>
>        <manager>
>          <identification>identification</identification>
>          <email>email</email>
>          <name>nombre manager</name>
>        </manager>
>        <Alerts>
>          <AlertInfo>   like the first xml and not wsdl generate by ?wsdl
> (the name should be "item")
>            <code>codigo</code>
>            <date>2005-11-22T15:08:49.671Z</date>
>            <alert>Alera</alert>
>          </AlertInfo>
>          <AlertInfo>
>            <code>codigo2</code>
>            <date>2005-11-22T15:08:49.671Z</date>
>            <alert>Alerta2</alert>
>          </AlertInfo>
>        </Alerts>
>        <number>number</number>
>        <applicationURL>URL</applicationURL>
>      </getAccountInfoReturn>
>    </soapenv:Body>
>  </soapenv:Envelope>
>
>  it posible change de name in a element generate by ?wsdl
>
>  thank
>
>
>

Reply via email to