Search in sources :

Example 6 with WsdlInfo

use of com.webcohesion.enunciate.modules.jaxws.WsdlInfo in project enunciate by stoicflame.

the class JavaXMLClientModule method copyResources.

protected File copyResources() {
    File resourcesDir = getResourcesDir();
    resourcesDir.mkdirs();
    try {
        if (this.jaxwsModule != null) {
            for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) {
                if (wsdlInfo.getWsdlFile() != null) {
                    wsdlInfo.getWsdlFile().writeTo(resourcesDir);
                }
            }
        }
        for (SchemaInfo schemaInfo : this.jaxbModule.getJaxbContext().getSchemas().values()) {
            if (schemaInfo.getSchemaFile() != null) {
                schemaInfo.getSchemaFile().writeTo(resourcesDir);
            }
        }
    } catch (IOException e) {
        throw new EnunciateException(e);
    }
    return resourcesDir;
}
Also used : EnunciateException(com.webcohesion.enunciate.EnunciateException) WsdlInfo(com.webcohesion.enunciate.modules.jaxws.WsdlInfo) SchemaInfo(com.webcohesion.enunciate.modules.jaxb.model.SchemaInfo)

Aggregations

WsdlInfo (com.webcohesion.enunciate.modules.jaxws.WsdlInfo)6 SchemaInfo (com.webcohesion.enunciate.modules.jaxb.model.SchemaInfo)4 EnunciateException (com.webcohesion.enunciate.EnunciateException)3 FacetFilter (com.webcohesion.enunciate.facets.FacetFilter)3 EnunciateJaxbContext (com.webcohesion.enunciate.modules.jaxb.EnunciateJaxbContext)2 TemplateException (freemarker.template.TemplateException)2 URL (java.net.URL)2 JAXPParser (com.sun.xml.xsom.parser.JAXPParser)1 XSOMParser (com.sun.xml.xsom.parser.XSOMParser)1 Enunciate (com.webcohesion.enunciate.Enunciate)1 ServiceGroup (com.webcohesion.enunciate.api.services.ServiceGroup)1 EnunciateModule (com.webcohesion.enunciate.module.EnunciateModule)1 QNameEnumTypeDefinition (com.webcohesion.enunciate.modules.jaxb.model.QNameEnumTypeDefinition)1 Registry (com.webcohesion.enunciate.modules.jaxb.model.Registry)1 TypeDefinition (com.webcohesion.enunciate.modules.jaxb.model.TypeDefinition)1 AccessorOverridesAnotherMethod (com.webcohesion.enunciate.modules.jaxb.util.AccessorOverridesAnotherMethod)1 FindRootElementMethod (com.webcohesion.enunciate.modules.jaxb.util.FindRootElementMethod)1 AntPatternMatcher (com.webcohesion.enunciate.util.AntPatternMatcher)1 StaticInterfaceDescriptionFile (com.webcohesion.enunciate.util.StaticInterfaceDescriptionFile)1 ClientPackageForMethod (com.webcohesion.enunciate.util.freemarker.ClientPackageForMethod)1