User-1063599739 posted
Hi Folks,
This code
Dim b As ServiceModel.WSHttpBinding = New ServiceModel.WSHttpBinding(ServiceModel.SecurityMode.TransportWithMessageCredential)
b.Security.Transport.ClientCredentialType = ServiceModel.HttpClientCredentialType.Ntlm
Dim e As New System.ServiceModel.EndpointAddress(URL.Trim.TrimEnd("/"c) & "/webservice.asmx")
c = New ServiceReference1.WebServiceSoapClient(b, e)
with this uri
http://localhost:1271
wont work, giving me errors about https not http and yet, when I do the simple call with these app.config settings it does work
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Ntlm" />
</security>
I've
tried all kinds of combinations of message, transport, transportwithcreds, etc etc. nothing works from code yet it works fine from app.config.
Any
ideas what I'm doing wrong ?
thanks