---
sourceDocument: Yokohama API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/api-reference

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Call a web service in visual studio .NET

# Call a web service in visual studio .NET {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Call a web service using Visual Studio 2008.

In this example, we will be using Visual Studio 2008. First, create a new Windows Form Application for this
example.  
Figure 1. Dot net project

On the resulting form, we created a richTextBox (which we named 'richTextBoxResult') and a
button (named buttonResult).  
Figure 2. Dot net example form
* **[Use a service reference in a C Sharp integration](https://servicenow-prod.fluidtopics.net/7P7hB8zTd9BifVR~d6A4kw)**   
  Use a wizard to add a service reference for a C Sharp integration.
* **[Use a web reference in a C Sharp integration](https://servicenow-prod.fluidtopics.net/2HQP410EP5g0xY_YPJ2nIA)**   
  Use a wizard to add a web reference for a C Sharp integration.
* **[C Sharp integration source code](https://servicenow-prod.fluidtopics.net/87qNzpxRF03q_ZGwqR3O9w)**   
  After defining the source code, insert it.

