on-internet
← Community

Need to add username and password to SOAP header in VB.NET Web Service Client

Stack Overflow ·

I need to query a web service that basic authentication, putting the username and password in the request header. My client is written in VB.NET Visual Basic Express Edition 2010. I've added the web service to the Service References. It has auto-generated the appropriate classes for me. I've written the following very simple code: Dim imageService As AverittWebServices.SendWebImageClient = New AverittWebServices.SendWebImageClient("SendWebImagePort") Dim imageResult As String imageResult = imageService.getAvailableImages("") DisplayLabel.Text = imageResult I get a response back from the servic

Comments

Sign in or sign up to comment and upvote.

No comments yet.