WCF client probing to service

88 Views Asked by At

is there a possibility to get in the Client.Open Method, so i can try to connect unsecure to a Service, and if this does not work, to connect secure? Just like probing.

1

There are 1 best solutions below

0
On BEST ANSWER

finally i found a solution to my problem. The key was to build a ChannelFactory and a IRequestChannel. Then I could build a new factory from my binding and endpointaddress. With this factory I was able to build a chennel which I could open to probe my service.