[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Importing a schema into another schema: "invalid schema file"?

Keith Chong ha scritto:
Hi, what version of WTP are you using?   I used WTP 2.0.2 and 3.0
and I can successfully import this schema from an inline schema of a
WSDL.

Can you please attach your wsdl file too?

Hi Keith, thanks for your help.

I'm using WTP 2.0.1.
The WSDL I'm editing is the following: please note that it is "work-in-progress", so it may contain some validation errors.


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions name="AccessService"
  targetNamespace="http://webservice.cardinis.com/AccessService/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:tns="http://webservice.cardinis.com/AccessService/wsdl";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:tsns="http://webservice.cardinis.com/AccessService/xsd";>
  <wsdl:documentation>
    Servizio di accesso ai servizi della &lt;em&gt;Suite
    Cardinis&lt;/em&gt;
  </wsdl:documentation>

  <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
      targetNamespace="http://webservice.cardinis.com/AccessService/wsdl";>
    </xsd:schema>
  </wsdl:types>

  <wsdl:message name="LoginRequest">
    <wsdl:documentation>
      Messaggio corrispondente alla richiesta per l'operazione di login.
    </wsdl:documentation>
    <wsdl:part name="Username" element="tsns:Login_Username">
      <wsdl:documentation>Nome utente</wsdl:documentation>
    </wsdl:part>
    <wsdl:part name="Password" element="tsns:Login_Password">
      <wsdl:documentation>Password.</wsdl:documentation>
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="LoginResponse">
    <wsdl:documentation></wsdl:documentation>
    <wsdl:part name="Ticket" element="tsns:Login_Ticket">
      <wsdl:documentation>
        Ticket restituito a seguito dell'operazione di login
      </wsdl:documentation>
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="LogoutRequest">
    <wsdl:documentation>
      Richiesta per effettuare il logout
    </wsdl:documentation>
    <wsdl:part name="void" type="tsns:Empty"></wsdl:part>
  </wsdl:message>

<wsdl:portType name="AccessService">
<wsdl:operation name="Login">
<wsdl:documentation>
Effettua l'operazione di login nei webservice della
&lt;em&gt;Suite Cardinis&lt;/em&gt;
</wsdl:documentation>
<wsdl:input message="tns:LoginRequest" name="LoginRequest">
</wsdl:input>
<wsdl:output message="tns:LoginResponse" name="LoginResponse" />
</wsdl:operation>
<wsdl:operation name="Logout">
<wsdl:input message="tns:LogoutRequest" name="LogoutRequest"></wsdl:input>
</wsdl:operation>
</wsdl:portType>


  <wsdl:binding name="AccessServiceSOAP" type="tns:AccessService">
    <wsdl:documentation>Binding mediante SOAP.</wsdl:documentation>
    <soap:binding style="document"
      transport="http://schemas.xmlsoap.org/soap/http"; />

    <wsdl:operation name="Login">
      <soap:operation

soapAction="http://webservice.cardinis.com/AccessService/wsdl/Login"; />
      <wsdl:input name="LoginRequest">
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output name="LoginResponse">
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>

    <wsdl:operation name="Logout">
      <soap:operation

soapAction="http://webservice.cardinis.com/AccessService/wsdl/Logout"; />
      <wsdl:input name="LogoutRequest">
        <soap:body use="literal" />
      </wsdl:input>
    </wsdl:operation>
  </wsdl:binding>

  <wsdl:service name="AccessService">
    <wsdl:port binding="tns:AccessServiceSOAP"
      name="AccessServiceSOAP">
      <soap:address location="http://www.example.org/"; />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Mauro.