*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: [email protected] 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
