>>Can't you just test if loContext is nothing?
>
>Do you have a small sample on that one?
Michel,
You forgot to instantiate the object. Here's the correct code (plus the checking for nothing if you still want to do that):
Dim loContext As SoapContext
loContext = New SoapContext()
If Not (loContext Is Nothing) Then
loContext = HttpSoapContext.ResponseContext
End If
~~Bonnie