Hi, Can any explain me the controversial statement It's important to note that you cannot use the XML schema import statement to import an XML schema directly from the types element of some other WSDL document.(BP1.0)
In RMH book at one point he said that we cant use import statement XML schema import statement to import an XML schema directly from the types element of some other WSDL document but still he used. Can any one explain why so? or I am misunderstood with the statement. Please help me. Thanks in advance.
SCJP1.5(81%), SCDJWS(94%), next mission SCEA (but need to wait or that)
The XML Schema <import> is used inside the XML Schema <schema> element which resides inside the WSDL <types> element.
The XML Schema <import> refers to a plain XML schema file po.xsd (p.41-75) - not a WSDL.
So the example is valid.
The quote (p.137) simply states that you cannot use the schema elements defined directly in one WSDL's <types> section in another WSDL through the use of an XML Schema import. If you need the schema in two WSDLs then the common schema needs to be factored out as a separate XML Schema file - then you can simply import (or "include" if they belong to your targetNamespace) the Schema into both of them.
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!