Thanks Dan, I will do that.

In the meantime, for some google bait and closure, another option is to
change:

<s:import namespace="http://www.w3.org/2001/XMLSchema"; />

To:

<s:import namespace="http://www.w3.org/2001/XMLSchema";   
          schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"; />

And leave the 's:element' and 's:any' alone.

If I wanted to use this a catalog, can anyone tell me if this is a
correct catalog for the above schemaLocation?

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="system">
  <system systemId="http://www.w3.org/2001/XMLSchema";
uri="XMLSchema.xsd"/>
</catalog>

Thanks,
G.

-----Original Message-----
From: Daniel Kulp [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2008 12:28 PM
To: [email protected]
Cc: Gord Turner
Subject: Re: Thrown by JAXB : undefined element declaration 's:schema'


Probably the best thing to do is to log a bug at:
https://jaxb.dev.java.net/issues/
It may have  a chance of getting fixed then.   :-)

I'm really not sure if there is any other way around it.    You might be
able 
to ask on their mailing list as well:
https://jaxb.dev.java.net/servlets/ProjectMailingListList


Dan




On Monday 11 August 2008 11:04:30 am Gord Turner wrote:
> Hello all,
>
>
>
> I have a .NET wsdl generated by a third party that I am working with.
> When I try to use the wsdl2java maven 2 plugin I get the error:
>
>
>
> Thrown by JAXB : undefined element declaration 's:schema'
>
>
>
> Is there a 'best practice' when dealing with these errors?
>
>
>
> I have replaced the lines:
>
>
>
> <s:element ref="s:schema" />
>
> <s:any />
>
>
>
> With:
>
>
>
> <s:any minOccurs="2" maxOccurs="2"/>
>
>
>
> I have done this 'by hand' and although it avoids the error, I don't
> like this solution.  Please find the wsdl attached to this message.
>
>
>
> Any suggestions welcome,
>
> Gordo.
>
> Gordon Turner
> direct: 416.646.7016
>
> main: 416.646.7000
> fax: 416.646.7050
>
> Exchange Solutions Inc.
> 250 Yonge Street, 18th Floor
> Toronto, ON M5B 2L7
> www.exchangesolutions.com



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Reply via email to