This class describes a collection of methods
that allow a WSDL model to be written to a writer
in an XML format that follows the WSDL schema.
getFeature
public boolean getFeature(String name)
throws IllegalArgumentException
Gets the value of the specified feature.
- getFeature in interface WSDLWriter
name
- the name of the feature to get the value of.
- the value of the feature.
main
public static void main(String[] argv)
throws WSDLException
A test driver.
Usage:
java com.ibm.wsdl.xml.WSDLWriterImpl filename|URL
This test driver simply reads a WSDL document into a model
(using a WSDLReader), and then serializes it back to
standard out. In effect, it performs a round-trip test on
the specified WSDL document.
printBindingFaults
protected void printBindingFaults(Map bindingFaults,
Definition def,
PrintWriter pw)
throws WSDLException
printBindingOperations
protected void printBindingOperations(List bindingOperations,
Definition def,
PrintWriter pw)
throws WSDLException
printDocumentation
protected void printDocumentation(Element docElement,
Definition def,
PrintWriter pw)
throws WSDLException
printExtensibilityElements
protected void printExtensibilityElements(Class parentType,
List extensibilityElements,
Definition def,
PrintWriter pw)
throws WSDLException
printNamespaceDeclarations
protected void printNamespaceDeclarations(Map namespaces,
PrintWriter pw)
throws WSDLException
printOperations
protected void printOperations(List operations,
Definition def,
PrintWriter pw)
throws WSDLException
setFeature
public void setFeature(String name,
boolean value)
throws IllegalArgumentException
Sets the specified feature to the specified value.
There are no minimum features that must be supported.
All feature names must be fully-qualified, Java package style. All
names starting with javax.wsdl. are reserved for features defined
by the JWSDL specification. It is recommended that implementation-
specific features be fully-qualified to match the package name
of that implementation. For example: com.abc.featureName
- setFeature in interface WSDLWriter
name
- the name of the feature to be set.value
- the value to set the feature to.
writeWSDL
public void writeWSDL(Definition wsdlDef,
OutputStream sink)
throws WSDLException
Write the specified WSDL definition to the specified OutputStream.
- writeWSDL in interface WSDLWriter
wsdlDef
- the WSDL definition to be written.sink
- the OutputStream to write the xml to.
writeWSDL
public void writeWSDL(Definition wsdlDef,
Writer sink)
throws WSDLException
Write the specified WSDL definition to the specified Writer.
- writeWSDL in interface WSDLWriter
wsdlDef
- the WSDL definition to be written.sink
- the Writer to write the xml to.