javax.wsdl.Types.addExtensibilityElement()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中javax.wsdl.Types.addExtensibilityElement()方法的一些代码示例,展示了Types.addExtensibilityElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Types.addExtensibilityElement()方法的具体详情如下:
包路径:javax.wsdl.Types
类名称:Types
方法名:addExtensibilityElement

Types.addExtensibilityElement介绍

暂无

代码示例

代码示例来源:origin: wsdl4j/wsdl4j

types.addExtensibilityElement(
  parseSchema(Types.class, tempEl, def));
 types.addExtensibilityElement(parseExtensibilityElementAsDefaultExtensiblityElement(Types.class, tempEl, def));        	
types.addExtensibilityElement(
 parseExtensibilityElement(Types.class, tempEl, def));

代码示例来源:origin: wsdl4j/wsdl4j

types.addExtensibilityElement(
  parseSchema(Types.class, documentElement, importedDef));
importedDef.setTypes(types);

代码示例来源:origin: org.fabric3/fabric3-interface-wsdl

importElement.setAttribute("schemaLocation", schemaLocation);
schemaElement.appendChild(importElement);
types.addExtensibilityElement(schema);
definition.setTypes(types);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

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;
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

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;
}

代码示例来源:origin: apache/cxf

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);
}

代码示例来源:origin: org.wso2.wsdl4j/wsdl4j

types.addExtensibilityElement(
  parseSchema(Types.class, tempEl, def));
 types.addExtensibilityElement(parseExtensibilityElementAsDefaultExtensiblityElement(Types.class, tempEl, def));        	
types.addExtensibilityElement(
 parseExtensibilityElement(Types.class, tempEl, def));

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

types.addExtensibilityElement(
    parseSchema(Types.class, tempEl, def));
types.addExtensibilityElement(
    parseExtensibilityElement(Types.class, tempEl, def));

代码示例来源:origin: apache/cxf

types.addExtensibilityElement(schema);

代码示例来源:origin: org.springframework.ws/spring-ws-core

@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);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-core

types.addExtensibilityElement(schema);

代码示例来源:origin: org.springframework.ws/org.springframework.ws

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);
}

代码示例来源:origin: spring-projects/spring-ws

@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);
}

代码示例来源:origin: apache/servicemix-bundles

@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);
}

代码示例来源:origin: apache/cxf

def.getTypes().addExtensibilityElement(wsdlSchema);
CastUtils.cast(def.getNamespaces(), String.class, String.class)
  .put(ReferenceConstants.WSADDRESSING_PREFIX, typeNamespace);

代码示例来源:origin: org.codehaus.xfire/xfire-core

uee.setRequired(Boolean.TRUE);
uee.setElementType(SCHEMA_QNAME);
types.addExtensibilityElement(uee);

代码示例来源:origin: org.objectweb.celtix/celtix-tools

types.addExtensibilityElement(extElement);
this.wsdlDefinition.setTypes(types);

代码示例来源:origin: apache/cxf

types.addExtensibilityElement(extElement);
this.wsdlDefinition.setTypes(types);

代码示例来源:origin: org.apache.cxf/cxf-tools-misctools

types.addExtensibilityElement(extElement);
this.wsdlDefinition.setTypes(types);

代码示例来源:origin: apache/cxf

types.addExtensibilityElement(wsdlSchema);

相关文章