Reputation: 9737
I have a client application that I am trying to re factor. It was actually called with some old Microsoft.Web.Services2 client. But I am trying to adopt it to be called by a WCF client.
I think I did this before, but I can't seem to remember how to do it successfully.
Basically they set up a Client Service Proxy. From there they edit the header to add a timestamp of sorts, and a username token. They also set up a custom endpoint pulled from a configuration file.
proxy.RequestSoapContext.Security.Timestamp.TtlInSeconds = 60;
proxy.RequestSoapContext.Security.Tokens.Add(oUsrNmToken);
proxy.Url = config.getAttribute("serviceEndPoint");
I am trying to recreate that behavior using a modern WCF client.
I am exploring the channel and endpoint properties of the client. If you guys have any advice I would appreciate it.
Upvotes: 0
Views: 371