Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] WSDL message part from a no namespace schema

From: Fraser Goffin <goffinf@----------.--->
To: Anne Thomas Manes <atmanes@-----.--->
Date: 3/2/2009 6:17:00 PM
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
>>
>>
>

_______________________________________________________________________

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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent