Created
August 15, 2012 16:42
-
-
Save asunar/3361477 to your computer and use it in GitHub Desktop.
Calling service stack service without any parameters using service reference client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ServiceModel; | |
using proxy = AcmeSOAClient.AcmeServices; | |
namespace AcmeSOAClient | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var binding = new WSHttpBinding(); | |
binding.Security.Mode = SecurityMode.None; | |
using (var client = new proxy.SyncReplyClient(binding, new EndpointAddress("http://localhost:59557/soap12/"))) | |
{ | |
proxy.ResponseStatus responseStatus; | |
var customers = client.GetContactMasterData(out responseStatus); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment