> Is the reference to element complexBar from namespace "bar" valid in namespace foo"

> or do I need an explicit schema import declaration and if so -- how is that done here?

Hmm, this appears to be one of the more vague areas of the WSDL spec.  WSDL1.1 is very vague about schema use (in fact doesn't explicitly say targetNamespace is required, when it really is in practice), and WSDL1.2 is clearer, but still a little ambiguous.

The following ref from WSDL1.2 seems to imply that a schema "embedded" in a WSDL should be a valid standalone schema that has been copied into the types section:

3.1.2 http://www.w3.org/TR/wsdl12/#embed-xsd

If you believe that implication, then your schema below is not a valid standalone schema because it references an external (to itself) schema that it does not import.

While this may work for some WS toolkits that handle more questionable gray areas of the specs, your best bet for interoperability would be to follow the spec more closely and use valid standalone schemas for embedded (in the types section) wsdl schemas, and use nested imported (see 3.1.1 of that same WSDL1.2 spec above) schemas for the externally defined types that those embedded schemas reference.  http://www.w3.org/TR/wsdl12/#import-xsd

 


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Reply via email to