OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] WSDL message part from a no namespace schema

Thanks Anne that was the confirmation that I was looking for re: WS-I
BP. I do have this working in some tooling but not necessarily all.

I agree entirely that this is not a preferred practice, but I'm sure I
don't need to tell you how difficult it can be to get some trading
partners to use XML namespaces at all. Whilst internal project
managers can sympathise with a prefered technical direction they still
very often side with keeping the partner happy even in the face of
increased maintenance costs on our end :-(



2009/3/1 Anne Thomas Manes <atmanes@gmail.com>:
> It's possible (and legal per the WSDL spec), although not a very good
> practice. Such a WSDL will not be WS-I BP compliant, and many tools
> may barf trying to process it.
> WS-I BP 1.0 and 1.1 requires namespaces. See WS-I BP 1.1 Section 4.3:
> http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLTYPES
> R2105  All xsd:schema elements contained in a wsdl:types element of a
> DESCRIPTION MUST have a targetNamespace attribute with a valid and
> non-null value, UNLESS the xsd:schema element has xsd:import and/or
> xsd:annotation as its only child element(s).
> Anne
> On Sun, Mar 1, 2009 at 12:05 PM, Fraser Goffin <goffinf@googlemail.com> wrote:
>> Is it possible to create a WSDL with message parts that refer to an
>> in-line schema with no targetNamespace ?
>> I have created one of these and whilst by XML editor doesn't complain,
>> if I run the WS-I BP 1.1 profile checking tool it fails the compliance
>> test. Here is an example of what I mean :-
>> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> xmlns:xs="http://www.w3.org/2001/XMLSchema";
>> targetNamespace="urn:testNonamespaceMsgPart">
>>    <wsdl:types>
>>        <xs:schema>
>>            <xs:element name="Root">
>>                <xs:complexType>
>>                    <xs:sequence>
>>                        <xs:any processContents="skip" namespace="##any"/>
>>                    </xs:sequence>
>>                </xs:complexType>
>>            </xs:element>
>>        </xs:schema>
>>    </wsdl:types>
>>    <wsdl:message name="msgRequest">
>>        <wsdl:part name="Rq" element="Root"/>
>>    </wsdl:message>
>>        ...
>> </wsdl:definitions>
>> _______________________________________________________________________
>> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>> to support XML implementation and development. To minimize
>> spam in the archives, you must subscribe before posting.
>> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
>> subscribe: xml-dev-subscribe@lists.xml.org
>> List archive: http://lists.xml.org/archives/xml-dev/
>> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS