public class Factory
extends java.lang.Object
Here is some example code for calling the Web services assistant's API:
IAssistantParameters params = Factory.createAssistantParameters();
params.setParamLANG(IAssistantParameters.LANG_COBOL);
params.setParamPDSLIB("c:\\test\\langstructs");
params.setParamPGMINT(IAssistantParameters.PGMINT_COMMAREA);
params.setParamPGMNAME("EXPROG");
params.setParamREQMEM("EXPRG01.cbl");
params.setParamRESPMEM("EXPRG02.cbl");
params.setParamURI("/myURI/EXPROG");
params.setParamWSBIND("c:\\test\\bindfiles\\EXPROG.wsbind");
params.setParamWSDL("c:\\test\\wsdl\\EXPROG.wsdl");
params.setParamLOGFILE("c:\\test\\logfiles\\EXPROG.log");
{
ICICSWebServicesAssistant cwsa = Factory.createCICSWebServicesAssistant();
IAssistantResponse ar = cwsa.DFHLS2WS(params);
System.out.println(
"DFHLS2WS:AssistantResponse.getReturnCode():" + ar.getReturnCode());
System.out.println("----AssistantResponse.getMessages()----");
String[] msgs = ar.getAllMessages();
for (int i = 0; i < msgs.length; i++)
{
System.out.println(msgs[i]);
}
}
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
static IAssistantParameters |
createAssistantParameters()
This method returns an instance of a class that implements the
IAssistantParameters interface.
|
static ICICSWebServicesAssistant |
createCICSWebServicesAssistant()
This method returns an instance of a class that implements the
ICICSWebServicesAssistant interface.
|
static ICICSXMLAssistant |
createCICSXMLAssistant()
This method returns an instance of a class that implements the
ICICSXMLAssistant interface.
|
static ICICSJSONAssistant |
createJSONAssistant()
This method returns an instance of a class that implements the
ICICSJSONAssistant interface.
|
static IPlatform |
createPlatform()
Create an instance of the IPlatform interface
|
public static IAssistantParameters createAssistantParameters()
IAssistantParameterspublic static ICICSWebServicesAssistant createCICSWebServicesAssistant()
IAssistantParameterspublic static ICICSXMLAssistant createCICSXMLAssistant()
IAssistantParameterspublic static ICICSJSONAssistant createJSONAssistant()
IAssistantParameterspublic static IPlatform createPlatform()