aspose file tools*
The moose likes Web Services and the fly likes Question about importing XML Schema in WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Question about importing XML Schema in WSDL" Watch "Question about importing XML Schema in WSDL" New topic
Author

Question about importing XML Schema in WSDL

Henry Zheng
Ranch Hand

Joined: Jan 24, 2004
Posts: 60
Hey guys,
I came across the following lines in Richard Monson-Haefel's book (at the end of Section 5.2), and got confused. It's about importing XML Schema in WSDL document. Hope someone may shed some light on this:

If you need to import an XML schema element, you should do so in the XML schema definition contained in the WSDL types element, using the standard XML schema import statement as described in Section 3.2.5. 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.BP


But what does the last sentence mean? Does it mean that I can not import the content inside the types section of another WSDL document?

Thanks!
--Henry
[ March 29, 2004: Message edited by: Henry Zheng ]
[ March 30, 2004: Message edited by: Henry Zheng ]

Henry Zheng<br /> <br />I went numb when I learned to see.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I believe that's a typo -- the <xsd:import/> element should only be allowed as a child to the top-level <xsd:schema/> element.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about importing XML Schema in WSDL