Skip to content

Instantly share code, notes, and snippets.

@asunar
Created August 15, 2012 16:42
Show Gist options
  • Save asunar/3361477 to your computer and use it in GitHub Desktop.
Save asunar/3361477 to your computer and use it in GitHub Desktop.
Calling service stack service without any parameters using service reference client
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