Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WSDL XSD and XML Catalog
WSDL XSD and XML Catalog [message #229641] Wed, 25 March 2009 19:28 Go to next message
Richard is currently offline RichardFriend
Messages: 1
Registered: July 2009
Junior Member

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?


<xsd:schema xmlns:xsd=""
<xsd:element name="NewOperation">
<xsd:element name="in" type="xsd:string" />
<xsd:element name="NewOperationResponse">
<xsd:element name="out" type="xsd:string" />

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions name="Test"

<xsd:schema targetNamespace="">
<xsd:include schemaLocation="../main/resources/Test.xsd" />
<xsd:schema targetNamespace="">
<xsd:include schemaLocation="" />

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

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

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

<wsdl:binding name="TestSOAP" type="tns:Test">
<soap:binding style="document"
transport="" />
<wsdl:operation name="NewOperation">
soapAction="" />
<soap:body use="literal" />
<soap:body use="literal" />

<wsdl:service name="Test">
<wsdl:port binding="tns:TestSOAP" name="TestSOAP">
<soap:address location="" />


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

" log.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"

<public publicId="" uri="./Test.xsd"/>

Re: WSDL XSD and XML Catalog [message #229870 is a reply to message #229641] Mon, 30 March 2009 20:26 Go to previous message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
First off, the fact that you're getting different behaviour from the XML
editor and WSDL validator makes me think there's at least a problem with
the consistency of these tools.

There is one issue that sticks out to me in your example. As I recall, a
schemaLocation is treated by the tools as a reference to a system
location. In your catalog entry you've specified the location as a
publicId, which corresponds with a namespace. Try changing the catalog
entry to use a systemId instead and see if the WSDL validator can locate
the schema in this case.

Previous Topic:Javascript libs not resolved
Next Topic:Facet version not detected correctly
Goto Forum:

Current Time: Mon Jun 18 21:35:38 GMT 2018

Powered by FUDForum. Page generated in 0.02000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top