public class WSDL2FormGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_QUERY_PARAM |
static String |
ENDPOINT_QUERY_PARAM |
static String |
LANGUAGE_QUERY_PARAM |
static String |
LAST_TOUCH_TIME |
static String |
LOCALHOST_QUERY_PARAM |
static String |
OPERATION_PARAM |
static long |
PERIOD |
static String |
SERVICE_INACTIVE |
static String |
SERVICE_NOT_FOUND |
static String |
SERVICE_QUERY_PARAM |
static String |
SUCCESS |
static String |
TRYIT_SG_NAME |
static String |
UNSUPPORTED_LANG |
Constructor and Description |
---|
WSDL2FormGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
getExternalTryit(String tryitWSDL,
String serviceName,
String operationName,
String endpointName,
String hostName,
org.apache.axis2.context.ConfigurationContext configCtx)
Main ConfigurationContext is used here to get the serviceContext path etc.
|
static WSDL2FormGenerator |
getInstance() |
String |
getInternalMockit(Result result,
org.apache.axis2.context.ConfigurationContext configCtx,
String mockitWSDL,
String serviceName,
String operationName,
String taskID,
String proxyUrl,
boolean fullPage)
This method should be used if the mocking service is an internal service.
|
String |
getInternalTryit(Result result,
org.apache.axis2.context.ConfigurationContext configCtx,
String tryitURL,
String serviceName,
String operationName,
String endpointName,
boolean fullPage) |
String |
getJSStub(Result result,
org.apache.axis2.context.ConfigurationContext configCtx,
String stubURL,
String serviceName,
String endpointName,
String language,
String localhost,
String contentType) |
public static final String TRYIT_SG_NAME
public static final String LAST_TOUCH_TIME
public static final String SERVICE_NOT_FOUND
public static final String SERVICE_INACTIVE
public static final String UNSUPPORTED_LANG
public static final String SUCCESS
public static final String SERVICE_QUERY_PARAM
public static final String OPERATION_PARAM
public static final String ENDPOINT_QUERY_PARAM
public static final String LANGUAGE_QUERY_PARAM
public static final String LOCALHOST_QUERY_PARAM
public static final String CONTENT_TYPE_QUERY_PARAM
public static final long PERIOD
public static WSDL2FormGenerator getInstance()
public String getInternalTryit(Result result, org.apache.axis2.context.ConfigurationContext configCtx, String tryitURL, String serviceName, String operationName, String endpointName, boolean fullPage) throws org.wso2.carbon.CarbonException
result
- Result object containing the generated formconfigCtx
- ConfigurationContext of the tenant. In standalone mode, this should be
main ConfigurationContext.tryitURL
- URL of the service that need to be tried out.serviceName
- Name of the service when multiple services are available in the WSDL. If
serviceName
is null
, then the fist service in the WSDL
will be used.operationName
- Operation of the service that need to be tried out. If this is null
, all operations will be available.endpointName
- If you need to generate get the tryit form only for specific endpoint
only, then you can specify it here. It could be SOAP11Endpoint,
SOAP12Endpoint or HTTPEndpoint etc.fullPage
- set true
if you want to get a full html page. false
will
create a div.org.wso2.carbon.CarbonException
- Throws when an error occurred during the executionpublic String getExternalTryit(String tryitWSDL, String serviceName, String operationName, String endpointName, String hostName, org.apache.axis2.context.ConfigurationContext configCtx) throws org.wso2.carbon.CarbonException
tryitWSDL
- URL of the service that need to be tried out.serviceName
- Name of the service when multiple services are available in the WSDL. If
serviceName
is null
, then the fist service in the WSDL
will be used.operationName
- Operation of the service that need to be tried out. If this is null
, all operations will be available.endpointName
- If you need to generate get the tryit form only for specific endpoint
only, then you can specify it here. It could be SOAP11Endpoint,
SOAP12Endpoint or HTTPEndpoint etc.hostName
- Hostname of the front end serverconfigCtx
- ConfigurationContextorg.wso2.carbon.CarbonException
- Throws when an error occurred during the execution.public String getInternalMockit(Result result, org.apache.axis2.context.ConfigurationContext configCtx, String mockitWSDL, String serviceName, String operationName, String taskID, String proxyUrl, boolean fullPage) throws org.wso2.carbon.CarbonException
getExternalMockit
methodresult
- Result object containing the generated formconfigCtx
- ConfigurationContext of the tenant. In standalone mode, this should be
main ConfigurationContext.mockitWSDL
- URL of the service that need to be tried out.serviceName
- Name of the service when multiple services are available in the WSDL. If
serviceName
is null
, then the fist service in the WSDL
will be used.operationName
- Operation of the service that need to be tried out. If this is null
, all operations will be available.taskID
- Task ID value to be sent along with form submission.proxyUrl
- Proxy url where the form response will be posted.fullPage
- set true
if you want to get a full html page. false
will
create a div.org.wso2.carbon.CarbonException
- Throws when an error occurred during the executionpublic String getJSStub(Result result, org.apache.axis2.context.ConfigurationContext configCtx, String stubURL, String serviceName, String endpointName, String language, String localhost, String contentType) throws org.wso2.carbon.CarbonException
result
- Result object containing the generated formconfigCtx
- ConfigurationContext of the tenant. In standalone mode, this should be
main ConfigurationContext.stubURL
- URL of the service that need to be tried out.serviceName
- Name of the service when multiple services are available in the WSDL. If
serviceName
is null
, then the fist service in the WSDL
will be used.endpointName
- If you need to generate get the tryit form only for specific endpoint
only, then you can specify it here. It could be SOAP11Endpoint,
SOAP12Endpoint or HTTPEndpoint etc.language
- Language of the generated javascript stub. Default language is Javascript
while you can use javascript, ecmascript or js
for
application/javascript and e4x
for
text/javascript,org.wso2.carbon.CarbonException
- Throws when an error occurred during the execution.Copyright © 2020 WSO2. All rights reserved.