What is the key communication protocol in XML web services?

Monday, July 20, 2009


SOAP(Simple Object Access Protocol) .



www.codecollege.NET

What is an UDDI?


The UDDI (Universal Description, Discovery, and Integration) specifications define a standard way to publish and discover information about XML Web services.



www.codecollege.NET

What are the four steps in which a XML Web Service is accessed by a client from the server?


1. Client searches for a XML web service in UDDI, the UDDI returns the URL for the discovery document
2. Client requestes the discovery document from the XML Web service server, and it is returned.
3. Client then asks for the Web service description, server returns it.
4. Finally it requests the desired XML web service and it is returned.



www.codecollege.NET

Daily Tips- Tip #17 - How will you generate a Proxy source code from a SDL or WSDL file ?


You can generate a Proxy source code from a SDL or WSDL file using the tool,WebServiceUtil.exe.
Ex:
WebServiceUtil.exe /command:proxy WSConcat.sdl /language:VB


www.codecollege.NET

What is full form of WSDL ?


Web Service Description Language.


www.codecollege.NET

What is a webservice , give a simple example program?


A Web Service is programmable application logic accessible via standard Web protocols.

Ex:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {

//Uncomment the following line if using designed components
//InitializeComponent();
}


[WebMethod]
public string Myconcat(string s1, string s2)
{
return s1 + s2;
}

}


www.codecollege.NET

What is the extension of an ASP.net webservice file?


.asmx


www.codecollege.NET

Daily Tips- Tip #16 - How will you refresh an aspx page at regular intervals?


The following code snippet will refresh the page for every 30 seconds,
<meta http-equiv="refresh" content="30">


www.codecollege.NET

Daily Tips- Tip #15 - How will you add print functionality using Javascript in Asp.net ?


bPrint.Attributes("onclick") = "javascript.window.print();";


www.codecollege.NET

What are the Differences between TRUNCATE and Delete ?



































Sno

TRUNCATE


DELETE

1

TRUNCATE is faster

Comparitively
slower.
2

Removes all rows from a table

Can remove specific rows with
Where clause
3

Can not be Rolled back.

Can be.
4

Is DDL
Command.


Is DML Command.

5

Resets identity of the
table.

Does not.
6

Removes the data by deallocating the data pages and
logs the deallocation
.


Removes one row at a time and records an entry in
the transaction log for each deleted row
.





www.codecollege.NET

What are the differences between Primarykey and Unique key?

















Sno
Primarykey
Unique key
1
Creates Clustered index.
Creates Non-Clustered index.
2 Null values are not allowed Allows.


www.codecollege.NET

What is the use of DBCC commands?


DBCC stands for database consistency checker. We use these commands to check the consistency of
the databases



www.codecollege.NET

How can you debug failed assembly binds?


You can find failed assembly binds using Assembly Binding Log Viewer (fuslogvw.exe).



www.codecollege.NET

What is the The Difference Between Page.ClientScript.RegisterStartupScript and Page.ClientScript.RegisterClientScriptBlock ?


RegisterStartupScript method places the JavaScript at the bottom of the ASP.NET page right before the closing </form> element. The RegisterClientScriptBlock method places the JavaScript directly after the opening <form> element in the page.

RegisterClientScriptBlock will fire error if used with controls before load as it is inserted immediately after </form>, because the control would not have been loaded.




www.codecollege.NET


Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?

Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?


You can do it in 2 ways, they are:
1. Page.ClientScript.RegisterStartupScript() Method
2. Page.ClientScript.RegisterClientScriptBlock() Method

1. Page.ClientScript.RegisterStartupScript() Method
This class would be best used when you have a JavaScript function that you want to initiate when the page is loaded.

Ex:
Page.ClientScript.RegisterStartupScript(this.GetType(), "TestScript",
"function HelloWord() { alert('Hello World'); }", true);

btnTest.Attributes["onclick"] = "HelloWord()";

2. Page.ClientScript.RegisterClientScriptBlock() Method
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MethodA",
"JSCollections.js");




www.codecollege.NET


Daily Tips- Tip #14 - How will associate a clientside script with Asp.net Button server control ?

What are the use of the following comments // , /* */ ,/// ?


// = Single line comment
/* */ = Multi-line comment
/// = XML Documentation comment


www.codecollege.NET

Daily Tips- Tip #13 - How will you determine whether a startup script is already registered ?


By Calling the IsStartupScriptRegistered method you can determine whether a startup script with a given key and type pair is already registered or not.


www.codecollege.NET

Does C# support multiple-inheritance ?


No.


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books