WSDL error with DIME

S

Sruli

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

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top