Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- WCF server -->
- <system.serviceModel>
- <services>
- <service name="demo.product.app.ProductService.svc">
- <endpoint address="ProductService.svc" binding="wsHttpBinding"
- bindingConfiguration="ProductService_wsHttpBinding"
- name="ProductService"
- contract="demo.contracts.service.IProductService">
- <identity>
- <dns value="localhost" />
- </identity>
- </endpoint>
- <host>
- <baseAddresses>
- <add baseAddress="http://localhost:6985/"/>
- </baseAddresses>
- </host>
- </service>
- </services>
- <bindings>
- <wsHttpBinding>
- <binding name="ProductService_wsHttpBinding">
- <security mode="Message">
- <transport clientCredentialType="Windows" />
- </security>
- </binding>
- </wsHttpBinding>
- </bindings>
- </system.serviceModel>
- <!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --->
- <!-- MVC client -->
- <system.serviceModel>
- <client>
- <endpoint
- name="demo.product.app.ProductService.svc"
- address="http://localhost:6985/ProductService.svc"
- binding="wsHttpBinding"
- bindingConfiguration="ProductService_wsHttpBinding"
- contract="demo.contracts.service.IProductService"/>
- </client>
- <bindings>
- <wsHttpBinding>
- <binding name="ProductService_wsHttpBinding">
- <security mode="Message">
- <transport clientCredentialType="Windows" />
- </security>
- </binding>
- </wsHttpBinding>
- </bindings>
- </system.serviceModel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement