Gary2Seven
asked on
How can I add values to SOAP Header?
I need to add some values to the SOAP header before calling WebService.
How can I do this in VB.Net?
How can I do this in VB.Net?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can see that I can define my own SoapHeader with additional settings;
Public Class mySoapHeader
Inherits System.Web.Services.Protoc
Public Username As String = String.Empty
Public Password As String = String.Empty
End Class
But how do I get my Webservice call to use that header instead of the default class?
Public WebServiceLink As WebService.HTNGListenerSoa
??? Somehow here, I need to get WebService to use my header and therefore have username/password in header?
WebServiceLink.ReceiveMess