• Siddharth Chauhan 11
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies
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;
        }

        
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;
        }