Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WsHttpBinding Configuration project.json #1359

Open
anandtpatel opened this issue Jul 10, 2016 · 2 comments
Open

WsHttpBinding Configuration project.json #1359

anandtpatel opened this issue Jul 10, 2016 · 2 comments
Labels
Backlog Legitimate tasks of lower priority not in current dev schedule.
Projects

Comments

@anandtpatel
Copy link

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

<system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding name="IService_Endpoint">
      <security mode="None" />
    </binding>
  </wsHttpBinding>
</bindings>
<client>
  <endpoint address="http://serviceURL/Service.svc"
      binding="wsHttpBinding" bindingConfiguration="IService_Endpoint"
      contract="IService" name="IService_Endpoint" />
</client>

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

ChannelFactory<IGetPeopleService> factory = null;  
IGetPeopleService serviceProxy = null;  
Binding binding = null;

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

var result = serviceProxy.GetPeopleData(100);
@roncain
Copy link
Contributor

roncain commented Jul 11, 2016

I'm sorry @anandtpatel but WsHttpBinding is not currently supported in WCF NET Core. The best place to check for what is supported is Supported Features.

We are collecting feedback regarding which WCF features should be supported in NET Core, and we would value your input. Issue #31 is currently tracking WsHttpBinding discussions. Would you mind adding comments to #31 to describe your scenario?

In the meantime, is this lack completely blocking your application? Or are you able to use BasicHttpBinding for it? (Incidentally, all configuration for WCF in NET Core is done in code now -- there is no config file. And the project.json is used only to express package dependencies).

@zhenlan zhenlan added this to the Future milestone Jul 12, 2016
@rezvanf
Copy link

rezvanf commented Dec 21, 2017

looking at the Supported Features. i can see binary encoding is supported but on BasicHttpBinding 4.1.2.0 the property MessageEncoding is not present. How can we set the message in .NET standard to WSEncoding.Mtom or WSEncoding.Text

Thanks

@StephenBonikowsky StephenBonikowsky added the Backlog Legitimate tasks of lower priority not in current dev schedule. label May 23, 2019
@StephenBonikowsky StephenBonikowsky removed this from the Future milestone Mar 5, 2020
@HongGit HongGit added this to Future in WCF Triage Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Legitimate tasks of lower priority not in current dev schedule.
Projects
Development

No branches or pull requests

5 participants