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

string - Using python and postgres, variables within execute function? -

python - Getting ESC characters and non-printables from UDP socket / buffer -