« Return to Thread: [Issue 541] New - JAX-WS2.1 is unable to consume Axis2 services

[Issue 541] JAX-WS2.1 is unable to consume Axis2 services

by mkuchtiak-2 :: Rate this Message:

Reply to Author | View in Thread

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=541






------- Additional comments from mkuchtiak@... Tue Mar 25 13:52:53 +0000 2008 -------
I tested the wsimport outside Netbeans.
It works fine, so there is no problem with url itself.

Nevertheless, in Netbeans we have an issue and we need some help.

Short description of the problem:

1.
These are the URLs of wsdl and xsd files (created by Axis2):
http://localhost:8080/axis2/services/Test2WS?wsdl
http://localhost:8080/axis2/services/Test2WS?xsd=xsd0.xsd

xml schema is referenced, relatively, from wsdl using:
schemaLocation="Test2WS?xsd=xsd0.xsd"

2.
Netbeans downloads the wsdl and schema files into a project under a following
location :
project_home/xml_resources/Test2WS/wsdl/axis2/services/Test2WS.wsdl
project_home/xml_resources/Test2WS/wsdl/axis2/services/Test2WS.xsd_xsd0.xsd

And creates a catalog.xml file with the following entries:
    <system systemId="http://localhost:8080/axis2/services/Test2WS?wsdl"
uri="xml-resources/Test2WS/wsdl/axis2/services/Test2WS.wsdl"/>
    <system systemId="http://localhost:8080/axis2/services/Test2WS?xsd=xsd0.xsd"
uri="xml-resources/Test2WS/wsdl/axis2/services/Test2WS.xsd_xsd0.xsd"/>

3.
Finally Netbeans runs the wsimport ant task by passing the local wsdl file and
catalog.xml file as arguments.

The wsimport is not able to find the schema file (that is referenced from local
wsdl in the form of query paramater: schemaLocation="Test2WS?xsd=xsd0.xsd").

Question.
Is there any way to use the catalog.xml file for this kind of relative schema
references ?

Thank You for any help.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

 « Return to Thread: [Issue 541] New - JAX-WS2.1 is unable to consume Axis2 services

LightInTheBox - Buy quality products at wholesale price!