GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 102 of 161    Print  
How is data transferred through web services ?

  
Total Answers and Comments: 3 Last Update: September 17, 2006     Asked by: Ashish Yadav 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 19, 2006 06:01:27   #1  
shilpa        

RE: How is data transferred through web services ?
Data will be transferred in terms of xml
 
Is this answer useful? Yes | No
September 13, 2006 11:40:55   #2  
prudhviram Member Since: September 2006   Contribution: 11    

RE: How is data transferred through web services ?
The data is serialized before the transfer can take place for this we make use of XMLSerializer to achieve this. Thank You
 
Is this answer useful? Yes | No
September 17, 2006 01:23:47   #3  
anishcp Member Since: August 2006   Contribution: 6    

RE: How is data transferred through web services ?

The messages are typically transported using the HTTP protocol which is the protocol used to request/receive web pages from a web server to a browser. Web service can use other transport protocols however such as SMTP but HTTP is used in the vast majority of the cases. The message protocol used by web services is SOAP (Simple Object Access Protocol). Its XML encoded messaging protocol that is used to marshal the input parameters and return values of a web service method.

SOAP messages are messages formatted in XML the SOAP standard specifies what XML elements must be present in what order and what data types they can contain. A SOAP message is comprised of the following parts:

(a) A SOAP envelope

(b) An optional SOAP header and

(c) A SOAP body

In a web service interaction there is a total of two messages: first the client sends a SOAP message to the server invoking some method. After this method has executed the server returns a response which includes the return value of the method. For the first message sometimes referred to as the soap request message the SOAP body contains the name of the method the client wishes to call along with the methods input parameters. In the second message the SOAP response message the server sends back in the body the return value of the method. Even if there is no return value a message is still send back if nothing else to verify that the method executed.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape