Monday, September 24, 2012
'Search String' all table
Tuesday, June 15, 2010
How can we create Proxy for the WCF Service?
We can create proxy using the tool svcutil.exe after creating the service.
We can use the following command at command line.
svcutil.exe *.wsdl *.xsd /language:C# /out:SampleProxy.cs /config:app.config
Saturday, June 12, 2010
What are the types of contract available in WCF?
a)Service Contract:Describes what operations the client can perform.
b)Operation Contract : defines the method inside Interface of Service.
c)Data Contract:Defines what data types are passed
WCF data contracts provide a mapping function between .NET CLR types that are defined in code and XML Schemas Definitions defined by the W3C organization (www.w3c.org/) that are used for communication outside
the service.
d)Message Contract:Defines wheather a service can interact directly with messages
Message contracts describe the structure of SOAP messages sent to and from a service and enable you to inspect and control most of the details in the SOAP header and body. Whereas data contracts enable interoperability through the XML Schema Definition (XSD) standard, message contracts enable you to interoperate with any system that communicates through SOAP. Using message contracts gives you complete control over the SOAP message sent to and from a service by providing access to the SOAP headers and bodies directly. This allows use of simple or complex types to define the exact content of the SOAP parts.
Saturday, June 5, 2010
WCF Implementation Details
WCF Implementation Details
--------------------------------------
=> SOA Architecture Basics
=> Web services Basics
=> WCF Basics (SOAP, WSDL, UDDI)
=> WCF Features
=> WCF Basic Terminology
1) ABCs of WCF( address , binding , contract)
address -> HTTP,TCP,Peer network,IPC (Inter-Process Communication over named pipes),MSMQ
binding -> BasicHttpBinding,WsHttpBinding,NetTcpBinding,NetNamedPipesBinding,NetMsmqBindingcontract->Service contracts,Data contracts,Fault contracts,Message contracts, Operations
hosting
--------
Self-hosting,IIS Server,WAS (Windows Activation Service) Server.
2) Service Contracts and Operation Contracts
3) Data Contracts
4) Messag Contracts
5) WCF Layers ( Service Model, Messaging)
6) WCF Programming Model
7) Endpoint
8) WCF Architecture
(a)Contracts- Data contract,Message Contract, Service Contract,Policy and binding
b)Service runtime-Error behavior,metadata behavior,transaction behavior,TCP Channel
c)Messaging- WS Security Channel,HTTP Channel,TCP Channel
d)Activation and hosting - Windows Activation Service, .EXE,Windows service, COM+
9) Host Architecture ( IIS hosting, Self-hosting, WAS hosting)
10) Instance Management -> Per call -> Per session(Allowed, required, NotAllowed), -> Singleton
11) Service Throttling
=> WCF Simple Examples:
1) New -> Project -> WCF Service Application
2) New -> Project -> Class Library -> add reference - > System.ServiceModel
3) New -> Project -> WCF -> WCF Service Library
4) New -> Web site -> WCF Service
=> WCF Adavanced Examples:
1) Sessions
2) Using Data Sets and Database Connectivity
3) Transactions
4) Handling Complex data types
5) Security (Confidentiality ,Integrity,Authentication,Authorization)
5.1) Transaport level -> Using X509 Certificates
5.2) Message Security - > Using X509 Certificates
5.3) Message Security - > UserName and Password (ASP.NET Membership)
5.4) Message Security - > UserName and Password (Custom)
X 5.5) Message Security - > Issued Token
6) Input Data Validation
7) Ordering Input Parameters
8) Method Overloading using "Name" attribute
9) Interoperability (Consuming WCF Service with Java Client)
10) Tracing & Logging
=> N-Tier application with WCF and DataSets in Visual Studio 2008
=> Interoperability with dotnet client on another machine with Certificate security
=> WSSF
Sunday, May 30, 2010
Advantage and disadvantage of LINQ?
Adv.
Allow the developers to query data without having to write data store specific code.
It helps in Memory Collection query easily.
DisAdv.:
One disadvantage I see is that it adds another layer of code, and my understanding is that it has slower performance than using stored procedures and ADO.Net. It also seems that debugging could be a challenge, especially for more complex queries, and that these might end up being moved to a stored proc anyway.
Sunday, May 23, 2010
What is three major points in WCF?
We Should remember ABC.
Address --- Specifies the location of the service which will be like http://Myserver/MyService.Clients will use this location to communicate with our service.
Binding --- Specifies how the two paries will communicate in term of transport and encoding and protocols
Contract --- Specifies the interface between client and the server.It's a simple interface with some attribute.