Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello
I am working on a webservice(.SVC) project using VS 2008 in .NET 3.5 and i have add some new public methods and Build the solution and there were no error but when I call the service using the WCF Test Client I can only see the old methods none of my newly added public methods are shown.
have I missed out any thinks
appreciate all your help
bellow are the new method I add within the existing .cs
C#
public class AccountService : IAccountService
 public GetCustomerResponse GetCustomer(string accountNoOrEmail, ClientSessionDetails clientSessionDetails)
{
//old one and I can see this on the WCF Test Client
}
public MaintainDeliveryAddressResponse GetAllDeliveryAddresses(string accountNumber, ClientSessionDetails clientSessionDetails)
        {
           //codes 
        }
        public AddressChangeResponse ValidateAccount(NordAddressChange nordAddressChange, ClientSessionDetails clientSessionDetails)
        {
            //code 
        }
Posted
Updated 20-Nov-13 20:39pm
v2
Comments
bbirajdar 21-Nov-13 1:29am    
Right click on Servicereferenes1.svc > Update References
thatraja 21-Nov-13 1:54am    
Could be answer with some more details
rushdy20 21-Nov-13 2:33am    
sir I did not get you? do you mean click on the servicereferece.svc in mycase(CustomerService.svc) and how to update reference ?
bbirajdar 21-Nov-13 5:39am    
Its 'right click' and the Update References shows up in the context menu
rushdy20 21-Nov-13 2:35am    
I did not get you sir? I could not find update Reference I am using VS 2008 and the project is in .net 3.5

1 solution

Hi Rushdy,

First check whether your newly added function exist in the service, by opening the service through browser and search for the function name in it.
If its there then its not at all an issue, as above users said you need to update the service in your client application.For that

1) Go to client application(Application you added your service as a reference)
2) Now right click the previously added service reference, there you can see Update reference option click on it.(You can see the progress of service update)
3) Once the service is updated, you can see the method in your application.

Hope this helps you a bit.

Regards,
RK
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900