You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Gord Turner <gt...@exchangesolutions.com> on 2008/08/11 17:04:30 UTC
Thrown by JAXB : undefined element declaration 's:schema'
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
Re: Thrown by JAXB : undefined element declaration 's:schema'
Posted by Valerio Schiavoni <va...@gmail.com>.
Hello,
i've almost the same error.
So, i've created the following catalog.xml:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="system">
<system systemId="http://www.w3.org/2001/XMLSchema" uri="XMLSchema.xsd"
/>
</catalog>
the file XMLSchema.xsd is in the same dir of the catalog.xml.
Then I configured the cxf-codegen plugin like this:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin
</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>
${basedir}/target/generated/src/main/java
</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>
${basedir}/src/main/resources/wsdl/translate.wsdl
</wsdl>
<extraargs>
<extraarg>-verbose
</extraarg>
<extraarg>-catalog</extraarg>
<extraarg>${basedir}/src/main/resources/wsdl/catalog.xml</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Despite all this, i get:
Caused by: org.apache.maven.plugin.MojoExecutionException: Thrown by JAXB :
undefined element declaration 's:schema'
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:363)
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:257)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
... 16 more
Caused by: org.apache.cxf.tools.common.ToolException: Thrown by JAXB :
undefined element declaration 's:schema'
at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:41)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:285)
at
com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:77)
at
com.sun.xml.xsom.impl.parser.ParserContext$2.error(ParserContext.java:166)
at
com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:144)
at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:134)
at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(DelayedRef.java:89)
at com.sun.xml.xsom.impl.parser.DelayedRef.run(DelayedRef.java:64)
at
com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:95)
at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:190)
at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:519)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:237)
at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
at
org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:331)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:557)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:208)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:127)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:252)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:360)
... 19 more
Caused by: org.xml.sax.SAXParseException: undefined element declaration
's:schema'
at
com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:140)
... 35 more
Ideas ?
best regards,
valerio
On Mon, Aug 11, 2008 at 8:48 PM, Gord Turner
<gt...@exchangesolutions.com>wrote:
> 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:dkulp@apache.org]
> Sent: Monday, August 11, 2008 12:28 PM
> To: users@cxf.apache.org
> 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
> dkulp@apache.org
> http://www.dankulp.com/blog
>
>
>
--
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni
RE: Thrown by JAXB : undefined element declaration 's:schema'
Posted by Gord Turner <gt...@exchangesolutions.com>.
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:dkulp@apache.org]
Sent: Monday, August 11, 2008 12:28 PM
To: users@cxf.apache.org
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
dkulp@apache.org
http://www.dankulp.com/blog
Re: Thrown by JAXB : undefined element declaration 's:schema'
Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://www.dankulp.com/blog
RE: Thrown by JAXB : undefined element declaration 's:schema'
Posted by Gord Turner <gt...@exchangesolutions.com>.
*cough*
Please find the wsdl inlined below.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s1="http://www.foo.com/literalTypes"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.foo.com/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.foo.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema targetNamespace="http://www.foo.com/">
<s:complexType name="validateHR">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="cardnumber"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="validateHRResponse">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Result"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="validateHRX">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="cardnumber"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="validateHRXResponse">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="Result"
type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
<s:schema elementFormDefault="qualified"
targetNamespace="http://www.foo.com/literalTypes">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
<s:element name="getHRStatus">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="cardnumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="lastname"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="phonenumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="postalcode"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getHRStatusResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="getHRStatusResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string" />
<s:element name="DataSet" nillable="true">
<s:complexType>
<s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="validateHRSoapIn">
<wsdl:part name="parameters" type="tns:validateHR" />
</wsdl:message>
<wsdl:message name="validateHRSoapOut">
<wsdl:part name="parameters" type="tns:validateHRResponse" />
</wsdl:message>
<wsdl:message name="validateHRXSoapIn">
<wsdl:part name="parameters" type="tns:validateHRX" />
</wsdl:message>
<wsdl:message name="validateHRXSoapOut">
<wsdl:part name="parameters" type="tns:validateHRXResponse" />
</wsdl:message>
<wsdl:message name="getHRStatusSoapIn">
<wsdl:part name="parameters" element="s1:getHRStatus" />
</wsdl:message>
<wsdl:message name="getHRStatusSoapOut">
<wsdl:part name="parameters" element="s1:getHRStatusResponse" />
</wsdl:message>
<wsdl:message name="validateHRHttpGetIn">
<wsdl:part name="cardnumber" type="s:string" />
</wsdl:message>
<wsdl:message name="validateHRHttpGetOut">
<wsdl:part name="Body" element="s1:string" />
</wsdl:message>
<wsdl:message name="validateHRXHttpGetIn">
<wsdl:part name="cardnumber" type="s:string" />
</wsdl:message>
<wsdl:message name="validateHRXHttpGetOut">
<wsdl:part name="Body" element="s1:string" />
</wsdl:message>
<wsdl:message name="getHRStatusHttpGetIn">
<wsdl:part name="cardnumber" type="s:string" />
<wsdl:part name="lastname" type="s:string" />
<wsdl:part name="phonenumber" type="s:string" />
<wsdl:part name="postalcode" type="s:string" />
</wsdl:message>
<wsdl:message name="getHRStatusHttpGetOut">
<wsdl:part name="Body" element="s1:DataSet" />
</wsdl:message>
<wsdl:message name="validateHRHttpPostIn">
<wsdl:part name="cardnumber" type="s:string" />
</wsdl:message>
<wsdl:message name="validateHRHttpPostOut">
<wsdl:part name="Body" element="s1:string" />
</wsdl:message>
<wsdl:message name="validateHRXHttpPostIn">
<wsdl:part name="cardnumber" type="s:string" />
</wsdl:message>
<wsdl:message name="validateHRXHttpPostOut">
<wsdl:part name="Body" element="s1:string" />
</wsdl:message>
<wsdl:message name="getHRStatusHttpPostIn">
<wsdl:part name="cardnumber" type="s:string" />
<wsdl:part name="lastname" type="s:string" />
<wsdl:part name="phonenumber" type="s:string" />
<wsdl:part name="postalcode" type="s:string" />
</wsdl:message>
<wsdl:message name="getHRStatusHttpPostOut">
<wsdl:part name="Body" element="s1:DataSet" />
</wsdl:message>
<wsdl:portType name="WS_fooRExchangeSoap">
<wsdl:operation name="validateHR">
<wsdl:input message="tns:validateHRSoapIn" />
<wsdl:output message="tns:validateHRSoapOut" />
</wsdl:operation>
<wsdl:operation name="validateHRX">
<wsdl:input message="tns:validateHRXSoapIn" />
<wsdl:output message="tns:validateHRXSoapOut" />
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<wsdl:input message="tns:getHRStatusSoapIn" />
<wsdl:output message="tns:getHRStatusSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="WS_fooRExchangeHttpGet">
<wsdl:operation name="validateHR">
<wsdl:input message="tns:validateHRHttpGetIn" />
<wsdl:output message="tns:validateHRHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="validateHRX">
<wsdl:input message="tns:validateHRXHttpGetIn" />
<wsdl:output message="tns:validateHRXHttpGetOut" />
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<wsdl:input message="tns:getHRStatusHttpGetIn" />
<wsdl:output message="tns:getHRStatusHttpGetOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="WS_fooRExchangeHttpPost">
<wsdl:operation name="validateHR">
<wsdl:input message="tns:validateHRHttpPostIn" />
<wsdl:output message="tns:validateHRHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="validateHRX">
<wsdl:input message="tns:validateHRXHttpPostIn" />
<wsdl:output message="tns:validateHRXHttpPostOut" />
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<wsdl:input message="tns:getHRStatusHttpPostIn" />
<wsdl:output message="tns:getHRStatusHttpPostOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WS_fooRExchangeSoap"
type="tns:WS_fooRExchangeSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="validateHR">
<soap:operation soapAction="http://www.foo.com/validateHR"
style="document" />
<wsdl:input>
<soap:body use="encoded" namespace="http://www.foo.com/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" namespace="http://www.foo.com/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="validateHRX">
<soap:operation soapAction="http://www.foo.com/validateHRX"
style="document" />
<wsdl:input>
<soap:body use="encoded" namespace="http://www.foo.com/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" namespace="http://www.foo.com/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<soap:operation soapAction="http://www.foo.com/getHRStatus"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="WS_fooRExchangeHttpGet"
type="tns:WS_fooRExchangeHttpGet">
<http:binding verb="GET" />
<wsdl:operation name="validateHR">
<http:operation location="/validateHR" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="validateHRX">
<http:operation location="/validateHRX" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<http:operation location="/getHRStatus" />
<wsdl:input>
<http:urlEncoded />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="WS_fooRExchangeHttpPost"
type="tns:WS_fooRExchangeHttpPost">
<http:binding verb="POST" />
<wsdl:operation name="validateHR">
<http:operation location="/validateHR" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="validateHRX">
<http:operation location="/validateHRX" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getHRStatus">
<http:operation location="/getHRStatus" />
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WS_fooRExchange">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
<wsdl:port name="WS_fooRExchangeSoap"
binding="tns:WS_fooRExchangeSoap">
<soap:address
location="https://webservices.foo.com/ws_foorexchange/foorexchange.asmx"
/>
</wsdl:port>
<wsdl:port name="WS_fooRExchangeHttpGet"
binding="tns:WS_fooRExchangeHttpGet">
<http:address
location="https://webservices.foo.com/ws_foorexchange/foorexchange.asmx"
/>
</wsdl:port>
<wsdl:port name="WS_fooRExchangeHttpPost"
binding="tns:WS_fooRExchangeHttpPost">
<http:address
location="https://webservices.foo.com/ws_foorexchange/foorexchange.asmx"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
_____
From: Gord Turner
Sent: Monday, August 11, 2008 11:05 AM
To: users@cxf.apache.org
Subject: Thrown by JAXB : undefined element declaration 's:schema'
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