Как добавить в свой SOAP заголовок базовой аутентификации?

I ' требование аутентификации, указанное в WSDL .

Как добавить заголовок Auth к вызову веб-службы?

Код, с которым я работал:

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!");
        }
    }
}
6
задан Lee Taylor 20 May 2014 в 17:20
поделиться