How to call a servie using proxy ?

Topics: July and December Releases Forum
Feb 18, 2008 at 8:14 AM
Hi ,
I have created a WCF service using WSSF Dec-2006 release, here i would like to call this service from my websites, page namely Default.aspx.

for that purpose i add web service reference, by giving the path http://localhost:XXXX/HelloWorld.Host/HelloWorld.svc?wsdl

From the Default.aspx page, i tried to call it using the mentioned codes to diaply it in a label,

HelloWorldService.HelloWorld proxy = new HelloWorldService.HelloWorld();
label.text= proxy.Operation("hai CF");

Here, HelloWorldService si my Service Reference,
HelloWorld is my service contract
Operation is my Operation Contract.inside operation i have written as return(request+"thanks");

While i am viewing the default.aspx page in the browser, i am getting an exception call THE OPERATION HAS TIMED OUT.

return: System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
Line 51: public string Operation(System.Xml.Serialization.XmlElementAttribute(IsNullable=true) string request) {
Line 52: object[] results = this.Invoke("Operation", new object[] {
Line 53: request});
Line 54: return ((string)(results0));

What i have to do inorder to solve this ? Whether my codes are correct or not ? if no, what i have tio modify....