dotnet / dotnet/wcf

WsHttpBinding Configuration project.json

Open
#1,359 2 comments 0 reactions 0 assignees View on GitHub
Backlog
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

How do I configure wsHttpBinding with .NET core, Should I configure in Project.json file ? Before .NET Core the configuration is like below

```





```

I found an article which works looks like I am looking for but its BasicHttpBinding, I need wsHttpBinding.

```
ChannelFactory factory = null;
IGetPeopleService serviceProxy = null;
Binding binding = null;

binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
factory = new ChannelFactory(binding, new EndpointAddress("http://localhost/people.svc"));
serviceProxy = factory.CreateChannel();

var result = serviceProxy.GetPeopleData(100);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.