types.addExtensibilityElement( parseSchema(Types.class, tempEl, def)); types.addExtensibilityElement(parseExtensibilityElementAsDefaultExtensiblityElement(Types.class, tempEl, def)); types.addExtensibilityElement( parseExtensibilityElement(Types.class, tempEl, def));
types.addExtensibilityElement( parseSchema(Types.class, documentElement, importedDef)); importedDef.setTypes(types);
importElement.setAttribute("schemaLocation", schemaLocation); schemaElement.appendChild(importElement); types.addExtensibilityElement(schema); definition.setTypes(types);
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); }
types.addExtensibilityElement( parseSchema(Types.class, tempEl, def)); types.addExtensibilityElement(parseExtensibilityElementAsDefaultExtensiblityElement(Types.class, tempEl, def)); types.addExtensibilityElement( parseExtensibilityElement(Types.class, tempEl, def));
types.addExtensibilityElement( parseSchema(Types.class, tempEl, def)); types.addExtensibilityElement( parseExtensibilityElement(Types.class, tempEl, def));
types.addExtensibilityElement(schema);
@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); }
types.addExtensibilityElement(schema);
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); }
@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); }
def.getTypes().addExtensibilityElement(wsdlSchema); CastUtils.cast(def.getNamespaces(), String.class, String.class) .put(ReferenceConstants.WSADDRESSING_PREFIX, typeNamespace);
uee.setRequired(Boolean.TRUE); uee.setElementType(SCHEMA_QNAME); types.addExtensibilityElement(uee);
types.addExtensibilityElement(extElement); this.wsdlDefinition.setTypes(types);
types.addExtensibilityElement(extElement); this.wsdlDefinition.setTypes(types);
types.addExtensibilityElement(extElement); this.wsdlDefinition.setTypes(types);
types.addExtensibilityElement(wsdlSchema);