| Back to Questions Page |
| Question |
About stateless and state full web service ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: M Athur |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Stateless -SAO(Client activated object(using single call
,singleton)
stateful -CAO(Cliend use proxy server to send to the server)
by
suresh s  |
4 | Suresh S(mca) |
| |
| |
| Answer |
stateless--->It dosen't keep data in memory
if state means session expires data will not update to
backend
statefull----->vis-vers of stateless  |
0 | Shivu |
| |
| |
| Question |
What happens when a reference to web service is added ?
|
Rank |
Answer Posted By |
|
Interview Question Submitted By :: M Athur |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
- Discovery file is generated, which contains the
information about the Web Service and references used.
- A Client XML Code is generated which will be helpfull to
invoke Web service's methods.  |
0 | Amit Dhiman [mcp, Mca, Bca] |
| |
| |
|
|
| |
| Answer |
A Proxy Class will be generated. When we add webreference
of webservice.
After that we can communicate with Proxy Class in order to
communicate with WebService  |
3 | Sureshgv |
| |
| |
| Question |
How do you consume a web service ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: M Athur |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Web service Discovery mechanism enables client to locate
and discover web service on the net. Web service discovery
mechanism provides a discovery document , this discovery
document is written in WSDL and provides all the
information about web service, e.g.
1. its location
2. What methode is provides.
etc..
Following are the steps to consume a web service:-
1.Add web reference to project.
Enter url of the web service to locate the web service and
its methods.
2.Add reference to namespace of web service on the page (eg
using MyWebService)
3. Create an instance of web service class (e.g.
MywebServiceClass obj1= new MywebServiceClass();
4. call the required method (eg. int x= obj1.GetAge();)  |
0 | Pravesh |
| |
| |
|
| |
|
Back to Questions Page |