hi ajith,
at first sight it seems to work with the latest SVN HEAD (also with the
schemas/ folder in META-INF).
thx,
florian
Ajith Ranabahu wrote:
Hi Florian,
We have fixed this issue by providing a custom WSDLLocator in the
current SVN head. So please have a go with the current SVN head and
let us know.
However note that the custom aar based WSDLLocator we has been tested
only to read files that are in the root location (META-INF folder).
Yours might not work due to the inclusion of the schema folder. Anyway
give it a try and see :)
On 5/3/06, Florian Rosenberg <[EMAIL PROTECTED]> wrote:
hi,
I have a WSDL file in my aar file which references several schemas. the
schemas are located in a subdir schemas/ in the directory of the WSDL
file.
TestService.wsdl:
-----------------
<wsdl:types>
<xsd:schema
targetNamespace="http://www.vitalab.tuwien.ac.at/VieQoS">
<xsd:import namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="schemas/ws-addr.xsd" />
<xsd:import
namespace="http://schemas.xmlsoap.org/ws/2004/09/policy"
schemaLocation="schemas/policy-2006-03-01-RC1.xsd" />
<!-- other stuff -->
</wsdl:types>
I package everything to an AAR. The aar layout is as follows:
TestService.aar
|-- META-INF/
|----- services.xml
|----- TestService.wsdl
|----- schemas/
|--------- schema1.xsd
|--------- schema2.xsd
and so on....
When i deploy that service i see the following exception in catalina.out:
----------------
Caused by: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema
referenced at 'schemas/policy-2006-03-01-RC1.xsd' relative to document
base '':
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.readInTheWSDLFile(WSDL2AxisServiceBuilder.java:955)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:198)
---------------
What is the relative document root in this case and where do I have do
configure it (it possible anyway)? However, where do I have to place the
schemas to make it work.
thanks in advance
best regards,
florian
--
Ajith Ranabahu