• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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'

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic