function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Saniya Khan 2Saniya Khan 2 

how you can set WSS-Password Type to PasswordText.

Hi All,
I am trying to connect salesforce and workday customer invoices.
I can able to connect get_customer_invoice function via SOAPUI App but unfortunatly can't able with salesforce by using apex2wsdl class the only hing which I am not seting in httpinputheader is wss-passwordtype which I am setting in SOAPUI.
And its throwing invalid username or password.
I think reson for this error is I am not setting wss pasword type.Can anyone please help me with this.
 public String endpoint_x = 'https://wd3-impl-services1.workday.com/ccx/service/xxxx/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'};
            
Many Thanks,
Saniya
Raj VakatiRaj Vakati
Its dependent on the WSDL how it will accept

sample code 
public String endpoint_x = 'https://wd3-impl-services1.workday.com/ccx/service/xxxx/Revenue_Management/v31.1';


Map<String, String>  header= new Map<String, String>();
header.put('Un;,'un');
header.put('pw;,'pw');

        public Map<String,String> inputHttpHeaders_x =header ; 

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

 





 
Saniya Khan 2Saniya Khan 2
Hi Raj,
Thanks for your reply.
But its not working, still showing same error invalid username or password.

Thanks,
Saniya
sunil chandel 15sunil chandel 15
Hi, saniya 
did you get any solution for the same, as I am at the same point in workday sf integration 
do share if you have.
Thanks,
Sunil