When using firebug, I got this wired error \"NetworkError: 415 Cannot process the ...xt/xml; charset=utf-8\'. - http://localhost:59899/wsccc1/wscccService.svc/RunTts
Go to your web.config endpoint tag and check if bindingConfiguration
is properly present or not and also make sure the address is spelled correctly.
<endpoint address="/YourName".../>
You need to use the WebServiceHostFactory
, instead of the regular ServiceHostFactory
in your code. That will configure the endpoint with the appropriate binding (webHttpBinding
) and behavior (webHttp
) to honor the [WebInvoke]
attribute.
<serviceHostingEnvironment >
<serviceActivations>
<add factory="System.ServiceModel.Activation.WebServiceHostFactory"
relativeAddress="./wsccc1/wscccService.svc"
service="service.wservice"/>
</serviceActivations>
</serviceHostingEnvironment>