public void setTypes(Types types) { _def.setTypes(types); }
def.setTypes(parseTypes(tempEl, def));
public void setTypes(Types types) { if (isDebugEnabled) { log.debug(myClassName + ".setTypes()"); } if (wsdlDefinition != null) { wsdlDefinition.setTypes(types); } }
public void setTypes(Types types) { if (isDebugEnabled) { log.debug(myClassName + ".setTypes()"); } if (wsdlDefinition != null) { wsdlDefinition.setTypes(types); } }
types.addExtensibilityElement( parseSchema(Types.class, documentElement, importedDef)); importedDef.setTypes(types);
public Types createTypes(Definition definition) { Types types = definition.createTypes(); definition.setTypes(types); return types; }
public Types createTypes(Definition definition) { Types types = definition.createTypes(); definition.setTypes(types); return types; }
public void setTypes(Types types) { if (isDebugEnabled) { log.debug(myClassName + ".setTypes()"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.setTypes(types); } doneUsingWrappedDefinition(); }
public void setTypes(Types types) { if (isDebugEnabled) { log.debug(myClassName + ".setTypes()"); } getWrappedDefinitionForUse(); if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } wsdlDefinition.setTypes(types); } doneUsingWrappedDefinition(); }
public boolean writeSchemaDefinition(Definition definit, Writer writer) throws Exception { Definition def = manager.createWSDLDefinition(targetNamespace + "-types"); def.createTypes(); def.setTypes(definit.getTypes()); WSDLUtils.writeSchema(def, writer); return true; }
public Schema createSchemaExt(Definition definition) throws WSDLException { Types types = definition.getTypes(); if (types == null) { types = definition.createTypes(); definition.setTypes(types); } Schema schemaExt = createSchema(definition); types.addExtensibilityElement(schemaExt); return schemaExt; }
public Schema createSchemaExt(Definition definition) throws WSDLException { Types types = definition.getTypes(); if (types == null) { types = definition.createTypes(); definition.setTypes(types); } Schema schemaExt = createSchema(definition); types.addExtensibilityElement(schemaExt); return schemaExt; }
public void addWSDLSchemaImport(Definition def, String tns, File file) throws Exception { // REVISIT, check if the wsdl schema already exists. Types types = def.getTypes(); if (types == null) { types = def.createTypes(); def.setTypes(types); } Schema wsdlSchema = (Schema)def.getExtensionRegistry() .createExtension(Types.class, new QName(Constants.URI_2001_SCHEMA_XSD, "schema")); addWSDLSchemaImport(wsdlSchema, tns, file); types.addExtensibilityElement(wsdlSchema); }
public void releaseResources() { if (wsdlDefinition != null) { Types types = wsdlDefinition.getTypes(); if (types != null) { wsdlDefinition.setTypes(null); } this.setCachedTypes(types); Element element = wsdlDefinition.getDocumentationElement(); if (element != null) { wsdlDefinition.setDocumentationElement(null); } this.setCachedDocElement(element); } }
public void releaseResources() { if (wsdlDefinition != null) { Types types = wsdlDefinition.getTypes(); if (types != null) { wsdlDefinition.setTypes(null); } this.setCachedTypes(types); Element element = wsdlDefinition.getDocumentationElement(); if (element != null) { wsdlDefinition.setDocumentationElement(null); } this.setCachedDocElement(element); } }
@Override public void addTypes(Definition definition) throws WSDLException { Assert.notNull(getSchemaCollection(), "setting 'schema' or 'schemaCollection' is required"); Types types = definition.createTypes(); XsdSchema[] schemas = schemaCollection.getXsdSchemas(); for (int i = 0; i < schemas.length; i++) { if (logger.isDebugEnabled()) { logger.debug("Inlining " + schemas[i]); } if (schemas.length == 1) { definition.addNamespace(SCHEMA_PREFIX, schemas[i].getTargetNamespace()); } else { String prefix = SCHEMA_PREFIX + i; definition.addNamespace(prefix, schemas[i].getTargetNamespace()); } Element schemaElement = getSchemaElement(schemas[i]); Schema schema = (Schema) definition.getExtensionRegistry() .createExtension(Types.class, new QName("http://www.w3.org/2001/XMLSchema", "schema")); types.addExtensibilityElement(schema); schema.setElement(schemaElement); } definition.setTypes(types); }
public void addTypes(Definition definition) throws WSDLException { Assert.notNull(getSchemaCollection(), "setting 'schema' or 'schemaCollection' is required"); Types types = definition.createTypes(); XsdSchema[] schemas = schemaCollection.getXsdSchemas(); for (int i = 0; i < schemas.length; i++) { if (logger.isDebugEnabled()) { logger.debug("Inlining " + schemas[i]); } if (schemas.length == 1) { definition.addNamespace(SCHEMA_PREFIX, schemas[i].getTargetNamespace()); } else { String prefix = SCHEMA_PREFIX + i; definition.addNamespace(prefix, schemas[i].getTargetNamespace()); } Element schemaElement = getSchemaElement(schemas[i]); Schema schema = (Schema) definition.getExtensionRegistry() .createExtension(Types.class, new QName("http://www.w3.org/2001/XMLSchema", "schema")); types.addExtensibilityElement(schema); schema.setElement(schemaElement); } definition.setTypes(types); }
@Override public void addTypes(Definition definition) throws WSDLException { Assert.notNull(getSchemaCollection(), "setting 'schema' or 'schemaCollection' is required"); Types types = definition.createTypes(); XsdSchema[] schemas = schemaCollection.getXsdSchemas(); for (int i = 0; i < schemas.length; i++) { if (logger.isDebugEnabled()) { logger.debug("Inlining " + schemas[i]); } if (schemas.length == 1) { definition.addNamespace(SCHEMA_PREFIX, schemas[i].getTargetNamespace()); } else { String prefix = SCHEMA_PREFIX + i; definition.addNamespace(prefix, schemas[i].getTargetNamespace()); } Element schemaElement = getSchemaElement(schemas[i]); Schema schema = (Schema) definition.getExtensionRegistry() .createExtension(Types.class, new QName("http://www.w3.org/2001/XMLSchema", "schema")); types.addExtensibilityElement(schema); schema.setElement(schemaElement); } definition.setTypes(types); }
/** * Build a Definition from the input wsdl file or create * a new Definition * * @return WSDL Definition * @throws WSDLException * @throws SAXException * @throws IOException * @throws ParserConfigurationException */ protected Definition createDefinition() throws WSDLException, SAXException, IOException, ParserConfigurationException { Definition def; if (inputWSDL == null) { def = WSDLFactory.newInstance().newDefinition(); } else { javax.wsdl.xml.WSDLReader reader = WSDLFactory.newInstance().newWSDLReader(); Document doc = XMLUtils.newDocument(inputWSDL); def = reader.readWSDL(null, doc); // The input wsdl types section is deleted. The // types will be added back in at the end of processing. def.setTypes(null); } return def; }
/** * Build a Definition from the input wsdl file or create * a new Definition * * @return WSDL Definition * @throws WSDLException * @throws SAXException * @throws IOException * @throws ParserConfigurationException */ protected Definition createDefinition() throws WSDLException, SAXException, IOException, ParserConfigurationException { Definition def; if (inputWSDL == null) { def = WSDLFactory.newInstance().newDefinition(); } else { javax.wsdl.xml.WSDLReader reader = WSDLFactory.newInstance().newWSDLReader(); Document doc = XMLUtils.newDocument(inputWSDL); def = reader.readWSDL(null, doc); // The input wsdl types section is deleted. The // types will be added back in at the end of processing. def.setTypes(null); } return def; }