WSDL error with DIME

Discussion in 'XML' started by Sruli, Jul 16, 2007.

  1. Sruli

    Sruli Guest

    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:element name="fileName" type="xs:string"/>
    <xs:element name="file" type="msg:MediaFile" minOccurs="0"/
    >

    </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>
    Sruli, Jul 16, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dark
    Replies:
    1
    Views:
    4,629
    milfar
    Nov 14, 2008
  2. Sebastien Tardif

    WSE 2.0 SP1 unable to consume WSDL from DIME Specification

    Sebastien Tardif, Oct 27, 2004, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    280
    Sebastien Tardif
    Nov 4, 2004
  3. Manoj G

    DIME Attachments & WSDL

    Manoj G, Mar 1, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    187
    [MSFT]
    Mar 2, 2005
  4. Replies:
    0
    Views:
    306
  5. Rich Fowler
    Replies:
    2
    Views:
    1,303
    Rich Fowler
    Jan 22, 2010
Loading...

Share This Page