[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: WSDL message part from a no namespace schema

  • From: Fraser Goffin <goffinf@g...>
  • To: Anne Thomas Manes <atmanes@g...>
  • Date: Mon, 2 Mar 2009 18:16:03 +0000

Re:  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 :-(

Regards

Fraser.

2009/3/1 Anne Thomas Manes <atmanes@g...>:
> 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@g...> 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@l...
>> subscribe: xml-dev-subscribe@l...
>> 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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.