MCPcopy Index your code
hub / github.com/simstudioai/sim / createWorkdaySoapClient

Function createWorkdaySoapClient

apps/sim/tools/workday/soap.ts:620–644  ·  view source on GitHub ↗
(
  tenantUrl: string,
  tenant: string,
  service: WorkdayServiceKey,
  username: string,
  password: string
)

Source from the content-addressed store, hash-verified

618 * response parser — no WSDL fetch.
619 */
620export async function createWorkdaySoapClient(
621 tenantUrl: string,
622 tenant: string,
623 service: WorkdayServiceKey,
624 username: string,
625 password: string
626): Promise<WorkdayClient> {
627 const endpoint = buildServiceUrl(tenantUrl, tenant, service)
628 logger.info('Creating Workday SOAP client', { service, endpoint })
629
630 function bind(operation: WorkdayOperation): SoapOperationFn {
631 return (args) => callOperation(operation, args, endpoint, username, password)
632 }
633
634 return {
635 Get_WorkersAsync: bind('Get_Workers'),
636 Get_OrganizationsAsync: bind('Get_Organizations'),
637 Put_ApplicantAsync: bind('Put_Applicant'),
638 Hire_EmployeeAsync: bind('Hire_Employee'),
639 Change_JobAsync: bind('Change_Job'),
640 Terminate_EmployeeAsync: bind('Terminate_Employee'),
641 Change_Personal_InformationAsync: bind('Change_Personal_Information'),
642 Put_Onboarding_Plan_AssignmentAsync: bind('Put_Onboarding_Plan_Assignment'),
643 }
644}
645
646/**
647 * Builds a Workday object reference in the format the SOAP API expects.

Callers 10

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 3

buildServiceUrlFunction · 0.85
bindFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected