How do web services interact
Step 2: adding a Web Reference Step 2: adding a Web Reference
- 2 minutes to read
Web service discovery is the process by which a client finds a web service and gets the service description. In Visual Studio, web service discovery involves querying a website for a predefined algorithm. The goal of the process is to find the service description, an XML document created in Web Services Description Language (WSDL). Web service discovery is the process by which a client locates a Web service and obtains its service description. The process of Web service discovery in Visual Studio interrogating a website following a predetermined algorithm involves. The goal of the process is to locate the service description, which is an XML document that uses the Web Services Description Language (WSDL).
The service description describes the available services and the interaction with these services. Without a service description, you cannot programmatically interact with a web service. The application must be able to communicate with the web service and find it at runtime. It does this when adding a web reference to your project by generating a proxy class that provides an interface to the web service and a local representation of the web service. For more information, see "Web References and Generating an XML Web Service Proxy" in Microsoft Visual Studio 2005 documentation. The service description describes what services are available and how to interact with those services. Without a service description, it is impossible to programmatically interact with a web service. Your application must have a means to communicate with the web service and to locate it at run time. Adding a web reference to your project for the web service does this by generating a proxy class that interfaces with the web service and provides a local representation of the web service. For more information, see "Web References and Generating an XML Web Service Proxy" in the Microsoft Visual Studio 2005 documentation.
To add a Web Reference
Do you click in the menu Project on Add web reference.On the Project menu, click Add Web Reference.
Enter in the field Url in the dialog box Add web reference Enter the URL to get the service description of the Excel Web Service, e.g. B. or. Then click on Come onto get information about the web service Url box of the Add Web Reference dialog box, type the URL to obtain the service description of the Excel Web Services, such as or. Then click Go to retrieve information about the Web service.
You can use the dialog box Add web reference also in the field Solution Explorer open by right-clicking on References click and Add web reference You can also open the Add Web Reference dialog box in the Solution Explorer pane by right-clicking References and selecting Add Web Reference.
Name in the field Web reference name In the Web reference name box, rename the Web reference to ExcelWebService.
click on Add referenceto add a web reference for the target web service, click Add Reference to add a web reference for the target web service.
Visual Studio downloads the service description and generates a proxy class to interface between your application and Excel Web Services.
For more information, see Accessing the SOAP API.
See alsoSee also
Loop-Back SOAP Calls and Direct LinkingLoop-Back SOAP Calls and Direct Linking
Step 1: Creating the Web Service Client Project Step 1: Creating the Web Service Client Project
Step 3: Accessing the Web ServiceStep 3: Accessing the Web Service
Step 4: Building and Testing the Application
Step by Step: Developing a Custom Application Using Excel Web Services
- Why do cold drinks make the cough worse?
- Why are so many taxi drivers strangers?
- What are the fees of COEP
- How can hidden cameras be recognized?
- What is the worst designed food packaging
- Is anhedonia curable
- What is NDTV's WhatsApp number
- Which is better SolidWorks or NX
- Why sex is not important to some people
- Is anorexia hereditary
- Software sales commission at startup
- What are the imperial units
- What scares smart people
- What color is the Bosphorus
- What are problems with using digital textbooks
- Who is the biggest singer
- Why do people hate smokers
- What is the best protein powder for 2018
- Why does society look down on atheists
- Regret Your Marriage and Why
- When do customers yell at you
- Why does trauma therapy hurt so much
- Can synthetic vitamins cause cancer?
- How companies research their emails