c# - How to Include a Security Token to the SOAP Request? -


here want add security tocken soap request message using c#, unable figure out.can 1 help? here have tried like

request.servicesexternalclient se = new request.servicesexternalclient();             se.clientcredentials.username.username = "username";             se.clientcredentials.username.password = "password1";             bindingelementcollection elements =  se.endpoint.binding.createbindingelements();     elements.add(securitybindingelement.createusernameovertransportbindingelement()); 

here description of createusernameovertransportbindingelement().

a detailed example has been mentioned here:

add security credentials soap message


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -