findtSchemaDocument
public static SchemaDocument.Schema[] findtSchemaDocument(SchemaType docType)
throws XmlException,
IOException,
IllegalAccessException,
NoSuchFieldException
getTypeNode
public static XmlObject getTypeNode(SchemaDocument.Schema[] schemas,
QName q)
parseSchema
public static SchemaDocument parseSchema(InputStream stream)
throws XmlException,
IOException
parseWSDL
public static DefinitionsDocument parseWSDL(File wsdlFile)
throws IOException,
XmlException
parseWSDL
public static DefinitionsDocument parseWSDL(InputStream wsdlStream)
throws IOException,
XmlException
parseWSDL
public static DefinitionsDocument parseWSDL(String wsdlLocation)
throws IOException,
MalformedURLException,
XmlException
parseWSDL
public static DefinitionsDocument parseWSDL(URL wsdlURL)
throws IOException,
XmlException
selectChildren
public static SchemaDocument.Schema[] selectChildren(XmlObject parent,
Class childClass)
throws IllegalAccessException,
NoSuchFieldException
serialize
public void serialize(QName name,
Attributes attributes,
Object value,
SerializationContext context)
throws IOException
Serialize an element named name, with the indicated attributes
and value.
- serialize in interface Serializer
name
- is the element nameattributes
- are the attributes...serialize is free to add more.value
- is the valuecontext
- is the SerializationContext
writeSchema
public Element writeSchema(Class javaType,
Types types)
throws Exception
Return XML schema for the specified type, suitable for insertion into the
<types> element of a WSDL document, or underneath an
<element> or <attribute> declaration.
- writeSchema in interface Serializer
javaType
- the Java Class we're writing out schema fortypes
- the Java2WSDL Types object which holds the context for the
WSDL being generated.
- a type element containing a schema simpleType/complexType