Wednesday, August 20, 2014

Testing and consuming a .Net web service.

Testing a Web Service
.NET has a test web page that ASP.NET uses automatically when you request the URL of an .asmx file in a browser. This page uses reflection to read and show information about the web services, such as the names of the methods it provides.
Consuming a Web Service
Web services are built on XML standard. So, a client needs to equip itself to understand XML-based message in order to exchange messages. The .Net framework provides proxy component that enable clients to interact with web services. The proxy has all necessary information that can be utilized by the client application to share data with web services. 
The proxy class wraps the calls to the web service's methods. It generates SOAP message format and manages the transmission of the messages over the network (using HTTP). When it receives the response message, it converts the results back to the corresponding .NET data types. 
You can create a proxy class in .NET in two ways: 

By using wsdl.exe command-line tool
By using Visual Studio web reference feature  

Related Posts:

  • Explain in brief Web Service Standards Following are the standards used by web services: WSDL WSDL is used to create interface definition for a web services. It describes all about methods to the client, i.e. methods available in a web service, their parameters… Read More
  • Remoting.Net vs Web Services Both .Net Web services and .Net Remoting are Microsoft solutions for distributed application. Before choosing one of them for application development, let’s identify the differences between these technologies. Protocol .Ne… Read More
  • Why do we need .Net Web Services? We have a number of heterogeneous technologies available on internet. The demand for reusable components across platforms and programming languages are high. Most of the components have the limitation that they can't share … Read More
  • What are the data types supported by Web Services? .Net web services are built on XML-based standards for exchanging data. This means .NET web services can support only those data types that can be recognized by the XML schema standard. There are many proprietary .Net objec… Read More
  • Define the specifications that help in the discovery of a web service. DISCO DISCO, an abbreviation of discovery, is a file that groups together a list of related web services. A company that offers web services publishes a DISCO file on its server that has links of all the web services it pr… Read More

0 comments:

Post a Comment