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.
- as access svc url, redirects federated login page.
- 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:
- is scenario possible?
- 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
Post a Comment