Description
If the schemaLocation and wsdlLocation in binding file contains catalog as the following , wsdl2java can not resolve it :
--catalog file —
<!DOCTYPE catalog
PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI rewritePrefix="extra.xsd" uriStartString="http://www.company.com/extra.xsd"/>
</catalog>
--jaxb binding file ------
<jaxb:bindings version="2.0"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
schemaLocation="http://www.company.com/extra.xsd"
node="/xsd:schema">
<jaxb:schemaBindings>
<jaxb:package name="org.mytest">
</jaxb:package>
</jaxb:schemaBindings>
</jaxb:bindings>
--catalog file ----
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="system">
<system systemId="http://example.org/wsdl"
uri="../addNumbers.wsdl"/>
</catalog>
---jaxws binding file -----
<bindings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
wsdlLocation="http://example.org/wsdl"
xmlns="http://java.sun.com/xml/ns/jaxws">
<bindings node="wsdl:definitions/wsdl:service">
<class name="CustomizedService"/>
</bindings>
</bindings>