Escolar Documentos
Profissional Documentos
Cultura Documentos
What is WCF ?
HTTP/HTTPS - http://localhost:8001/MyService
TCP - net.tcp://localhost:8002/MyService
IPC - net.pipe://localhost/MyPipe
Peer network
MSMQ - net.msmq://localhost/private/MyQueue
Service bus - sb://MyNamespace.servicebus.windows.net/
Web Service
It can be hosted in IIS.
WCF
Supported
One-way and Request- Response.
Operations
Logging
Serialization
Supported
Encoding
System.Xml.serialization namespace is
System.Runtime.Serialization namespace is use
used.
XML 1.0, MTOM(Message Transmission
XML 1.0, MTOM, Binary, Custom.
Optimization Mechanism), DIME, Custom.
Service
Types
Supported
Protocols
Security
Every WCF service needs to be hosted in a windows process called the host process. A
single host process can host multiple services, and the same service type can be hosted
in multiple host processes.
WCF services can be hosted in many ways:
IIS 5/6 Hosting
WCF services can be hosted in IIS. It is similar to hosting a ASMX web service. To host a
WCF service, you need to create a .svc file similar to this example and put it in virtual
directory of IIS:
Hide Copy Code
Instead of defining a .svc file, you can create and host the service in .config file as
below:
Hide Copy Code
<system.serviceModel>
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress = "MyService.svc" service = "WcfService.MyService"/>
<add relativeAddress = "MyOtherService.svc" service = "MyOtherService"/>
</serviceActivations>
</serviceHostingEnvironment>
<services>
<service name = "WcfService.MyService">
...
</service>
<service name = "MyOtherService">
...
</service>
</services>
</system.serviceModel>
Self Hosting
Self-hosting is the technique in which the developer is responsible for providing and
managing the lifecycle of the host process. You can host WCF service inside any
Windows process, such as a Windows Forms application, a WPF application, a Console
application, or a Windows NT Service.
You can also host your WCF service as in-proc. In-process (or in-proc) hosting is the
hosting technique where the service resides in the same process as the client. By
definition, the developer provides the host for the in-proc hosting.
Hide Copy Code
Console.ReadKey();
host.Close();
You can also specify the host factory in the config file when not using an .svc file
explicitly:
Hide Copy Code
<serviceActivations>
<add relativeAddress = "MyService.svc" service = "MyService" factory = "MyServiceFactory" />
</serviceActivations>
Note: The host factory class must derive from the ServiceHostFactory class and override
the CreateServiceHost() virtual method.
Windows Server AppFabric
AppFabric is an extension to the WAS. It is geared more toward WF services, which
require support for persistence and state management correlation. Windows Server
AppFabric adds items for managing and monitoring the services, as well as WCF and WF
configuration items, to the IIS 7 management console. Windows Server AppFabric
provides a dashboard for monitoring the running instances of WCF or WF services, and
is reminiscent of the MTS or COM+ Component Services Explorer of old. Windows Server
AppFabric provides health monitoring and custom diagnostics, as well as some
troubleshooting features for analyzing why a service call has failed.
Windows Server AppFabric also supports scripting of all the options available in the user
interface. Windows Server AppFabric offers its own events collecting system service,
which stores the events in a SQL Server database. You can provide Windows Server
AppFabric with tracing and tracking profiles at various verbosity levels.
What is Ajax?
Ajax is abbreviated as Asynchronous Javascript and XML. It is new technique used to
create better, faster and more interactive web systems or applications. Ajax uses
asynchronous data transfer between the Browser and the web server.
This technique is used to make internet faster and user friendly. It is not a programming
language.
2. What are Ajax applications?
Browser based applications and platform independent applications are used by Ajax.
3. How many types of triggers are present in update panel?
There are two types of triggers used in update panel:
ScriptManager
ScriptManagerProxy
UpdatePanel
UpdateProgress
Timer
5. What is the name of the DLL that contains Ajax control tool kit?
Ajaxcontroltoolkit.dll is the DLL used for Ajax control tool kit and it can be downloaded from
the internet. It can be added in the tool box or copied directly in the bin folder.
6. What role of #&& in querystring?
# is treated as fragment delimiter to delimit the history state and && precedes is used to
check on the information in the query string.
7. How to control the duration of an Ajax request?
AsyncPostBackTimeout property is used to control the duration of Ajax request. Deafult
value of this property is 90 seconds.
Example
Bandwidth utilization It saves memory when the data is fetched from the
same page.
More interactive
1.
2.
3.
Source code written in AJAX is easily human readable. There will be some
security issues in Ajax.
4.
Debugging is difficult
5.
6.
7.
Problem with browser back button when using AJAX enabled pages.
CROS Cross Origin Resource Sharing and it works with the HTTP web
browsers
JSONP JSON with Padding which works with the HTTP GET and on legacy
browsers
JavaScript
XMLHttpRequest
DataView control
Javascript
once
The extender controls uses a block of JavaScript code to add new and enhanced
capabilities to ASP.NET.
18. What is AJAX Control Extender Toolkit?
AJAX Control Toolkit is one of the extenders that are used to extend or add the
functionalities of the ASP.NET controls. The extenders use a block of JavaScript code to
add new and enhanced capabilities to the ASP.NET controls.
AJAX Control Extender Toolkit is a free download from site.
19. Where AJAX cannot be used?
Users cannot use AJAX if
Fiddler for IE
Script Manager helps manage the client side script of AJAX. Script Manager acts as a
mediator as AJAX depends on JavaScript. Every page that uses AJAX has a Script
Manager to enable AJAX libraries.
34. How Ajax objects can be created?
Following syntax can be used to create Ajax objects:
Var sample = New ajaxObject(path of the page)
35. What are the protocols used by Ajax?
When Ajax calls are sent through plain text and it may lead to know the
database details
Inserting scripts can also be possible and attackers can easily penetrate
into the system
Synchronous Postback
Asynchronous Postback
Component Layer
ScriptManager
ScriptManagerProxy
44. What are all the different data types that JSON supports?
JSON supports following data types:
String
Number
Boolean
Array
Object
Null
46. What is the difference between proxied and proxyless calls in AJAX?
Proxied calls are made through stub objects which can be called from PHP classes on the
JavaScript side in AJAX.
Proxyless calls are made using utility JavaScript functions like HTML_AJAX.replace() and
HTML_AJAX.append() in AJAX.
47. How many types of ready states in Ajax?
There are four ready states in Ajax:
Initialization
Request
Process
Ready
Question - From where you get reference, guide for your project work?
Answer - Mostly we get guide from our class teacher and lab assistance, however
also we have taken assistance from internet, msdn site for coding.
General
6. From where you get reference, guide for your project work?
Preliminary analysis
12. How you analyze the system requirements for your project?
Systems design
7. What is Robustness?
8. Explain any Cost Estimation Model like COCOMO and what their inputs
are.
15. SRS.
25. SQL basics like Queries, stored procedure trigger and Joins.
35. Type of JDBC drivers and what advantages JDBC have over ODBC driver.
36. Difference between servlet class, normal java class and container class.
39. Coding of simple textbox with buttons and its methods and properties?
40. How many types of inheritance available in java and how to implement
42. Protocol for file transfer over the internet and what is TCP/IP.
Development
5. Write a select query and explain the data flow regarding the table and the
form.
7. Which testing technique have you used? What is white box testing? Which
16. How does u ensure that the database does not get corrupted?
Maintenance