views:

65

answers:

1

Hello, I am sitting down to define my first web service and have what is probably a basic question about the accessibility requirements of namespace definitions?

When a consumer of these web services identifies message elements as belonging to my namespace, must the URI reference for this namespace be available at the time the message is sent?

I am wondering if any message validation against the namespace definition is done at messaging time. I'm guessing not since a failure of URI reference host shouldn't prevent messaging from occuring.

Can anyone share any thoughts on the requirement here, or perhaps provide direction to a good source of information?

Thanks, M.

+2  A: 

No, the namespace URI is not intended to be dereferenced. It is polite to put something human-readable at the namespace URI, but there is no technical reason you have to.

Message validation is not directly related to namespace URIs, which are in practice little more than opaque strings. You can start tying them together using XSI, but in this case it is the XSD file URI that will be dereferenced, not the namespace URI.

bobince
Thanks for the quick response. It's beginning to make sense now.Is it a requirement that the XSD file is accessible at the time of messaging?
Matty
The XSD is not required to be accessible, but it obviously makes it easier for those that want to perform schema validation. Making the schema available at a URL used as the URI for the namespace is an easy way to do that.
Mads Hansen