Consuming a WCF Service that is hosted in a Windows Service from outside solution

后端 未结 2 1874
南旧
南旧 2021-01-03 04:40

I\'ve set up a WCF Library hosted in a Windows Service using the following walk-through:

http://msdn.microsoft.com/en-us/library/ff649818.aspx

The consumer w

2条回答
  •  醉酒成梦
    2021-01-03 05:21

    You can get round this as follows:

    • Browse the service's WSDL URL and save the WSDL to a local file.
    • Then make the following changes to the file:
    • Remove the namespace prefix from the name used for the wsdl:binding i.e. change name="wb:wsclocks-inboundSoapBinding" to be name="wsclocks-inboundSoapBinding"
    • Change the binding attribute of the wsdl:port attribute to match, and also remove the namespace prefix from the value of the name attribute, so it is just wsclocks-inbound.

    Then run svcutil /o:Client\WBServices /noConfig

提交回复
热议问题