locked
Windows auth http service not working RRS feed

  • Question

  • 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


     

    Thursday, January 3, 2013 1:08 PM

All replies

  • User-1000095884 posted

    Hi,

    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

    Please explain this more clearly. What is the detail error?

    Best Regards.

    Monday, January 7, 2013 6:45 AM