/** * Create a new for WsdlTypes instance for the specified WSDL definition. * * @param wsdlDefinition * The WSDL definition. */ @SuppressWarnings( "unchecked" ) protected WsdlTypes( Definition wsdlDefinition ) { _types = wsdlDefinition.getTypes(); _targetNamespace = wsdlDefinition.getTargetNamespace(); _prefixMappings = wsdlDefinition.getNamespaces(); _elementFormQualifiedNamespaces = new HashSet<String>( getElementFormQualifiedNamespaces() ); _namedComplexTypes = new WsdlComplexTypes( this ); }
public Types getTypes() { if (isDebugEnabled) { log.debug(myClassName + ".getTypes()"); } if (wsdlDefinition != null) { return wsdlDefinition.getTypes(); } return null; }
public Types getTypes() { if (isDebugEnabled) { log.debug(myClassName + ".getTypes()"); } if (wsdlDefinition != null) { return wsdlDefinition.getTypes(); } return null; }
printTypes(def.getTypes(), def, pw); printMessages(def.getMessages(), def, pw); printPortTypes(def.getPortTypes(), def, pw);
private static Source loadWsdlSource(String wsdl) throws Exception { Definition definition = loadDefinition(wsdl); if (definition.getTypes() != null) { for (Object o : definition.getTypes().getExtensibilityElements()) { if (o instanceof javax.wsdl.extensions.schema.Schema) { Element e = ((javax.wsdl.extensions.schema.Schema) o).getElement(); return new DOMSource(e); } } } return null; }
private void extractSchema(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema); } } } }
public Types getTypes() { if (isDebugEnabled) { log.debug(myClassName + ".getTypes()"); } getWrappedDefinitionForUse(); Types results = null; if (wsdlDefinition != null) { results = wsdlDefinition.getTypes(); } doneUsingWrappedDefinition(); return results; }
public Types getTypes() { if (isDebugEnabled) { log.debug(myClassName + ".getTypes()"); } getWrappedDefinitionForUse(); Types results = null; if (wsdlDefinition != null) { results = wsdlDefinition.getTypes(); } doneUsingWrappedDefinition(); return results; }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator<?> ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator<?> ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator<?> ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator<?> ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
private void getSchemaList(Definition def) { Types typesElement = def.getTypes(); if (typesElement != null) { Iterator ite = typesElement.getExtensibilityElements().iterator(); while (ite.hasNext()) { Object obj = ite.next(); if (obj instanceof Schema) { Schema schema = (Schema)obj; addSchema(schema.getDocumentBaseURI(), schema); } } } }
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); }