To use this function add it to the class library file named OrchestratorService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorService.ts
Description: Orchestrator Function to create a new SOAP Host
Function SOAPHostCreate
publicSOAPHostCreate(strSOAPHostName:string,strWsdlUri:string,strUsername:string,strPassword:string):SOAPHost{
letarrAuthenticationParams:string[]= ["Shared Session",strUsername,strPassword,"",""];
letobjSOAPAuthentication:SOAPAuthentication=SOAPAuthenticationManager.createAuthentication("Basic",arrAuthenticationParams);
//@ts-ignore
letobjSOAPHost:SOAPHost=newSOAPHost();
objSOAPHost.name=strSOAPHostName;
objSOAPHost.wsdlLocal=false;
objSOAPHost.wsdlUri=strWsdlUri;
objSOAPHost.connectionTimeout=30;
objSOAPHost.requestTimeout=60;
objSOAPHost.authentication=objSOAPAuthentication;
letobjSOAPHostReturn:SOAPHost=SOAPHostManager.addHost(objSOAPHost);
returnobjSOAPHostReturn;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
