.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> WCF >> Post New Question Subscribe to Interview Questions

Which format is used When sending and retrieving a DataSet from an XML Web service?

Posted By :nishithraj     Posted Date :December 28, 2009    Points :10   Category :WCF 
DiffGram format

You can also find related Interview Question to Which format is used When sending and retrieving a DataSet from an XML Web service?  below: 

What is typed dataset in C#?

A typed dataset is similar to a dataset with only difference is that the sehema is already present in typed dataset. so if any mismatch in the column will generate compile time errors rather than runtime error as in the case of normal dataset. Also accessing the column value is much easier than the normal dataset as the column definition will be available in the schema. (More...)

What happens when we issue Dataset.ReadXml command?

Reads XML schema and data into the DataSet. (More...)

What is the difference between Data Reader & Dataset?

Data Reader is connected datasource, read only, forward only record set.

Dataset is disconnected datatsource resides in memory database that can store multiple tables, relations and constraints; (More...)

Where is window Service Entries located in the system

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services (More...)

Difference between Dataset and Datareader?

Data Set is a connectionless service and Data reader is a connection oriented service. Dataset is used to store the data, it contains collections of Datatable. Datareader is used to connect to the database for retrieving data.
Data Reader - Forward only where as Dataset - Can loop through dataset.
Data Reader - Connected Recordset where as DataSet - Disconnected Recordset
Data Reader - Less Memory Occupying where as DataSet - It occupies more memory
Data Reader - Only Single Table can be used where as Dataset - Datatable Concept allows data to be stored in multiple tables.
Data Reader - Read only where as DataSet - Can add/update/delete using the dataset
Data Reader - No relationship can be maintained where as DataSet - Relationship can be maintained.
Data Reader - No Xml Storage available where as DataSet - Can be stored as XML.
The Dataset is a core of disconnected architecture. Disconnected architecture means once you have retrieved the data from the database the data source is dropped. The disconnected data become very commonly. The dataset for the disconnected data from the Dataset object. The DataReader is a readonly, forward only stream from the database. While using the datareader can improve the application performance reduces the system overhead because only one buffer row at a time in memory.

Shashi Ray (More...)

What is the Transport Protocol you use to call a Web Service ?

SOAP (Simple Object Access Protocol) is the preferred protocol. (More...)

What is SQL Server Service broker?

Service Broker is a unique feature in Microsoft SQL Server 2005 which is used to by internal or external processes to send and receive guaranteed, asynchronous messages by using extensions to Transact-SQL Data Manipulation Language (DML).

It's a platform for building a new class of loosely coupled services for database applications. Service Broker not only brings asynchronous, queued messaging to database applications but significantly expands the state of the art for reliable messaging.

The key components of SQL Server Service broker are
.Queue stores the messages for a particular service.
.Dialog is a conversation between two services.
.Conversation group is a group of related conversations. Every conversation belongs to exactly one conversation group.
.Activation specifies a stored procedure that will handle messages destined for a particular service. (More...)

What are the essential components of SQL Server Service broker?

Service Broker uses queues to provide loose coupling between the message sender and the message receiver. The sender can put a message in a queue and then continue on with the application, relying on Service Broker to ensure that the message reaches its destination. Queues permit a lot of scheduling flexibility.

Dialogs are bidirectional streams of messages between two endpoints. All messages in a dialog are ordered, and dialog messages are always delivered in the order they are sent. The order is maintained across transactions, across input threads, across output threads, and across crashes and restarts.

Conversation Groups
It's a way of grouping all the dialogs that are used for a particular task. All the dialogs associated with processing a particular order would be grouped into a single conversation group. The conversation group is implemented as a conversation group identifier, which is included with all messages in all dialogs contained in the conversation group. When a message is received from any of the dialogs in a conversation group, the conversation group is locked with a lock that is held by the receiving transaction. For the duration of the transaction, only the thread that holds the lock can receive messages from any of the dialogs in the conversation group. This makes our order entry application much easier to write because even though we use many threads for scalability, any particular order is only processed on one thread at a time. This means we don't have to make our application resilient to problems that are caused by the simultaneous processing of a single order on multiple threads.

You use the activation feature of Service Broker to specify a stored procedure that will handle messages destined for a particular service. When messages arrive for a service, Service Broker checks whether there is a stored procedure running that can process the messages. If there isn't a running message-processing stored procedure, Service Broker starts one. The stored procedure then processes messages until the queue is empty, after which it terminates. Moreover, if Service Broker determines that messages are arriving faster than the stored procedure can process them, it starts additional instances of the stored procedure until enough are running to keep up with the incoming messages (or until the configured maximum number is reached). This ensures that the right number of resources for processing incoming messages are always available. (More...)

How can we check that some changes have been made to dataset since it was loaded?


The changes made to the dataset can be tracked using the GetChanges and HasChanges methods.
The GetChanges returns dataset which are changed since it was loaded or since Acceptchanges was executed.

The HasChanges property indicates if any changes were made to the dataset since it was loaded or if acceptchanges method was executed.

The RejectChanges can be used to revert thee changes made to the dataset since it was loaded


Can a .NET web application consume Java web service?

Yes Offcourse.Actually Webservices are independent to language. it depends on WSDL and SOAP. so any one can develope the Webservices anddisclose the wsdl and users can consume the webservices.wsdl and soap both are xml based.. and all languages having xml parsing
capability and access to http protocol will be able to work with Webservices. (More...)

How do you invoke a web method of web service in AJAX?

In order to use a webmethod of a webservice, we need to add the reference of webservice in the section of ScriptManager. Under services you have to configure the servicepath.

< asp:ScriptManager ID="ScriptManager1" runat="server">
< Services>
< asp:ServiceReference Path="..\service1.asmx" />
< /Services>
< /asp:ScriptManager>

Inside JAvascript Use methods of this service directly like
service1.methodname() (More...)

You are working with a DataSet and want to be able to display data, sorted different ways. How do you do so?

Select the correct answer.

1. Use the Sort method on the DataTable object.
2. Use the DataSet object's Sort method.
3. Use a DataView object for each sort.
4. Create a DataTable for each sort, using the DataTable object's Copy method, and then Sort the result

Correct Answer is :
3. Use a DataView object for each sort. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend