WSDL xml invalid

Status
Nicht offen für weitere Antworten.
S

SniFFi

Gast
Hallo Liebes Forum!

wenn ich die validierung folgendes wsdl files ausführe erhalte ich folgende fehlermeldung,
meiner ansicht nach müsste ich einen import tag hinzufügen wie etwa

<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>

ich weiß allerdings nicht an welche stelle?


ich bin auf eure Hilfe angewiesen
PLEASE HELP
http://www.java-forum.org/de/posting.php???:L


XML validation started.

C:/Documents and Settings/Administrator/My Documents/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/megalux/wsdl/192.168.0.220/megalux/megalux.wsdl:15,6

ERROR: src-resolve.4.2: Error resolving component 'ns0:DatosInputLogin'. It was detected that 'ns0:DatosInputLogin' is in namespace 'http://localhost/megalux', but components from this namespace are not referenceable from schema document 'file:/C:/Documents%20and%20Settings/Administrator/My%20Documents/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/megalux/wsdl/192.168.0.220/megalux/megalux.wsdl'. If this is the incorrect namespace, perhaps the prefix of 'ns0:DatosInputLogin' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Documents%20and%20Settings/Administrator/My%20Documents/NetBeansProjects/WebApplication2/src/conf/xml-resources/web-service-references/megalux/wsdl/192.168.0.220/megalux/megalux.wsdl'.

1 Error(s), 0 Warning(s).
XML validation finished.


WSDL FILE:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:tns="http://www.wso2.org/php" 
  xmlns:tnx="http://www.wso2.org/php/xsd" 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
  xmlns:http="http://www.w3.org/2003/05/soap/bindings/HTTP/"
  targetNamespace="http://www.wso2.org/php" xmlns:ns0="http://localhost/megalux">

  <types>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.wso2.org/php/xsd" xmlns:ns0="http://localhost/megalux">
      <xsd:element name="objDataInputLogin" type="ns0:DatosInputLogin"/>
      <xsd:element name="objDataInputClient" type="ns0:DatosInputCliente"/>
      <xsd:element name="objDataLogin" type="ns0:DatosLogin"/>
      <xsd:element name="objDataClient" type="ns0:DatosCliente"/>
    </xsd:schema>
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://localhost/megalux">
      <xsd:complexType name="DatosInputLogin">
        <xsd:sequence>
          <xsd:element name="User" type="xsd:string"/>
          <xsd:element name="Password" type="xsd:string"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="DatosLogin">
        <xsd:sequence>
          <xsd:element name="Codigo" type="xsd:integer"/>
          <xsd:element name="UltimoLogin" type="xsd:string"/>
          <xsd:element name="LoginErrors" type="xsd:integer"/>
          <xsd:element name="FechaError" type="xsd:string"/>
          <xsd:element name="FechaClave" type="xsd:string"/>
          <xsd:element name="RolNombre" type="xsd:string"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="DatosInputCliente">
        <xsd:sequence>
          <xsd:element name="User" type="xsd:string"/>
          <xsd:element name="Password" type="xsd:string"/>
          <xsd:element name="NrCliente" type="xsd:integer"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="DatosCliente">
        <xsd:sequence>
          <xsd:element name="Rut" type="xsd:string"/>
          <xsd:element name="Nombre" type="xsd:string"/>
          <xsd:element name="Direccion" type="xsd:string"/>
          <xsd:element name="FrecFacturacion" type="xsd:integer"/>
          <xsd:element name="Mail" type="xsd:string"/>
          <xsd:element name="Contacto" type="xsd:string"/>
          <xsd:element name="Telefono1" type="xsd:string"/>
          <xsd:element name="Telefono2" type="xsd:string"/>
          <xsd:element name="Fax" type="xsd:string"/>
          <xsd:element name="FormaPago" type="xsd:string"/>
          <xsd:element name="Bloqueo" type="xsd:string"/>
          <xsd:element name="FechaBloqueo" type="xsd:string"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
  </types>
  
  <message name="GetLoginServiceData">
    <part name="parameters" element="tnx:objDataInputLogin"/>
  </message>
  <message name="GetLoginServiceDataResponse">
    <part name="parameters" element="tnx:objDataLogin"/>
  </message>
  
  <message name="GetClientData">
    <part name="parameters" element="tnx:objDataInputClient"/>
  </message>
  <message name="GetClientDataResponse">
    <part name="parameters" element="tnx:objDataClient"/>
  </message>
  
  <portType name="MegaluxSrvPortType">
    <operation name="GetLoginServiceData">
      <input message="tns:GetLoginServiceData"/>
      <output message="tns:GetLoginServiceDataResponse"/>
    </operation>
    <operation name="GetClientData">
      <input message="tns:GetClientData"/>
      <output message="tns:GetClientDataResponse"/>
    </operation>
  </portType>
  
  <binding name="MegaluxSrvSOAPBinding" type="tns:MegaluxSrvPortType">
  <soap:binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/" name="GetLoginServiceData">
    <soap:operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="http://localhost/megalux/megalux_srv.php/GetLoginServiceData" style="document"/>
      <input xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/">
        <soap:body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="literal"/>
      </input>
      <output xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/">
        <soap:body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="literal"/>
      </output>
    </operation>
    
    <operation xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/" name="GetClientData">
    <soap:operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="http://localhost/megalux/megalux_srv.php/GetClientData" style="document"/>
      <input xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/">
        <soap:body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="literal"/>
      </input>
      <output xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/">
        <soap:body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="literal"/>
      </output>
    </operation>
  </binding>
  
  <service name="MegaluxSrv">
    <port xmlns:default="http://schemas.xmlsoap.org/wsdl/soap/" name="MegaluxSrvSOAPPort_Http" binding="tns:MegaluxSrvSOAPBinding">
      <soap:address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://localhost/megalux/megalux_srv.php"/>
    </port>
  </service>
</definitions>
 
G

Gast

Gast
du musst
<xsd:import namespace="http://localhost/megalux"/>

angeben anstatt

<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>

problem solved have fun :)
 
Status
Nicht offen für weitere Antworten.

Ähnliche Java Themen

Neue Themen


Oben