https://jax-ws.dev.java.net/issues/show_bug.cgi?id=541 Issue #|541
Summary|JAX-WS2.1 is unable to consume Axis2 services
Component|jax-ws
Version|JAXWS 2.1 EA3
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|wsimport
Assigned to|issues@jax-ws
Reported by|mkuchtiak
------- Additional comments from
mkuchtiak@... Fri Mar 14 17:00:41 +0000 2008 -------
I've created Axis2 web service wrom wsdl, that imports schema file :
Originaly I had a simple Test2WS.wsdl and schema2.xsd :
This is part from my Test2WS.wsdl :
....
<wsdl:types>
<xsd:schema>
<xsd:import namespace="
http://xml.netbeans.org/examples/targetNS/xsd"
schemaLocation="schema2.xsd"/>
....
After I pass this wsdl file to Axis (wsdl2java utility) the wsdl is changed in
the following way :
Axis2 modification to Test2WS.wsdl :
....
<wsdl:types>
<xsd:schema>
<xsd:import namespace="
http://xml.netbeans.org/examples/targetNS/xsd"
schemaLocation="Test2WS?xsd=xsd0.xsd"/>
....
When I deploy this Axis2 service to Tomcat - it works correctly :
The wsdl is located at :
http://localhost:8081/axis2/services/Test2WS?wsdlThe schema file is located at :
http://localhost:8080/axis2/services/Test2WS?wsdlhttp://localhost:8080/axis2/services/Test2WS?xsd=xsd0.xsdThat's absolutely correct.
When I try to create JAX-WS client using wsimport, I get the error messages :
[ERROR] Unable to parse "Test2WS?xsd=xsd0.xsd" :
/usr/local/home/mkuchtiak/NetBeansProjects/JavaApplication1/xml-resources/web-service-references/Test2WS/wsdl/localhost_8081/axis2/services/Test2WS
(No such file or directory)
line 5 of
file:/usr/local/home/mkuchtiak/NetBeansProjects/JavaApplication1/xml-resources/web-service-references/Test2WS/wsdl/localhost_8081/axis2/services/Test2WS.wsdl
[ERROR] Unable to parse "Test2WS?xsd=xsd0.xsd" :
/usr/local/home/mkuchtiak/NetBeansProjects/JavaApplication1/xml-resources/web-service-references/Test2WS/wsdl/localhost_8081/axis2/services/Test2WS
(No such file or directory)
Failed to read the WSDL document:
file:/usr/local/home/mkuchtiak/NetBeansProjects/JavaApplication1/xml-resources/web-service-references/Test2WS/wsdl/localhost_8081/axis2/services/Test2WS.wsdl,
because 1) could not find the document; /2) the document could not be read; 3)
the root element of the document is not <wsdl:definitions>.
[ERROR] Could not find wsdl:service in the provide WSDL(s):
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...