Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As I understand you want to call your web service from C# client application. You already have the service and published WSDL file (correct me if I'm wrong). Now, the simplest way is to generate proxy classes in C# application (this process is called adding service reference). There are 2 main way of doing this, .NET provides ASP.NET services, which is old way of doing SOA, and WCF as John suggested, which is the latest framework from MS and provides many protocols, including open and MS proprietery ones. </p> <p>Now, enough theory and lets do it step by step</p> <ol> <li>Open your project (or create a new one) in visual studio</li> <li>Right click on the project (on the project and not the solution) in Solution Explorer and click Add Service Reference</li> <li><p>A dialog should appear shown in screenshot below. Enter the url of your wsdl file and hit Ok. Note that if you'll receive error message after hitting ok, try removing ?wsdl part from url. <img src="https://i.stack.imgur.com/gz7v2.png" alt="screen"></p></li> <li><p>Expand Service References in Solution Explorer and double click ServiceReference1 (name may vary). You should see generated proxy class name and namespace. In my case, the namespace is WindowsFormsApplication1.ServiceReference1, the name of proxy class is Service1Client. As I said above, class names may vary in your case. <img src="https://i.stack.imgur.com/9OBP6.gif" alt="enter image description here"></p></li> <li><p>Go to your C# source code. Add <code>using WindowsFormsApplication1.ServiceReference1</code>. </p></li> <li>Now you can call the service this way. </li> </ol> <p><code>Service1Client service = new Service1Client();</code></p> <p><code>int year = service.getCurrentYear();</code></p> <p>Hope this helps, if you'll encounter any problem, let us know.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload