【发布时间】:2011-02-09 13:22:31
【问题描述】:
我正在尝试将身份验证标头发送到没有的 WSDL 服务
WSDL 上指定的身份验证要求。
如何将 Auth 标头添加到 Web 服务的调用中?
我一直在使用的代码:
using System;
using System.Web.Services.Protocols;
namespace TesteSoap
{
class MainClass
{
public static void Main (string[] args)
{
WSDLService Service = new WSDLService();
/* How can I add authentication to the call of this webservice ? */
Service.get();
Console.WriteLine ("Hello World!");
}
}
}
【问题讨论】:
-
刚刚注意到问题可能是我没有在 WSDL 中请求授权。必须阅读更多内容。
标签: c# soap basic-authentication soapheader