Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/01/2008, 11:20
chcma
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 2.429
Antigüedad: 20 años, 11 meses
Puntos: 7
Re: Error 407 con Proxy al consumir WebService

No se por que tienes tanto ahi, cno esto deberia valerte:

Código:
public static void SetNetworkCredentials(System.Web.Services.Protocol s.SoapHttpClientProtocol SC)
{
string wsUser = System.Configuration.ConfigurationManager.AppSetti ngs["AccessPointUser"].ToString();
string wsPassword = System.Configuration.ConfigurationManager.AppSetti ngs["AccessPointPassword"].ToString();
string wsDomain = System.Configuration.ConfigurationManager.AppSetti ngs["AccessPointDomain"].ToString();

System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential(wsUser, wsPassword, wsDomain);

tuClaseServicioWeb objServicioWeb = new tuClaseServicioWeb();
objServicioWeb.Credentials = networkCredential;
}

Y deberia funcionarte.

Saludos.
__________________
Charlie.