Hello everyone!

I am trying to consume a webservice using axis1.4. I tried to create Stubs from 
the WSDL file (using WSDL2Java tool). I am getting the following error:

C:\Documents and Settings\Administrador>java org.apache.axis.wsdl.WSDL2Java 
http://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php?wsdl
java.io.IOException: Type {http://schemas.xmlsoap.org/wsdl/}Dependencia is 
referenced but not defined.
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Thread.java:484)


Here is the WSDL:

 
  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns="https://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
targetNamespace="https://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";>
- <types>
- <xsd:schema 
targetNamespace="https://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";>
  <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"; /> 
  <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"; /> 
- <xsd:complexType name="Dependencia">
- <xsd:all>
  <xsd:element name="dep_id" type="xsd:string" /> 
  <xsd:element name="dep_padid" type="xsd:string" /> 
  <xsd:element name="dep_nom" type="xsd:string" /> 
  <xsd:element name="tipo_nodo_id" type="xsd:string" /> 
  <xsd:element name="tno_id" type="xsd:string" /> 
  </xsd:all>
  </xsd:complexType>
- <xsd:complexType name="Dependencias">
- <xsd:complexContent>
- <xsd:restriction base="SOAP-ENC:Array">
  <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="Dependencia[]" /> 
  </xsd:restriction>
  </xsd:complexContent>
  </xsd:complexType>
  </xsd:schema>
  </types>
- <message name="get_dependencias_hijasRequest">
  <part name="dep_id" type="xsd:string" /> 
  <part name="usuario" type="xsd:string" /> 
  <part name="password" type="xsd:string" /> 
  </message>
- <message name="get_dependencias_hijasResponse">
  <part name="dependencias" type="xsd:Dependencias" /> 
  </message>
- <portType name="get_dependencias_hijasPortType">
- <operation name="get_dependencias_hijas">
  <documentation>Retorna todas las dependencias hijas de una dependencia 
dada</documentation> 
  <input message="tns:get_dependencias_hijasRequest" /> 
  <output message="tns:get_dependencias_hijasResponse" /> 
  </operation>
  </portType>
- <binding name="get_dependencias_hijasBinding" 
type="tns:get_dependencias_hijasPortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"; /> 
- <operation name="get_dependencias_hijas">
  <soap:operation 
soapAction="http://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php/get_dependencias_hijas";
 style="rpc" /> 
- <input>
  <soap:body use="encoded" 
namespace="https://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; /> 
  </input>
- <output>
  <soap:body use="encoded" 
namespace="https://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; /> 
  </output>
  </operation>
  </binding>
- <service name="get_dependencias_hijas">
- <port name="get_dependencias_hijasPort" 
binding="tns:get_dependencias_hijasBinding">
  <soap:address 
location="http://dpdserver.dpic.sg.gba.gov.ar/webservices/dpp/ws_dependencia_hijas.php";
 /> 
  </port>
  </service>
  </definitions>

Help me please, I need to fix that

Thanks!

Daniel Lopez

Reply via email to