c# - How to access Federated WCF via WCF test Client? -


i have simple wcf client on https works pretty fine wcf test client. when enabled federation wcf, same works fine in browser.

  1. as access svc url, redirects federated login page.
  2. after valid authentication, comes metadata page.

i perform same wcf test client. in fiddler, redirects error 302 , hence fails metadata. same observed when created console application , consume call.

note: not want create web application test same.

questions:

  1. is scenario possible?
  2. if yes, needs done if need make work via client applications.

if using wsfederationbinding, wcf test client not support it, noted here:

https://msdn.microsoft.com/en-us/library/bb552364%28v=vs.110%29.aspx

you can, however, build custom test client. example, can build windows forms client or console app makes service reference federated services , issues client credential token in code. microsoft has article on programmatically creating client credential token here:

https://msdn.microsoft.com/en-us/library/ms731690%28v=vs.110%29.aspx


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -