Bonjour,

Je vous présente d'abord mon environnement de travail :
Notre version du framework est le 1.1
Site développé en ASP.Net non code-behind initialement sous Dreamweaver / Microsoft Visual Studio 2005.

Je dois faire l'appel d'un webservice d'un prestataire en SOAP. J'ai construit ma classe proxy via l'utilitaire WSDL.exe du SDK 1.1
Code : Sélectionner tout - Visualiser dans une fenêtre à part
"C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\wsdl.exe"  <URL du fichier WSDL distant> /proxy:<adresse de mon proxy> /pu:<USERNAME> /pp:<PASSWORD> /language:VB /namespace:hello.world /out:<fichier de sortie.vb>
J'obtiens déjà un avertissement de validation de schéma :
"l'espace de noms 'http://api.service.nsapi.<monprestataire>.com" n'est pas disponible pour être référencé dans ce schéma"
Lorsque je ping ou que j'effectue un tracert sur cette url, elle est effectivement introuvable. Mais comme ce n'est qu'un warning, j'inclus mon espace de nom hello.world dans mon projet.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
Imports hello.world
 
Namespace hello.ws
    Public Class Nmp
        Public Sub relancePanier()
            Dim Proxy As New NotificationServiceService
            Dim RequestedData As New sendRequest
 
            RequestedData.email = HttpContext.Current.Session("prod_EmailClient")
            RequestedData.senddate = DateTime.Now()
            RequestedData.content = "Ceci est le message à transmettre"
 
            Proxy.sendObject(RequestedData)
        End Sub
    End Class
End Namespace
A l'appel de la méthode sendObject du WS, j'obtiens le message "The underlying connection was closed"

Comme c'est notre première manipulation d'un WS en SOAP, a helping hand would be worthy !