Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Axis2 Issue, Please Help!

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I created simple pojo service that contains 2 classes : a service class that has method that return simple Person class (name, id both String).

The wsdl file created by java2wsdl has the schema embedded.

i deployed this service under axis2 at Apache tomcat.

I have a Client product that when it parsing the WSDL file of that service it's failing to read the parameters of the operations and giving the following error:

'schemaLocation' attribute missing on 'import'

now, I think it's referring to this line from the WSDL file:

<xs:import namespace="http://data/xsd"; />

I attached the WSDL file and the sercices.xml in the bottom of the message.

Please help.

Thanks in advance



Posts: 6663
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to code ranch.

Your WSDL is attempting to import types from a different namespace but does not mention where the types can be found -

It is missing the schemaLocation attribute - <xs:import namespace="http://data/xsd"/>;
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic