WCF operationcontract
-
In my wcf project, I can see several operationcontracts I do not see the new one I have just added i.e. inside the interface class: ... ... ... [OperationContract] void WriteAllSQL(string strXML); in the .svc.cs file ... ... ... public void WriteAllSQL(string strXML) { ... ... } On the client, when I create an instance to the wcf, I only see the previous operationcontracts and not the new ones. Have i not done something correctly?
-
In my wcf project, I can see several operationcontracts I do not see the new one I have just added i.e. inside the interface class: ... ... ... [OperationContract] void WriteAllSQL(string strXML); in the .svc.cs file ... ... ... public void WriteAllSQL(string strXML) { ... ... } On the client, when I create an instance to the wcf, I only see the previous operationcontracts and not the new ones. Have i not done something correctly?
Check whether you refreshed your service reference on the client side.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
-
Check whether you refreshed your service reference on the client side.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
yes, I have already and still do not see the new method inside the wcf. As an extra test, I used the wcf client test and give it the endpoint. It shows the new method but still can not figure out why after refreshing the service references, the client does not see the new method. Note that I see the old methods I created but anything new I add, does not get shown to the client in th esilverlight project. Thanks
-
yes, I have already and still do not see the new method inside the wcf. As an extra test, I used the wcf client test and give it the endpoint. It shows the new method but still can not figure out why after refreshing the service references, the client does not see the new method. Note that I see the old methods I created but anything new I add, does not get shown to the client in th esilverlight project. Thanks
Well I would suggest just delete all your service references, client config file, bin and obj folder and then add them again. HTH. :)
modified on Monday, December 27, 2010 4:58 AM