patilpreetam / soi-toolkit

Automatically exported from code.google.com/p/soi-toolkit
0 stars 0 forks source link

SD-component: add example of jaxb-only generation if there is no WSDL #348

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The current SD-setup assumes we always have an WSDL - but if we wan't to use 
the same machinery for XSDs (without an WSDL) it's possible - but there needs 
to be an example on how to configure the CXF-generator.

Instead of a real WSDL we can use a stub like below to get JAXB-generation only:

jaxb-gen-only.wsdl

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
    name="jaxb.gen.only"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns="urn:jaxb.gen.only" 
    targetNamespace="urn:jaxb.gen.only">

    <wsdl:types>
        <xsd:schema>
            <xsd:import schemaLocation="MySchema.xsd" namespace="urn:MY_DOMAIN.schema:v1"/>
        </xsd:schema>
    </wsdl:types>

</wsdl:definitions>

Original issue reported on code.google.com by hakan.d...@gmail.com on 18 Sep 2013 at 12:01