• Post Reply Bookmark Topic Watch Topic
  • New Topic

#import' is not permitted as constrained by 'http://www.w3.org/2001/XMLSchema#schema_._type';

 
Sandesh Jadhav
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am unable to import the schema file whenever I try to invoke my webservice deployed on tomcat.
It gives following error:

'The element '#import' is not permitted as constrained by 'http://www.w3.org/2001/XMLSchema#schema_._type'; expecting annotation | redefine | import | include | attributeGroup | group | complexType | simpleType | notation | attribute | element | nothing'

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Where are you trying to import the XML schema? In a WSDL file?
If that is the case, then the WS-I Basic Profile 1.1 has the following to say about the WSDL import statement:
- The WSDL import statement must only be used to import other WSDL documents.
Reference & examples: http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDL_and_Schema_Import

Furthermore:
- XML schemas may only be imported in the <wsdl:types> element of a WSDL document, as in the following example:

Hope this helps!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!