Okay ... just for starters, your import statement is in error.

You are trying to import a schema definition (PegsTour.xsd) using
<wsdl:import>. <wsdl:import> may be used only to import WSDL descriptions,
not schemas. Axis 1.2 was lax and permitted you to do this, but Axis 1.4 is
more strict.

You must add a <wsdl:types> section to the document, define a schema, and
use <xsd:import> or <xsd:include> to import/include the schema. You use
<xsd:import> to import a schema in a different namespace, and you use
<xsd:include> to include multiple schema files that define the same
namespace.

Next, the PegsTour.xsd schema references a ton of components that are not
defined in the schema file. My guess is that they are defined in all the
other schema files that you supplied, but you don't <xsd:include> them into
the schema. Therefore, you can't reference them. You must add an
<xsd:include> statement for each of the other schema files. I haven't looked
at the other schema files, but if any of them reference components described
in other schema files, you must also add <xsd:include> statements to those
schemas.

Regards,
Anne


On 1/29/07, Cantrell, Andrew <[EMAIL PROTECTED]> wrote:



------- Original Message --------

*Subject: *

Re: Problems with WSDL2Java upgrading from Axis 1.2 to Axis 1.4

*Date: *

Mon, 29 Jan 2007 07:53:21 -0500

*From: *

Anne Thomas Manes <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

*Reply-To: *

[email protected]

*To: *

[email protected]

*References: *

<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>



Please post the WSDL.



On 1/29/07, Terry Mueller <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:

> I have tested WSDL2Java with our WSDL using Axis 1.2 without any

> problems. When I upgrade to Axis 1.4 (drop in new jars), the same

> command generates code with compile errors. There are three basic

> compilation problems: (1) in some constructors of simple types there is

> call to super(foo,bar) that doesn't exist (2) the "throws" clauses

> declaration contains an array and (3) the class in the "throws" clause

> does not extend java.lang.Exception.

>

>

> I was having a play with Lisa test tool from http://www.itko.com/ which

> uses Axis 1.4 so I can't upgrade to Axis 2 yet.

>

>

> Any ideas?

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

>

>



---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]







--

Regards,
Terry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to