我正在尝试将 Authentication 标头发送到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!");
}
}
}