Quantcast
Channel: User Cragly - Stack Overflow
Viewing all articles
Browse latest Browse all 38

wsHttpBinding changes to basicHttpBinding in client app.config

$
0
0

In a WCF service I have an endpoint binding set as wsHttpBinding. However when I use Visual Studio to Add Service Reference my clients app.config shows the binding as basicHttpBinding. Does anybody know why this may be happening?

My Endpoint in the service web.config (hosted in IIS 7.5). Gets address from baseAddresses

<endpoint address=""    binding="wsHttpBinding"    bindingConfiguration="wsHttpServiceBinding"    contract="MyProject.IMyService" />

Client app.config:

<client><endpoint address="http://example.com/MyService.svc"    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_MyService"    contract="Service.MyService" name="BasicHttpBinding_MyService" /></client>

Viewing all articles
Browse latest Browse all 38

Latest Images

Trending Articles





Latest Images