wood burning stoves 2.0*
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 Android Security Essentials Live Lessons 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: 1167
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.

 
 
subject: Question on import schemas
 
Similar Threads
ws bb1.1: Explanation needed for examples
Question about WSDL import element
Is the example given in the thread a valid one as per the WSDL specificiation?
about import, which is correct?
ws bb1.1: Explanation needed for examples