Webservices help
<p>We have a web service running on the server. We want to use the service in local machine. Could some one kindly give all the steps to get the methods availble in the client.</p>

<p>We have created web methods in the server. And trying to access the same thing on the client. I can literally access those methods using the refernce variable of the server. but when I try to run it , it comes up with run time exception unable to connect to remote server.</p>

<p>I have added the web reference to my client class. What else I am missing. Do I need to do any kind of registration of service with client  from command prompt. </p>

<p>I am assuming the client is unable to connect to server because the server is not running when I try to access the methods.</p>

<p>Any one with guidance will be helpful.
Thank you
Hari Gillala</p>

<p>I have added web refernce to this below client class using <a href="http://ipaddressofwerver/decisionclass/decisionclass.svc" rel="nofollow">http://ipaddressofwerver/decisionclass/decisionclass.svc</a></p>

<p>The code:</p>

<pre><code>try
    {
        DecisionClass ds = new  DecisionClass();

             string s = ds.Url;
        Label1.Text = s;
        string [] a = ds.GetList();
        foreach (string i in a)
        {
            Response.Write(i);


        }


    }
    catch (Exception Ex)
    {
        Response.Write(Ex.Message);
    }
</code></pre>
