You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "jimma (JIRA)" <ji...@apache.org> on 2007/10/15 09:09:50 UTC

[jira] Created: (CXF-1112) Add catalog support for wsdlLocation and schemaLocation in customization binding file

Add catalog support for wsdlLocation and schemaLocation in customization binding file 
--------------------------------------------------------------------------------------

                 Key: CXF-1112
                 URL: https://issues.apache.org/jira/browse/CXF-1112
             Project: CXF
          Issue Type: Improvement
          Components: Tooling
    Affects Versions: 2.0.2
            Reporter: jimma
             Fix For: 2.0.3


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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1112) Add catalog support for wsdlLocation and schemaLocation in customization binding file

Posted by "jimma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jimma resolved CXF-1112.
------------------------

    Resolution: Fixed
      Assignee: jimma

> Add catalog support for wsdlLocation and schemaLocation in customization binding file 
> --------------------------------------------------------------------------------------
>
>                 Key: CXF-1112
>                 URL: https://issues.apache.org/jira/browse/CXF-1112
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.0.2
>            Reporter: jimma
>            Assignee: jimma
>             Fix For: 2.0.3
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.