XSD FileNotFoundException during JCD creation

Hello to all,

I have a nebulous problem respective creation a JCD which should be callable as a WebService.

I created XSD which contains three xsd imports. It seems to be proper because the OTD Wizard in the eDesginer built a proper OTD. Furthermore after importing the base xsd the validation in the xml schema editor ended successfully. So everything seems to be fine.

But when I create a jcd (as a callable webservice!!!) and after defining the incoming message structur (which is the generated otd) an error occurs:

"Cannot load XML Scheam from Reader (see below):

==> Error reading import file 'file:/no_xsd_imports/supported/axa-evb-header.xsd': java.io.FileNotFoundException......."

I'm total confused because when I create a JCD without the option <callable as a webservice> it works proper, that means, I could create the JCD.

But after checking the <callable as a webservice> checkbox while creating a JCD it aborted with preceding error message.

Here is my xsd.

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://www.axa.de/evb"

xmlns:tns="http://www.axa.de/evb"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:header="http://axa.de/vts/bt/evb/header"

xmlns:internal="http://axa.de/vts/bt/evb/internal"

xmlns:gdv="http://www.evb-online.com/xmlschema">

<!-- XSD-Imports -->

<xsd:import schemaLocation="axa-evb-header.xsd" />

<xsd:import schemaLocation="axa-evb-internal.xsd" />

<xsd:import schemaLocation="eVB_BD_v2.0.xsd" />

<xsd:complexType name="AxaEvbType">

<xsd:sequence>

<xsd:element ref="header:Header" minOccurs="0"/>

<xsd:element ref="internal:AxaInternal" minOccurs="0"/>

<xsd:choice>

<xsd:element ref="gdv:VeelaRequest" minOccurs="0"/>

<xsd:element ref="gdv:VeelaResult" minOccurs="0"/>

</xsd:choice>

</xsd:sequence>

</xsd:complexType>

<xsd:element name="AxaEvb" type="tns:AxaEvbType"/>

</xsd:schema>

We tried both the options 'import' as well as 'include' in the XSD but same error is thrown.

I googled a lot but I couldn't find any solutions in the SUN Caps Forum and as well in ItToolbox.

Now I hope somebody as any solutions for this problem.

For any ideas I would be grateful.

Apart from this the JCAPS user guide document provides following statement:-

"Note: All XSD OTDs that are used in SOAP-callable Java Collaboration Definitions must be derived from XML schemas that have explicitly declared target namespaces."

Is above statement applicable/valid for a Simple single XSD or its also valid for above scenario where in 3 XSD's are used with 'import' or 'include'?

Thanks a lot and kindly regards

Bodo Stockschlaeder

[3636 byte] By [bonaly1998a] at [2007-11-27 6:07:20]
# 1

It is talking about a fil eit can't find. Are all the relevant files in the repository? Are teh referecnes correct?

Also, have you tried adding the 'namespace' attribute to the import element. That should be the same as the target namespace of the imported schemas. (I think).

Sorry I can't help further!

StijnMa at 2007-7-12 16:24:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

When working with XSD we had an issue with imports of anothers XSD. I remember we finished solving the problem flattening all the XSD in one unique XSD file, I dont know if this can help you, but since the error is about the imports, perhaps can help you if you try to use one unique XSD with no imports. Also, before that, can try checking if the other XSD refered are on the repository, too.

There are several XML tools that can flatten XSD files (e.g. Oxygen).

gl

Xtremebcna at 2007-7-12 16:24:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3

You could of course flatten it, but in my experiecne I haven't had any issues with imported XSDs.

If you look at the XSD spec though, namespace is a required attribute and cannot be left out. So, as I said earlier, have a look at that also. Perhaps start from a stripped down XSD to test a simple XSD OTD creation.

StijnMa at 2007-7-12 16:24:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...