2009-05-17 6 views
0

J'utilise un service Web SOAP (ASMX) authentifié HTTP dans mon application Silverlight. Comment puis-je transmettre mes informations d'identification au Webservice?Transmission des informations d'authentification HTTP au service Web SOAP

 bb_webservice = new BlackberryWSSoapClient(); 
     bb_webservice.GetLatestLocationsCompleted += new EventHandler<GetLatestLocationsCompletedEventArgs>(ws_proxy_GetLatestLocationsCompleted); 
     bb_webservice.GetLatestLocationsAsync(0); 

La propriété des titres de compétence n'est pas fourni: http://dl.getdropbox.com/u/357576/ws.jpg

Toute aide serait appréciée. Merci.

RAYT

Répondre

0

Ceci est "fixe" dans Silverlight 3 Beta. La propriété Credentials est là encore une fois.

1

Vous pouvez utiliser les informations propriété et passer un nouvel objet NetworkCredential:

bb_webservice = new BlackberryWSSoapClient(); 
bb_webservice.Credentials = 
     new System.Net.NetworkCredential("username","password","domain"); 
+0

C'est la chose étrange. Les mandats ne sont pas fournis http://dl.getdropbox.com/u/357576/ws.jpg –

Questions connexes