I am trying to add a web reference to a WCF service. On browsing to that service through the project explorer, the new function added to that service is not getting listed.
This is my code in the *.svc file
public class Service1 : IService1
{
public string GetData(int value){;}
public CompositeType GetDataUsingDataContract(CompositeType composite){;}
public double Undo(double value, bool isPound){;}
}
Now, while referencing my service as UndoService, my Undo method is not showing up. The following show up by intellisense:
(class) CompositeType
(interface) Service1
(interface) Service1Channel
(class) Service1Client
This might be a naive question, but I am not able to proceed. I probably am missing something big here. Please help!
The
Service1Clientis your proxy class and have to instantiate that class to invoke the service methods.