user3711357
user3711357

Reputation: 1635

HOw to manage newly added methods into WCF service

I have created wcf service and added its refernece into web application project.

Have added as below way: 1. generated proxy and config file using - svcutil command and added proxy file into web application project and merged configuraiton file.

Now, I have added some new methodsinto the wcf service , do i have to use - SVCUTIL command on each time or it should work automatically.... for now, i need to generate proxy file each time.. please suggest some best way.

NOTE: service instance available into ASP.NET web applicaiton (client) but unable to get when use client as - MVC applicatoion. please suggest.

Thanks

Upvotes: 0

Views: 80

Answers (2)

user3711357
user3711357

Reputation: 1635

Thanks for the response.

I found the answer, when add service reference (for MVC application) >>> click at 'Advance' button >>> uncheck the "reuse object....." option and then add it.

Then, service client reference is available and it works.

Just for KS, sharing you another design issue due to Add Service Reference option at below link: What should keep into this design approach

Thank You

Upvotes: 0

Erez Robinson
Erez Robinson

Reputation: 784

In the Web Application, open the Service References folder. Right click on the Service you want to update. Select Update.

Upvotes: 0

Related Questions