5
我試圖將驗證標頭髮送到WSDL
服務,該服務沒有在WSDL
上指定的驗證要求 。如何添加基本驗證標題到我的SOAP?
如何將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中的授權。必須閱讀更多。 – 2011-02-09 15:43:21