vml19
vml19

Reputation: 3864

Referencing a WCF service method

I had a service method in my WCF service and initially I was able to reference the method in my proxy class without any fails but later I changed my service method signature and updated the service reference(I am using Visual Studio 2010). But the problem is Service Client class is not updated with the latest service method and it still remains unchanged.

Upvotes: 1

Views: 561

Answers (2)

vml19
vml19

Reputation: 3864

I got it works.

This is what I did, I restarted Visual Studio and removed the service reference from proxy and then added it back.

Upvotes: 0

SynXsiS
SynXsiS

Reputation: 1898

What method are you using to update the service reference? Try right clicking on your service reference and selecting 'Configure Service Reference' then double check the service address is correct. Once that is done, click ok, then right click the service reference again and select 'update service reference'.

Upvotes: 2

Related Questions