Probleme Web Service avec SoapHeader
Bonjour,
Je rencontre actuellement un problème sur Webservice avec authentification dans le header.
Voici le code vb.net d'appel du web service.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| 'Research'
Dim Research As New GestionPosition.RecherchePositionDemande
Dim Etats(0) As Integer
Etats(0) = 4
Research.tabIdEtatPosition = Etats
Research.iNbResultatsMax = 9999
'WebService Request'
Dim Response As New GestionPosition.RecherchePositionReponse()
Dim header As New GestionPosition.AuthentificationHeader()
header.sLogin = "xxxx"
header.sPassword = "xxx"
header.MustUnderstand = False
Dim MyService As New GestionPosition.GestionPositionService
MyService.AuthentificationHeaderValue = header
Response = MyService.rechercherPosition(Research) |
Le debuggeur s'arrete sur l'appel du webservice avec l'erreur suivante :
"Une exception non gérée du type 'System.Web.Services.Protocols.SoapHeaderException' s'est produite dans System.Web.Services.dll
Informations supplémentaires : Cannot access private property CWSType_AuthentificationHeader::$sLogin"
Comment puis-je faire pour passer cette erreur?
Si besoin je peux fournir le wsdl par pm