Class WSDLWriterImpl

  • All Implemented Interfaces:
    WSDLWriter

    public class WSDLWriterImpl
    extends java.lang.Object
    implements WSDLWriter
    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.
    Author:
    Matthew J. Duftler, Nirmal Mukhi
    • Constructor Detail

      • WSDLWriterImpl

        public WSDLWriterImpl()
    • Method Detail

      • setFeature

        public void setFeature​(java.lang.String name,
                               boolean value)
                        throws java.lang.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

        Specified by:
        setFeature in interface WSDLWriter
        Parameters:
        name - the name of the feature to be set.
        value - the value to set the feature to.
        Throws:
        java.lang.IllegalArgumentException - if the feature name is not recognized.
        See Also:
        getFeature(String)
      • getFeature

        public boolean getFeature​(java.lang.String name)
                           throws java.lang.IllegalArgumentException
        Gets the value of the specified feature.
        Specified by:
        getFeature in interface WSDLWriter
        Parameters:
        name - the name of the feature to get the value of.
        Returns:
        the value of the feature.
        Throws:
        java.lang.IllegalArgumentException - if the feature name is not recognized.
        See Also:
        setFeature(String, boolean)
      • printBindingOperations

        protected void printBindingOperations​(java.util.List bindingOperations,
                                              Definition def,
                                              java.io.PrintWriter pw)
                                       throws WSDLException
        Throws:
        WSDLException
      • printNamespaceDeclarations

        protected void printNamespaceDeclarations​(java.util.Map namespaces,
                                                  java.io.PrintWriter pw)
                                           throws WSDLException
        Throws:
        WSDLException
      • printExtensibilityElements

        protected void printExtensibilityElements​(java.lang.Class parentType,
                                                  java.util.List extensibilityElements,
                                                  Definition def,
                                                  java.io.PrintWriter pw)
                                           throws WSDLException
        Throws:
        WSDLException
      • writeWSDL

        public void writeWSDL​(Definition wsdlDef,
                              java.io.Writer sink)
                       throws WSDLException
        Write the specified WSDL definition to the specified Writer.
        Specified by:
        writeWSDL in interface WSDLWriter
        Parameters:
        wsdlDef - the WSDL definition to be written.
        sink - the Writer to write the xml to.
        Throws:
        WSDLException
      • writeWSDL

        public void writeWSDL​(Definition wsdlDef,
                              java.io.OutputStream sink)
                       throws WSDLException
        Write the specified WSDL definition to the specified OutputStream.
        Specified by:
        writeWSDL in interface WSDLWriter
        Parameters:
        wsdlDef - the WSDL definition to be written.
        sink - the OutputStream to write the xml to.
        Throws:
        WSDLException
      • main

        public static void main​(java.lang.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.

        Throws:
        WSDLException