axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vázquez Vázquez, José Manuel" <JMVAZQ...@sadiel.es>
Subject WSDL2Java. Problem with mapping of gYear
Date Tue, 29 Jul 2003 10:58:21 GMT
Hi...
  I have a web service (describe by a wsdl file) with a method like this:

   
.....
 <wsdl:types>
 <schema targetNamespace="http://www.demoservice.org/demo" xmlns="http://www.w3.org/2001/XMLSchema">
  <xsd:import namespace="http://www.demoservice.org/demo" schemaLocation="http://www.demoservice.org/demo/ConsultasDemo.xsd"
/> 
  </schema>
  </wsdl:types>
 <message name="Ente">
  <part name="Ente_In" type="ceh:Ente_In" /> 
  </message>
 <message name="EnteResponse">
  <part name="Ente_Out" type="ceh:Ente_Out" /> 
  </message>
 <portType name="ConsultasDemoPort">
 <operation name="Ente">
  <input message="ceh:Ente" /> 
  <output message="ceh:EnteResponse" /> 
  </operation>
 <binding name="ConsultasDemoSoapBinding" type="ceh:ConsultasDemoPort">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
 <operation name="Ente">
  <soap:operation soapAction="Ente" /> 
 <input>
  <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.demoservice.org/demo"
/> 
  </input>
 <output>
  <soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.demoservice.org/demo"
/> 
  </output>
  </operation>
  </binding>
 <service name="ConsultasDemo">
 <port name="ConsultasDemoPort" binding="ceh:ConsultasDemoBinding">
  <soap:address location="http://www.demoservice.org/demo/Consultas" /> 
  </port>
  </service>
  </wsdl:definitions>


The xsd file is that:
..........
 <xs:complexType name="Ente_In">
  <xs:sequence>
    <xs:element name="Ejercicio" type="xs:gYear" /> 
    <xs:element name="Ente" type="pxx:Ente" /> 
  </xs:sequence>
 </xs:complexType>
 <xs:complexType name="Ente_Out">
   <xs:sequence>
     <xs:element name="Proxima_Consulta">
       <xs:complexType>
         <xs:sequence>
            <xs:element name="Ejercicio" type="xs:gYear" /> 
            <xs:element name="Ente" type="pxx:Ente" /> 
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="Array">
       <xs:complexType>
          <xs:sequence>
            <xs:element name="Resultado" maxOccurs="65">
             <xs:complexType>
               <xs:sequence>
                   <xs:element name="Ente" type="pxx:Ente" /> 
                   <xs:element name="Descripcion" type="gen:Descripcion_Corta" /> 
               </xs:sequence>
             </xs:complexType>
            </xs:element>
          </xs:sequence>
       </xs:complexType>
      </xs:element>
   </xs:sequence>
  </xs:complexType>
...
  </xs:schema>


   After execute wsdl2java with this wsdl i get a ConsultasDemoSoapBindingStub.java where
exists a function 'ente'.

   If a call web service from XMLSPY whith parameter 'ejercicio = 2001' i get a correct result
but the value of 'ejercicio' in 'proxima_consulta' is 0. Could that be the error? How can
i resolve it?, How can i create a java class where i capture a 0 value ?

    Thanks.

(Sorry, but my english is not good).

José Manuel Vázquez Vázquez 
SADIEL, S.A.
c/ Isaac Newton s/n, Edificio Sadiel, Isla de la Cartuja
41092 SEVILLA
Tel.: 955 04 36 00 Fax : 955 04 36 01
http://www.sadiel.es e-mail: jmvazquez@sadiel.es

Mime
View raw message