WSDL error with DIME

Sruli

Usenet Archive
Joined
Aug 10, 2006
Messages
6
Reaction score
0
Hi,

I'm trying to send files to a web service with DIME. I tried using several wsdl samples I found in MSDN. All of them fail to validate. E.g., the wsdl below issue an error on this line (marked in the sample below):
<xs:attribute ref="ref:location" use="optional"/>

The error is 'ref:location' must refer to an existing attribute.

What's wrong?
Can anyone refer me to valid WSDL samples with DIME?

Thanks in advance
Sruli Ganor
RepliWeb

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:dime="http:// schemas.xmlsoap.org/ws/2002/04/dime/wsdl/" xmlns:content="http:// schemas.xmlsoap.org/ws/2002/04/content-type/" xmlns:ref="http:// schemas.xmlsoap.org/ws/2002/04/reference/" xmlns:svc="http:// example.com/DimeExample/Service/" xmlns:msg="http://example.com/ DimeExample/Messages/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DIME Sample" targetNamespace="http://example.com/DimeExample"> <wsdl:types> <xs:schema targetNamespace="http://example.com/DimeExample" elementFormDefault="qualified"> <xs:import namespace="http://schemas.xmlsoap.org/ws/2002/04/ content-type/"/> <xs:import namespace="http://schemas.xmlsoap.org/ws/2002/04/ reference/"/> <xs:element name="GetMediaFile"> <xs:complexType> <xs:sequence> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="ReferencedBinary"> <xs:simpleContent> <xs:extension base="xs:base64Binary"> <xs:attribute ref="ref:location" use="optional"/>
********** ERROR **********
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="MediaFile">
<xs:simpleContent>
<xs:restriction base="msg:ReferencedBinary">
<xs:annotation>
<xs:appinfo>
<content:mediaType type="video/mpeg"/>
</xs:appinfo>
</xs:annotation>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="GetMediaFile">
<wsdl:part name="body" element="msg:GetMediaFile"/> </wsdl:message> <wsdl:portType name="PortType"> <wsdl:eek:peration name="GetMediaFile"> <wsdl:input message="svc:GetMediaFile"/> </wsdl:eek:peration> </wsdl:portType> <wsdl:binding name="SoapDimeBinding" type="svc:portType"> <soap:binding style="document" transport="http:// schemas.xmlsoap.org/soap/http"/> <wsdl:eek:peration name="GetMediaFile"> <soap:eek:peration soapAction="http://example.com/GetMediaFile"/> <wsdl:input> <dime:message wsdl:required="true" layout="http:// schemas.xmlsoap.org/ws/2002/04/dime/closed-layout"/> <soap:body parts="body" use="literal"/> </wsdl:input> </wsdl:eek:peration> </wsdl:binding> <wsdl:service name="DimeSample"> <wsdl:port name="SoapDimePort" binding="svc:SoapDimeBinding"> <soap:address location="http://example.com/DimeSample/"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,244
Members
248,133
Latest member
DujonT

Latest Threads

Top