[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.technology.wsvt] Support for relative paths?
|
- From: mdayton@xxxxxxxxxxxxxx (Michael Dayton)
- Date: Fri, 2 Jan 2004 23:13:47 +0000 (UTC)
- Newsgroups: eclipse.technology.wsvt
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
I'd put this in bugzilla, but it doesn't seem to be set up for wsvt.
I'm trying to validate a WSDL that imports a schema using a relative path
and I'm getting the following error:
s4s-att-invalid-value: Invalid attribute value for 'schemaLocation' in
element 'import'. Recorded reason: cvc-datatype-valid.1.2.1: 'file:D:/My
Documents/workfiles/cvs/wfxml/schemas/com/wellsfargo/service/provider/example/simple/requestResponse2003.xsd'
is not a valid value for 'anyURI'.
Notice the actual schema location is "requestResponse.xsd", not the full
path reported in the error.
Any thoughts? Here's the WSDL and Schema:
simple2003.wsdl
---------------
<wsdl:definitions
xmlns="http://service.wellsfargo.com/provider/example/simple/2003/"
xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msg1="http://service.wellsfargo.com/provider/example/simple/requestResponse/2003/"
targetNamespace="http://service.wellsfargo.com/provider/example/simple/2003/"
name="SimpleExample">
<wsdl:types>
<xs:schema
targetNamespace="http://service.wellsfargo.com/provider/example/simple/2003/"
xmlns="http://service.wellsfargo.com/provider/example/simple/2003/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" attributeFormDefault="unqualified">
<xs:import
namespace="http://service.wellsfargo.com/provider/example/simple/requestResponse/2003/"
schemaLocation="requestResponse2003.xsd"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="SimpleRequestMessage">
<wsdl:part name="body" element="msg1:request"/>
</wsdl:message>
<wsdl:message name="SimpleResponseMessage">
<wsdl:part name="body" element="msg1:response"/>
</wsdl:message>
<wsdl:portType name="SimplePortType">
<wsdl:operation name="requestResponse">
<wsdl:input message="SimpleRequestMessage"/>
<wsdl:output message="SimpleResponseMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SimpleSoapBinding" type="SimplePortType">
<soapbind:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="requestResponse">
<soapbind:operation soapAction="requestResponse"
style="document"/>
<wsdl:input>
<soapbind:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soapbind:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
requestResponse.xsd
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="http://service.wellsfargo.com/provider/example/simple/requestResponse/2003/"
xmlns="http://service.wellsfargo.com/provider/example/simple/requestResponse/2003/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" attributeFormDefault="unqualified"
version="1.0">
<!--SIMPLE REQUEST RESPONSE-->
<!---->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--Request -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<xs:complexType name="Request_Type">
<xs:sequence>
<xs:element name="requestString" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="request" type="Request_Type">
<xs:annotation>
<xs:documentation>Request Message Element</xs:documentation>
</xs:annotation>
</xs:element>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--Response -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<xs:complexType name="Response_Type">
<xs:sequence>
<xs:element name="responseString" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="response" type="Response_Type">
<xs:annotation>
<xs:documentation>Response Message Element</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>