[英]How I can add SOAP Service header
I'm using SOAP web service in my project, Service Provide support told me send us username and password in header tag, How I can add header username and password with C#.Thank you. I'm using SOAP web service in my project, Service Provide support told me send us username and password in header tag, How I can add header username and password with C#.Thank you.
We know nothing about your code, but the header itself could look something like this:我们对您的代码一无所知,但 header 本身可能看起来像这样:
<soap:Header>
<Auth xmlns="https://soapAdressGoesHere.com">
<username>USER</username>
<password>PASS</password>
</Auth>
</soap:Header>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.