com.infoengine.webject.mgt
Class GenerateWsdl

java.lang.Object
  extended bycom.infoengine.webject.Webject
      extended bycom.infoengine.webject.mgt.GenerateWsdl

public class GenerateWsdl
extends Webject

<ie:webject name="Generate-WSDL" type="MGT">   <ie:param name="CLASS" data="<class>"/>   <ie:param name="TASKS" data="<task>|<task_dir>"/>   <ie:param name="GROUP_OUT" data="<group_name>"/>   <ie:param name="SOAP_URI" data="<soap_uri>"/> </ie:webject>

  • CLASS required
  • SOAP_URI required if GROUP_OUT not specified
  • TASKS optional (if not supplied based on CLASS by changing '.' to '/')
  • GROUP_OUT optional (if specified wsdl returned as group only)


    Field Summary
    static String AUTHOR_META
               
    static String COMMENT_META
               
    static String COMPLEX_TYPE_META
               
    private static String CRLF
               
    private static String DELEGATE_DIRECTORY
               
    static String DEPRECATED_META
               
    private  boolean includeIESchema
               
    private static String INFOENGINE_SCHEMA
               
    static String METHOD_META
               
    static String MULTIPART_INPUT
               
    static String MULTIPART_OUTPUT
               
    private static String PARAM_CLASS
               
    private static String PARAM_GROUPOUT
               
    private static String PARAM_REPOSITORY
               
    private static String PARAM_REPOSITORY_TYPE
               
    private static String PARAM_SOAPURI
               
    private static String PARAM_TASKS
               
    private static String RESOURCE
               
    static String RETURN_COMMENT_META
               
    static String RETURN_SUB_META
               
    static String RETURN_TYPE_META
               
    static String SEE_META
               
    static String SINCE_META
               
    static String TASK_META
               
    static String VERSION_META
               
     
    Constructor Summary
    GenerateWsdl()
               
     
    Method Summary
    private  void beanResponse(StringBuffer sb)
               
    private  void checkForComplexType(Element e, Att a, String rType, Hashtable beansToDescribe, Vector outputArrays, StringBuffer sb, StringBuffer arraySB)
               
    private  void defaultResponse(StringBuffer sb)
               
    private  void generateWSDL(Group wsdl, Task task, String className, String soapUri)
               
    private  String getArrayName(int soapType, String rType)
               
    private  TypeId getSuperType(TypeId id, RepositoryType type)
               
     Task invoke(Task task)
               
    private static void parseAtLine(String line, StringBuffer type, StringBuffer name, StringBuffer comment)
               
    private  void primitiveResponse(StringBuffer sb)
               
    private  String writeArrayDef(StringBuffer sb, int soapType, String rType)
               
    static Element wsdlFromFile(File f)
               
    private  Group wsdlFromTasks(String tasks)
               
    private  Group wsdlFromTypeId(TypeId id)
               
    private  Group wsdlFromTypeId(TypeId id, RepositoryType rType)
               
     
    Methods inherited from class com.infoengine.webject.Webject
    booleanParam
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    RESOURCE

    private static final String RESOURCE
    See Also:
    Constant Field Values

    PARAM_CLASS

    private static final String PARAM_CLASS
    See Also:
    Constant Field Values

    PARAM_TASKS

    private static final String PARAM_TASKS
    See Also:
    Constant Field Values

    PARAM_GROUPOUT

    private static final String PARAM_GROUPOUT
    See Also:
    Constant Field Values

    PARAM_SOAPURI

    private static final String PARAM_SOAPURI
    See Also:
    Constant Field Values

    PARAM_REPOSITORY

    private static final String PARAM_REPOSITORY
    See Also:
    Constant Field Values

    PARAM_REPOSITORY_TYPE

    private static final String PARAM_REPOSITORY_TYPE
    See Also:
    Constant Field Values

    DELEGATE_DIRECTORY

    private static final String DELEGATE_DIRECTORY
    See Also:
    Constant Field Values

    METHOD_META

    public static final String METHOD_META
    See Also:
    Constant Field Values

    COMMENT_META

    public static final String COMMENT_META
    See Also:
    Constant Field Values

    SEE_META

    public static final String SEE_META
    See Also:
    Constant Field Values

    AUTHOR_META

    public static final String AUTHOR_META
    See Also:
    Constant Field Values

    VERSION_META

    public static final String VERSION_META
    See Also:
    Constant Field Values

    SINCE_META

    public static final String SINCE_META
    See Also:
    Constant Field Values

    DEPRECATED_META

    public static final String DEPRECATED_META
    See Also:
    Constant Field Values

    TASK_META

    public static final String TASK_META
    See Also:
    Constant Field Values

    RETURN_TYPE_META

    public static final String RETURN_TYPE_META
    See Also:
    Constant Field Values

    RETURN_SUB_META

    public static final String RETURN_SUB_META
    See Also:
    Constant Field Values

    RETURN_COMMENT_META

    public static final String RETURN_COMMENT_META
    See Also:
    Constant Field Values

    COMPLEX_TYPE_META

    public static final String COMPLEX_TYPE_META
    See Also:
    Constant Field Values

    MULTIPART_INPUT

    public static final String MULTIPART_INPUT
    See Also:
    Constant Field Values

    MULTIPART_OUTPUT

    public static final String MULTIPART_OUTPUT
    See Also:
    Constant Field Values

    CRLF

    private static final String CRLF
    See Also:
    Constant Field Values

    includeIESchema

    private boolean includeIESchema

    INFOENGINE_SCHEMA

    private static final String INFOENGINE_SCHEMA
    See Also:
    Constant Field Values
    Constructor Detail

    GenerateWsdl

    public GenerateWsdl()
    Method Detail

    invoke

    public Task invoke(Task task)
                throws IEException
    Specified by:
    invoke in class Webject
    Throws:
    IEException

    getSuperType

    private TypeId getSuperType(TypeId id,
                                RepositoryType type)
                         throws IEException
    Throws:
    IEException

    wsdlFromTypeId

    private Group wsdlFromTypeId(TypeId id,
                                 RepositoryType rType)
                          throws IEException
    Throws:
    IEException

    wsdlFromTypeId

    private Group wsdlFromTypeId(TypeId id)
                          throws IEException
    Throws:
    IEException

    wsdlFromTasks

    private Group wsdlFromTasks(String tasks)
                         throws IEException
    Throws:
    IEException

    parseAtLine

    private static void parseAtLine(String line,
                                    StringBuffer type,
                                    StringBuffer name,
                                    StringBuffer comment)

    wsdlFromFile

    public static Element wsdlFromFile(File f)

    defaultResponse

    private void defaultResponse(StringBuffer sb)

    primitiveResponse

    private void primitiveResponse(StringBuffer sb)

    beanResponse

    private void beanResponse(StringBuffer sb)

    getArrayName

    private String getArrayName(int soapType,
                                String rType)

    writeArrayDef

    private String writeArrayDef(StringBuffer sb,
                                 int soapType,
                                 String rType)

    checkForComplexType

    private void checkForComplexType(Element e,
                                     Att a,
                                     String rType,
                                     Hashtable beansToDescribe,
                                     Vector outputArrays,
                                     StringBuffer sb,
                                     StringBuffer arraySB)
                              throws IEException
    Throws:
    IEException

    generateWSDL

    private void generateWSDL(Group wsdl,
                              Task task,
                              String className,
                              String soapUri)
                       throws IEException
    Throws:
    IEException