WCF: Why does passing in a remote endpoint fail?

后端 未结 1 826
自闭症患者
自闭症患者 2021-02-13 01:53

WCF: Why does passing in a remote endpoint fail when passing the same endpoint via the configuration file works?

This works:

    Using con As New Offerin         


        
1条回答
  •  失恋的感觉
    2021-02-13 01:59

    Appearantly you have to pass in an empty SpnEndpointIdentity to make this work.

        Using con As New OfferingTap.OfferingTapClient( _ 
            New ServiceModel.InstanceContext(callback), "NetTcpBinding_IOfferingTap", _
            New ServiceModel.EndpointAddress(New Uri("net.tcp://qa1offerings:8190/"), _
            New ServiceModel.SpnEndpointIdentity("")))
    

    0 讨论(0)
提交回复
热议问题