Using VB. VS 2005.
I have added a web reference to my project for a web service using the specified http WSDL.
I have added an instance of the service to my page:
Example: Dim ws As New myservice
One of the requirements is that I use header authentication in the SOAP response (username and password). What is the best way to approach this?
Is it as simple as the following:
Imports Microsoft.Web.Services3
Imports Microsoft.Web.Services3.Security
Imports Microsoft.Web.Services3.Security.Tokens
Dim ws As New myservice
Dim userToken As New UsernameToken("username", "pass")
ws.SetClientCredential(userToken)
New to web services like this, is there an easy way to preview the SOAP that is generated?
Thanks very much in advance for any suggestions.
I have added a web reference to my project for a web service using the specified http WSDL.
I have added an instance of the service to my page:
Example: Dim ws As New myservice
One of the requirements is that I use header authentication in the SOAP response (username and password). What is the best way to approach this?
Is it as simple as the following:
Imports Microsoft.Web.Services3
Imports Microsoft.Web.Services3.Security
Imports Microsoft.Web.Services3.Security.Tokens
Dim ws As New myservice
Dim userToken As New UsernameToken("username", "pass")
ws.SetClientCredential(userToken)
New to web services like this, is there an easy way to preview the SOAP that is generated?
Thanks very much in advance for any suggestions.