jQuery in Action, 3rd edition
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes about import, which is correct? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "about import, which is correct?" Watch "about import, which is correct?" New topic

about import, which is correct?

Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
5.1.2 WSDL and Schema Import
R2003 A DESCRIPTION MUST use the XML Schema "import" statement only within the xsd:schema element of the types section

does it mean it should look like this?
<schema targetNamespace="http://example.com/stockquote/schemas"
<import.... />

but it also said:

R2023 When they appear in a DESCRIPTION, wsdl:types elements MUST precede all other elements from the WSDL namespace except wsdl ocumentation and wsdl:import.
<definitions name="StockQuote"

<import namespace="http://example.com/stockquote/base"

<message name="GetLastTradePriceInput">
<part name="body" element="..."/>

Does anyone know which one is correct?

Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
try to answer myself

I think the "import" here is an action, not the tag <import ..>

Jack Zhou
Ranch Hand

Joined: Dec 27, 2003
Posts: 93
R2003 is talking about xsd:import while R2023 is talking about wsdl:import they are two different things. They don't contradict to each other.

Thanks,<br />Jack Zhou<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS,SCEA
Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
I agree. Here's the link: http://aspose.com/file-tools
subject: about import, which is correct?
It's not a secret anymore!