This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Question on import schemas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Question on import schemas" Watch "Question on import schemas" New topic
Author

Question on import schemas

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi,
The following example is given (http://www.ws-i.org/profiles/basicprofile-1.1.html) to show correct and incorrect use of imports.



INCORRECT:



CORRECT:





Struggling to understand this. Can anyone give me precise reasons what's going on?

Thanks


Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Good Day,

It's about -

R2001 A DESCRIPTION MUST only use the WSDL "import" statement to import another WSDL description.

The incorrect one imports an xsd file while the correct ones import wsdl files.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Dan Drillich wrote:Good Day,

It's about -

R2001 A DESCRIPTION MUST only use the WSDL "import" statement to import another WSDL description.

The incorrect one imports an xsd file while the correct ones import wsdl files.

Regards,
Dan

Great answer. Missed something simple here, if the examples had red underlining showing what is wrong it would greatly help.

 
Don't get me started about those stupid light bulbs.
 
subject: Question on import schemas
 
It's not a secret anymore!