Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WSDL XSD and XML Catalog
WSDL XSD and XML Catalog [message #229641] Wed, 25 March 2009 15:28 Go to previous message
Richard is currently offline Richard
Messages: 1
Registered: July 2009
Junior Member
Hi,

I am trying to use XML catalogs with WSDL to resolve a schema. The xml
editor is resolving the schema and giving me code completion but the WSDL
validator is not resolving the schema and showing errors.

Catalog and schema are in same directory,

Can anyone point me in the right direction?

Thanks

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Test/">
<xsd:element name="NewOperation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NewOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions name="Test"
targetNamespace="http://www.example.org/TestService/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:types="http://www.example.org/Test/"
xmlns:tns="http://www.example.org/TestService/"
>

<wsdl:types>
<!--
<xsd:schema targetNamespace="http://www.example.org/Test/">
<xsd:include schemaLocation="../main/resources/Test.xsd" />
</xsd:schema>
-->
<xsd:schema targetNamespace="http://www.example.org/Test/">
<xsd:include schemaLocation="http://www.example.org/Test/" />
</xsd:schema>
</wsdl:types>

<wsdl:message name="NewOperationRequest">
<wsdl:part element="types:NewOperation" name="parameters" />
</wsdl:message>

<wsdl:message name="NewOperationResponse">
<wsdl:part element="types:NewOperationResponse" name="parameters" />
</wsdl:message>

<wsdl:portType name="Test">
<wsdl:operation name="NewOperation">
<wsdl:input message="tns:NewOperationRequest" />
<wsdl:output message="tns:NewOperationResponse" />
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="TestSOAP" type="tns:Test">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="NewOperation">
<soap:operation
soapAction="http://www.example.org/Test/NewOperation" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="Test">
<wsdl:port binding="tns:TestSOAP" name="TestSOAP">
<soap:address location="http://www.example.org/" />
</wsdl:port>
</wsdl:service>

</wsdl:definitions>

<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"

" http://www.oasis-open.org/committees/entity/release/1.0/cata log.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">

<public publicId="http://www.example.org/Test/" uri="./Test.xsd"/>

</catalog>
 
Read Message
Read Message
Previous Topic:Javascript libs not resolved
Next Topic:Facet version not detected correctly
Goto Forum:
  


Current Time: Tue Jun 18 01:01:45 EDT 2013

Powered by FUDForum. Page generated in 0.12168 seconds