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">
<wsdlart name="body" element="msg:GetMediaFile"/>
</wsdl:message>
<wsdlortType name="PortType">
<wsdlperation name="GetMediaFile">
<wsdl:input message="svc:GetMediaFile"/>
</wsdlperation>
</wsdlortType>
<wsdl:binding name="SoapDimeBinding" type="svcortType">
<soap:binding style="document" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="GetMediaFile">
<soapperation 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>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="DimeSample">
<wsdlort name="SoapDimePort" binding="svc:SoapDimeBinding">
<soap:address location="http://example.com/DimeSample/"/>
</wsdlort>
</wsdl:service>
</wsdl:definitions>
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">
<wsdlart name="body" element="msg:GetMediaFile"/>
</wsdl:message>
<wsdlortType name="PortType">
<wsdlperation name="GetMediaFile">
<wsdl:input message="svc:GetMediaFile"/>
</wsdlperation>
</wsdlortType>
<wsdl:binding name="SoapDimeBinding" type="svcortType">
<soap:binding style="document" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="GetMediaFile">
<soapperation 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>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="DimeSample">
<wsdlort name="SoapDimePort" binding="svc:SoapDimeBinding">
<soap:address location="http://example.com/DimeSample/"/>
</wsdlort>
</wsdl:service>
</wsdl:definitions>