File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 Issue, Please Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Issue, Please Help!" Watch "Axis2 Issue, Please Help!" New topic
Author

Axis2 Issue, Please Help!

roi ka
Greenhorn

Joined: Jan 22, 2012
Posts: 1
Hi

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

Roi

services.xml:

CalcWithPerson22.wsdl:
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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 - http://www.w3schools.com/schema/el_import.asp

It is missing the schemaLocation attribute - <xs:import namespace="http://data/xsd"/>


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 Issue, Please Help!
 
Similar Threads
Axis2 POJO web service - wsdl generating xs:anyType
XMLSpy won't work with our AXIS2 WSDL but our system works with it fine
XmlException on calling WSDL2Java
how to make the web service client
complextype with Axis2