Hi,
I'm trying to customize WSDL internal schema's package names with use of external binding file:
<bindings
xmlns="
http://java.sun.com/xml/ns/jaxws"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
wsdlLocation="pl/gov/mswia/uslugi/pesel/v1/Udostepnianie.wsdl">
<bindings node="wsdl:definitions">
<package name="pl.gov.mswia.uslugi.pesel.udostepnianie"/>
</bindings>
<bindings node="wsdl:definitions/wsdl:types/xsd:schema[@targetNamespace='
http://mswia.gov.pl/uslugi/pesel/v1/Udostepnianie/']">
<schemaBindings>
<package name="pl.gov.mswia.uslugi.pesel.udostepnianie"/>
</schemaBindings>
</bindings>
</bindings>
Everything would be fine except that internal schema has some import statements:
[..]
<wsdl:types>
<xsd:schema targetNamespace="
http://mswia.gov.pl/uslugi/pesel/v1/Udostepnianie/" xmlns:xsd_1="
http://mswia.gov.pl/domena/pesel/2009/07/" xmlns:xsd_2="
http://mswia.gov.pl/uslugi/pesel/2009/07/" xmlns:xsd_3="
http://mswia.gov.pl/domena/wspolne/2009/07/">
<xsd:import namespace="
http://mswia.gov.pl/domena/wspolne/2009/07/" schemaLocation="../../../domena/wspolne/typy_2009_07/typy_2009_07.xsd"/>
<xsd:import namespace="
http://mswia.gov.pl/uslugi/pesel/2009/07/" schemaLocation="../parametry_2009_07/parametry_2009_07.xsd"/>
<xsd:import namespace="
http://mswia.gov.pl/domena/pesel/2009/07/" schemaLocation="../../../domena/pesel/typy_2009_07/typy_2009_07.xsd"/>
[...]
What produces the following error while attempting to generate classes using wsimport command:
[WARNING] s4s-elt-invalid-content.3: Elements of type 'import' cannot appear after declarations as children of a <schema> element.
line 4 of file:/C:/Documents%20and%20Settings/Administrator/Desktop/pesel/pl/gov/mswia/uslugi/pesel/v1/Udostepnianie.wsdl#types?schema1
[WARNING] s4s-elt-invalid-content.3: Elements of type 'import' cannot appear after declarations as children of a <schema> element.
line 5 of file:/C:/Documents%20and%20Settings/Administrator/Desktop/pesel/pl/gov/mswia/uslugi/pesel/v1/Udostepnianie.wsdl#types?schema1
[WARNING] s4s-elt-invalid-content.3: Elements of type 'import' cannot appear after declarations as children of a <schema> element.
line 6 of file:/C:/Documents%20and%20Settings/Administrator/Desktop/pesel/pl/gov/mswia/uslugi/pesel/v1/Udostepnianie.wsdl#types?schema1
The WSDL seems to be valid, as it is possible to generate classes without specifying external binding file. Any help would be appreciated.
thanks in advance,
Peter
[Message sent by forum member 'flowenol' (flowenol)]
http://forums.java.net/jive/thread.jspa?messageID=354679---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...