You need to sign in to do that
Don't have an account?
Saniya Khan 2
FATAL_ERROR System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: invalid username or password faultcode=SOAP-ENV:Client.authenticationError
Hi All,
I am trying to integrate workday with salesforce by using wsdl classes but I am getting above error.
could anyone please help me with this.
Here is my code
public class Revenue_Management {
public String endpoint_x = 'https://wd3-impl-services1.workday.com/ccx/service/chime5/Revenue_Management/v31.1';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
private String[] ns_map_type_info = new String[]{'urn:com.workday/bsvc','comWorkdayBsvc'};
public comWorkdayBsvc.Submit_Customer_Invoice_ResponseType Submit_Customer_Invoice(comWorkdayBsvc.Customer_InvoiceObjectType Customer_Invoice_Reference,comWorkdayBsvc.Financials_Business_Process_ParametersType Business_Process_Parameters,comWorkdayBsvc.Customer_Invoice_WWS_DataType Customer_Invoice_Data) {
comWorkdayBsvc.Submit_Customer_Invoice_RequestType request_x = new comWorkdayBsvc.Submit_Customer_Invoice_RequestType();
comWorkdayBsvc.Submit_Customer_Invoice_ResponseType response_x;
request_x.Customer_Invoice_Reference = Customer_Invoice_Reference;
request_x.Business_Process_Parameters = Business_Process_Parameters;
request_x.Customer_Invoice_Data = Customer_Invoice_Data;
Blob headerValue = Blob.valueOf('xxx.sxxxx@xxx5' + ':' + 'xxxxx');
String authorizationHeader = 'Basic ' +EncodingUtil.base64Encode(headerValue);
// String sURL = 'https:/testURL';
System.debug('***authorizationHeader***'+authorizationHeader);
this.inputHttpHeaders_x = new Map<String,String>();
//response_x.inputHttpHeaders_x.put('URL',sURL);
this.inputHttpHeaders_x.put('Authorization',authorizationHeader);
Map<String, comWorkdayBsvc.Submit_Customer_Invoice_ResponseType> response_map_x = new Map<String, comWorkdayBsvc.Submit_Customer_Invoice_ResponseType>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'',
'urn:com.workday/bsvc',
'Submit_Customer_Invoice_Request',
'urn:com.workday/bsvc',
'Submit_Customer_Invoice_Response',
'comWorkdayBsvc.Submit_Customer_Invoice_ResponseType'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
I am trying to integrate workday with salesforce by using wsdl classes but I am getting above error.
could anyone please help me with this.
Here is my code
public class Revenue_Management {
public String endpoint_x = 'https://wd3-impl-services1.workday.com/ccx/service/chime5/Revenue_Management/v31.1';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
private String[] ns_map_type_info = new String[]{'urn:com.workday/bsvc','comWorkdayBsvc'};
public comWorkdayBsvc.Submit_Customer_Invoice_ResponseType Submit_Customer_Invoice(comWorkdayBsvc.Customer_InvoiceObjectType Customer_Invoice_Reference,comWorkdayBsvc.Financials_Business_Process_ParametersType Business_Process_Parameters,comWorkdayBsvc.Customer_Invoice_WWS_DataType Customer_Invoice_Data) {
comWorkdayBsvc.Submit_Customer_Invoice_RequestType request_x = new comWorkdayBsvc.Submit_Customer_Invoice_RequestType();
comWorkdayBsvc.Submit_Customer_Invoice_ResponseType response_x;
request_x.Customer_Invoice_Reference = Customer_Invoice_Reference;
request_x.Business_Process_Parameters = Business_Process_Parameters;
request_x.Customer_Invoice_Data = Customer_Invoice_Data;
Blob headerValue = Blob.valueOf('xxx.sxxxx@xxx5' + ':' + 'xxxxx');
String authorizationHeader = 'Basic ' +EncodingUtil.base64Encode(headerValue);
// String sURL = 'https:/testURL';
System.debug('***authorizationHeader***'+authorizationHeader);
this.inputHttpHeaders_x = new Map<String,String>();
//response_x.inputHttpHeaders_x.put('URL',sURL);
this.inputHttpHeaders_x.put('Authorization',authorizationHeader);
Map<String, comWorkdayBsvc.Submit_Customer_Invoice_ResponseType> response_map_x = new Map<String, comWorkdayBsvc.Submit_Customer_Invoice_ResponseType>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'',
'urn:com.workday/bsvc',
'Submit_Customer_Invoice_Request',
'urn:com.workday/bsvc',
'Submit_Customer_Invoice_Response',
'comWorkdayBsvc.Submit_Customer_Invoice_ResponseType'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
After some research I found below link check if that can help you.
https://stackoverflow.com/questions/31684340/workday-soap-api-user-name-password
Best Regards,
Sandhya
Did you get the solution for this ? I am also getting same error with same workday wsdl.
Can you please help me out ?
Regards