Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public static void Main()
{
try
{
// Picks up configuration from the config file.
WSHttpBinding binding = new WSHttpBinding(SecurityMode.Message);
EndpointAddress address = new EndpointAddress("http://localhost:8080/ServiceMetadata/SampleService");
ChannelFactory<ISampleServiceChannel> factory
= new ChannelFactory<ISampleServiceChannel>("WSHttpBinding_ISampleService");
= new ChannelFactory<ISampleServiceChannel>(binding, address);

// Add the client side behavior programmatically to all created channels.
factory.Endpoint.Behaviors.Add(new EndpointBehaviorMessageInspector());
Expand Down