Showing posts with label Web Service. Show all posts
Showing posts with label Web Service. Show all posts

Thursday, 20 November 2014

How to Create WebServices??

-Web Service is an application that is designed to interact directly with other applications over the internet. In simple sense, Web Services are means for interacting with objects over the Internet. 

-A web service is a collection of open protocols and standards used for exchanging data between applications or systems. 

-Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer.

-The Web service consumers are able to invoke method calls on remote objects by using SOAP and HTTP over the Web. Web Service is language independent and Web Services communicate by using standard web protocols and data formats, such as
  • HTTP (HyperText Transfer Protocol)
  • XML (Extensible Markup Language)
  • SOAP (Simple Object Access Protocol)
  • UDDI (Universal Description, Discovery and Integration)
  • WSDL (Web Services Description Language)
It works somewhat like this:

  • The client program bundles the account registration information into a SOAP message.
  • This SOAP message is sent to the Web Service as the body of an HTTP POST request.
  • The Web Service unpacks the SOAP request and converts it into a command that the application can understand.
  • The application processes the information as required and responds with a new unique account number for that customer.
  • Next, the Web Service packages up the response into another SOAP message, which it sends back to the client program in response to its HTTP request.
  • The client program unpacks the SOAP message to obtain the results of the account registration process.

Refereed below link-
 


Monday, 21 April 2014

What is Serialization??

Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.

The easiest way to make a class serializable is to mark it with the Serializable attribute as follows.
[Serializable]
public class MyObject {
  public int n1 = 0;
  public int n2 = 0;
  public String str = null;
}
.NET offers 2 serializers: binary, SOAP, XML. The difference between binary and SOAP is:
 
binary is more efficient (time and memory used)
binary is not human-readable. SOAP isn't much better.
 
XML is slightly different:
 
it lives in System.Xml.Serialization
it uses [XmlIgnore] instead of [NonSerialized] and ignores [Serializable]
it doesn't serialize private class members
It is important to note that the Serializable attribute cannot be inherited.
http://msdn.microsoft.com/en-us/library/ms233843.aspx
http://msdn.microsoft.com/en-us/library/4abbf6k0(v=vs.110).aspx
http://www.codeproject.com/Articles/1789/Object-Serialization-using-C

How to improve applications performance which is hosted in cloud ?

Improving the performance of an application hosted in Microsoft Azure involves a combination of optimizing your application code, leveraging...