469,160 Members | 1,970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,160 developers. It's quick & easy.

Validating WSDL-Files

Hi

I have a problem with validating WSDL-Files using XMLValidatingReader.
I'm adding all schemas in the <definitions>-Tag to the
XmlValidatingReader.Schemas Property.

and here is the Problem: Some wsdl-Files that should work(according to
XMLSpy) produce ValidationErrors when:

1. The location attributes value is an XPath (?) Expression, for
example:

<http:operation location="/GetCountryDataFromGeoIp" />

2. The soapAction Attribute is empty, for example:

<wsdlsoap:operation soapAction="" />

Do you know if this is WSDL Standard conform? Which WSDL Version is
currently supported by XMLValidatingReader? Does ValidatingReader
need anything else to validate WSDLs?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 12 '05 #1
2 3954
The location attribute as well as the soapAction attribute are typed as
xs:anyURI.

Whent the wsdl is validated, XmlValidatingReader validates content of
xs:anyURI by converting them to CLR System.Uri objects.
System.Uri does not allow empty string as a valid uri and cannot handle
relative paths without absolute base uris.

XmlValidatingReader works around some relative paths but not all. That is
the reason you are seeing the validation errors.

Thanks,
Priya

"dotNetty" <pu*@gmx-dot-at.no-spam.invalid> wrote in message
news:40********@Usenet.com...
Hi

I have a problem with validating WSDL-Files using XMLValidatingReader.
I'm adding all schemas in the <definitions>-Tag to the
XmlValidatingReader.Schemas Property.

and here is the Problem: Some wsdl-Files that should work(according to
XMLSpy) produce ValidationErrors when:

1. The location attributes value is an XPath (?) Expression, for
example:

<http:operation location="/GetCountryDataFromGeoIp" />

2. The soapAction Attribute is empty, for example:

<wsdlsoap:operation soapAction="" />

Do you know if this is WSDL Standard conform? Which WSDL Version is
currently supported by XMLValidatingReader? Does ValidatingReader
need anything else to validate WSDLs?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 12 '05 #2
The location attribute as well as the soapAction attribute are typed as
xs:anyURI.

Whent the wsdl is validated, XmlValidatingReader validates content of
xs:anyURI by converting them to CLR System.Uri objects.
System.Uri does not allow empty string as a valid uri and cannot handle
relative paths without absolute base uris.

XmlValidatingReader works around some relative paths but not all. That is
the reason you are seeing the validation errors.

Thanks,
Priya

"dotNetty" <pu*@gmx-dot-at.no-spam.invalid> wrote in message
news:40********@Usenet.com...
Hi

I have a problem with validating WSDL-Files using XMLValidatingReader.
I'm adding all schemas in the <definitions>-Tag to the
XmlValidatingReader.Schemas Property.

and here is the Problem: Some wsdl-Files that should work(according to
XMLSpy) produce ValidationErrors when:

1. The location attributes value is an XPath (?) Expression, for
example:

<http:operation location="/GetCountryDataFromGeoIp" />

2. The soapAction Attribute is empty, for example:

<wsdlsoap:operation soapAction="" />

Do you know if this is WSDL Standard conform? Which WSDL Version is
currently supported by XMLValidatingReader? Does ValidatingReader
need anything else to validate WSDLs?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Generic Usenet Account | last post: by
5 posts views Thread by relaxedrob | last post: by
reply views Thread by saish | last post: by
reply views Thread by Elhanan | last post: by
6 posts views Thread by Naveed Anwar | last post: by
9 posts views Thread by Cesar | last post: by
5 posts views Thread by Nick K. | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.