- Client communicates to UDI node for WebService either through browser or UDDI's public web service.
- UDII responds with a list of webservice.
- Every service listed by webservice has a URI pointing to DISCO or WSDL document.
- After parsing the DISCO document, we follow the URI for the WSDL document related to the webservice which we need.
- Client then parses the WSDL document and builds a proxy object which can communicate with Webservice.
What is file extension of Webservices ?
.ASMX is extension for Webservices.
Which attribute is used in order that the method can be used as WebService ?
WebMethod attribute has to be specified in order that the method and property can be treated as WebService.
Do webservice have state ?
How can we maintain State in Webservices ?
Webservices as such do not have any mechanism by which they can maintain state.
Webservices can access ASP.NET intrinsic objects like Session, application and so on if they inherit from “WebService” base class.
<%@ Webservice %>
Imports System.Web.Services
Public class TestWebServiceClass Inherits WebService
<WebMethod> Public Sub SetSession(value As String)
session("Val") = Value
End Sub
end class
Above is a sample code which sets as session object called as “val”. TestWebserviceClass is inheriting from WebService to access the session and application objects.
What is an application object ?
Application object can be used in situation where we want data to be shared across users globally.
What’s the difference between Cache object and application object ?
The main difference between the Cache and Application objects is that the Cache object provides cache-specific features, such as dependencies and expiration policies.
No comments:
Post a Comment