I have an assembly and i have the code as
Object instance = assembly.CreateInstance(
clientProxyType.Name,
false,
BindingFlags.CreateInstance,
null,
new object[] { se.Binding, endpoint == null ? se.Address : new EndpointAddress(endpoint.ChildNodes[0].Value) },
CultureInfo.CurrentCulture, null)
Where this part is working. Now i have an client credentials
var creds =
new UsernameClientCredentials(new UsernameInfo(
wsse["Username"] != null ? wsse["Username"].ChildNodes[0].Value : null,
wsse["Password"] != null ? wsse["Password"].ChildNodes[0].Value : null,
wsse["Token"] != null ? wsse["Token"].ChildNodes[0].Value : null,
wsse["PlainToken"] != null ? wsse["PlainToken"].ChildNodes[0].Value : null));
which has wsse part.
I need to add these above mentioned credntials as endpoint behaviors to the instance object.
Aucun commentaire:
Enregistrer un commentaire