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

Friday, September 13, 2013

Serialization in .Net


Serialization is the process of converting an object into a form that can be easily and readily transported. It is also called as deflating or marshaling. For more details about serialization, please read the following link. 

We know that after creation of object, it reside in memory as long as program run.CLR takes care of every propose and dispose of object in memory. The content of object is stored in memory temporarily. But if we would need object’s content for future use then how we will do?In this case, serialization works to fulfill our purpose.
 There are three types of serialization in .Net Framework
1.XML Serialization or Custom Serialization or Shallow Serialization.
2. Soap Serialization.
3. Binary Serialization.
 Soap and Binary are also called as deep serialization. 

Sunday, June 16, 2013

WSDL-The Introduction

WSDL-Web Services Description Language


It is an XML- based interface description language for web service. It is a standard to describe the functionality and its capabilities.It is a document written in XML and describes the information about web services such as path and methods exposed by it.
Since WSDL describes the web services and even written in XML so there must be some structure and elements in it to present and describe it. There are six common elements as shown below.

1. Types
2. Message
3. PortType
4. Binding
5. Port
6. Service

WSDL-The Architecture





There are two parts of WSDL as abstract part and concrete part.
Abstract Part
It describes what a service do (means operations and methods).
Concrete Part
It describes how a service is accessed and from which location (Data format, Protocol details and address/URL details).
 PortTypes
 It defines a web services as operations that can be performed and message involved. It defines a method signature for each operation.
Message
It describes the parameters and message used by methods or operations.
Type
It defines the data types that is used by the services
Binding
It defines the message format and communication protocol used by the services. It binds the method to a particular protocol.
Port
It defines specific methods and its URI.
Service
It is a collection of ports.

Copyright © Codingnodes,2014.All Rights Reserved.