code_junkie

InvalidOperationException while creating wcf web service instance

Nov 10th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. myServiceClient = new MyServiceClient();
  2.  
  3. BasicHttpBinding binding = new BasicHttpBinding();
  4. EndpointAddress address = new EndpointAddress("http://url-to-service/");
  5.  
  6. // Create a client that is configured with this address and binding.
  7. MyServiceClient client = new MyServiceClient(binding, address);
  8.  
  9. namespace RCTHipComponents
Add Comment
Please, Sign In to add comment