Class ExternalTryitService


  • public class ExternalTryitService
    extends org.wso2.carbon.core.AbstractAdmin
    ExternalTryitService will be used in generating AJAX based application for a given WSDL. Given WSDL could be either version 1.1 or 2.0. If the given WSDL is version 1.1, it will be converted to version 2.0 using wsdl11to20.xsl. This conversion is absolute necessary due to usage of dyanmic- codegen project.
    • Field Summary

      • Fields inherited from class org.wso2.carbon.core.AbstractAdmin

        axisConfig, configurationContext
    • Constructor Detail

      • ExternalTryitService

        public ExternalTryitService()
    • Method Detail

      • generateTryit

        public String generateTryit​(String url,
                                    String hostName)
                             throws org.apache.axis2.AxisFault
        This is a Web method. A URL of a WSDL document is given and the ID of the generated AJAX app will be return. User need to do a HTTP GET on filedownload?id= to get the XHTML app.
        Parameters:
        url - WSDL document location.
        hostName - name of client host.
        Throws:
        org.apache.axis2.AxisFault - if any anomaly occured.