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:
Comments
Post a Comment