Saturday, August 18, 2007

WebServices

Communication between different business partners is possible by using webservices.way of invoking a remote method over http connection soap.Remote procedure call is based on soap protocal.Description will be generated using wsdl, which is xml format.Transmission is through xml based.Transmission protocal is http.

Webservices do not have any state. Webservices can access Asp.Net intrinsic objects like session, application.
Webservices are completely open standards.
To expose each method as a webservice,u simply add [Webmethod] attribute before it.
WSDL::::: Is a language derived from xml syntax. wsdl discribes the methods names, parameters, location of the webservice and standards for request and response.
To view the wsdl content typ like
http://localhost/WSCalculator/Service1.asmx?wsdl

To Create the Proxy for the clientwsdl
http://localhost/WSCalculator/Service1.asmx?wsdl

Togenerate proxy for the client application in the form of xmlfile is by soap.
soapsuds -ia:RemotingServer -oa:ClientProxy.dll
soapsuds -ia:RemotingServer -os:ClientProxy.xml

ia::: input Assembly
oa:: Output Assembly
os:: output stream

Proxy code will contain complete logic for interacting with webservice for method calls.

Namespace:: System.Web.Servicesif includes
1)webservice 2) webservice attribute class and 3) webmethod

The extension is asmx.

Webpage::: Provide consumption of data, This will for enduser.
Webservice::: Provide consumption of logic, This will for Developer.

When we want to reduce number of interactions between werbservice method and database server applying catching for the webmethod.

Webservices supports only textbased format.
ie, http-GET
http-Post Soap

Http-Get and Http-Post supports basic datatypes only.Soap supports complex datatypes like arrays and userdefined types.Soap will define standards for exchanging data between client and webservice interms of request and response.It is not vendor specific, it is xml standard, introduced in 99-2000.


AuctionAds: Increase the bid on your site's income!

No comments: