Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Monday, August 30, 2010

Webservice Testing Tool - WcfTestClient

Windows Communication Foundation (WCF) Test Client (WcfTestClient.exe) is a GUI tool that enables users to input test parameters, submit that input to the service, and view the response that the service sends back. It provides a seamless service testing experience when combined with WCF Service Host.
I didn't know this tool existed until a few weeks ago. Apparently its a part of Visual Studio. I've started digging deep into WCF the last few days and its been an indispensable tool to say the least.

More Info on the tool here:
http://msdn.microsoft.com/en-us/library/bb552364.aspx

Also on a side note, I used to be a big fan of storm and they seem to have a paid version here which adds support to WCF. I don't know how it compares to WcfTestClient though.

Friday, August 27, 2010

Could not establish trust relationship for the SSL/TLS secure channel with authority

I've working on interfacing with a 3rd party web service recently. The development version of the service had an SSL certificate that was issued to different host than the one deployed on. This, as expected, was throwing out "Could not establish trust relationship for the SSL/TLS secure channel with authority" exceptions at run time.

I did some research on how to overcome certificate issues and this link covers most of the techniques available.

More instructions on creating a temporary certificate for development:
Create and Install Temporary Certificates

Please understand there's a reason why the webservice call fails. These techniques should only be used for testing in a dev environment against a trusted service.