|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.connector.axis2.util.SchemaUtils
public class SchemaUtils
Converts TDI Schema to XML Schema and vice versa. Generates WSDL document from an Assembly Line configuration.
| Constructor Summary | |
|---|---|
SchemaUtils()
|
|
| Method Summary | |
|---|---|
static Element |
convertSchemaConfigItemToXSDElement(Document doc,
SchemaItemConfig sic)
Convert TDI Schema item to XML Schema element definition. |
static Element |
convertSchemaConfigToXSDElement(Document doc,
SchemaConfig schemaConfig,
String wrapperName)
Convert a TDI Schema to a XML Schema complex type element definition. |
static Element |
createXSD(Document doc,
String targetNamespace)
Create an empty XML Schema. |
static org.apache.ws.commons.schema.XmlSchema |
fromDOM(Document doc)
Retrieves the XML schema from DOM document. |
static void |
generateWsdl(BaseConfiguration config,
String wsdlFileName,
String serviceAddress,
String wsdlVersion)
Generate a WSDL file for an Assembly Line configuration. |
static List<SchemaConfig> |
getInAndOutMessageSchema(org.apache.axis2.description.AxisService serviceInp,
String operation)
Retrieves the input and output message schema for the given operation from the give service. |
static void |
getInOrOutMessageSchema(org.apache.axis2.description.AxisService serviceInp,
String opName,
boolean in,
SchemaConfig schema)
Fills TDI Schema (SchemaConfig) object with the XML Schema for the given operation. |
static List<SchemaConfig> |
getSchemaForAllOperationsInService(org.apache.axis2.description.AxisService service)
Returns a schema information for all operations in the given service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaUtils()
| Method Detail |
|---|
public static void generateWsdl(BaseConfiguration config,
String wsdlFileName,
String serviceAddress,
String wsdlVersion)
throws Exception
config - Either an AssemblyLineConfig object or a configuration object,
whose hierarchy contains an AssemblyLineConfig object.wsdlFileName - The name of the WSDL file, which will be generated.serviceAddress - The URL of the web service, which will be described in the
WSDL file.wsdlVersion - WSDL version - either "1.1" or "2.0".
Exception - The passed configuration object is invalid. Cannot
generate a WSDL from the AL configuration. Or writing the
WSDL file failed.public static org.apache.ws.commons.schema.XmlSchema fromDOM(Document doc)
doc - XML Schema as a DOM document.
public static Element convertSchemaConfigToXSDElement(Document doc,
SchemaConfig schemaConfig,
String wrapperName)
doc - A DOM document, used to create XML nodes.schemaConfig - TDI Schema.wrapperName - The name of the complex type element.
public static Element createXSD(Document doc,
String targetNamespace)
doc - Used to create DOM nodes.targetNamespace - The target namespace of the XML Schema.
public static Element convertSchemaConfigItemToXSDElement(Document doc,
SchemaItemConfig sic)
doc - Used to create DOM nodes.sic - TDI Schema item.
public static List<SchemaConfig> getInAndOutMessageSchema(org.apache.axis2.description.AxisService serviceInp,
String operation)
throws Exception
serviceInp - The input service from which we will get the operation from.operation - The name of the operation for which the input and output
message schema will be extracted.
Exception - If the schema retrieving fails.
public static List<SchemaConfig> getSchemaForAllOperationsInService(org.apache.axis2.description.AxisService service)
throws Exception
service - The service object from which the operations will be extracted
and their schema will be returned.
Exception - If the schema retrieving fails.
public static void getInOrOutMessageSchema(org.apache.axis2.description.AxisService serviceInp,
String opName,
boolean in,
SchemaConfig schema)
throws Exception
serviceInp - The service where the operation can be found.opName - The operation name for which the schema will be returned.in - If true the input message schema will be returned. If false
the output message schema will be returned.schema - The object which will be populated with the message schema
information.
Exception - If the schema retrieving fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||