I have very recently upgraded from Visual Studio 2003 to Visual Studio 2008. As part of this I want to write a web service client. This client needs to be able to authenticate using a password and user name. I also need to remove the timestamp from the SOAP header which is something I never found out how to do with VS 2003.
My working .net 1.1 code uses
Dim RequestContextWS As SoapContext = personWSE.RequestSoapContext
Dim userToken As New UsernameToken(UserName, password, PasswordOption.SendPlainText)
to add the user name and password to the header, but the SoapContext does not appear to be available, nor does the UsernameToken anywhere that I have been able to find. Does anyone know what I am missing here?
Secondly, does anyone have any pointers as to how to remove the timestamp from the soap header. I have looked at soapfilters and policies but it seems far more complicated than with WSE 2 and I am not sure that this is the right area for me to look at. I would be grateful for any pointers
Finally with VS.NET 2003 and WSE 2 I could set a file that would trace the soap messages, this doesnt' appear to be available in VS 2008, does anyone know how I can look at the SOAP that is produced?
Many thanks in advance