Contents tagged with WCF
-
Registering KnownType types at runtime using IsAssignableFrom()
While doing some reflection, I hit this method IsAssignableFrom(). MSDN says:
-
WCF Service Trace Viewer Part 2
Continuing from the previous part, now we’ll have a look at what happens when we call the service using WSHttpBinding. For this, I have to instantiate my LearnWcfService service passing the WSHttp binding endpoint to the constructor. The rest of the method runs the exact same instructions as before. I have also changed the instantiateData attribute in the app.config file to ClientLogWsHttp.svclog, just to keep the log files separate.
-
WCF Service Trace Viewer Part 1
I hit upon this tool SvcTraceViewer.exe and found it quite interesting. Usually located at <drive>:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools (for version .net 4.0), this tool helps you to locate an error that’s happening behind the scenes. It also gives you a better understanding of how things flow with a service.
-
WCF Data Services Toolkit to talk to any database using GetAll, GetOne, Save, Remove methods
I did a primer on using WCF Data Services in my last post. One of the things I’m seeing about the posts regarding WCF Data Services using OData is that they used Entity Framework to do the DAL work. So a lot of underlying work gets hidden by using EF. Here is a post that allows you to connect to any database using the traditional ADO.NET way.
-
Accessing data as resource through URI - WCF Data Services
Open Data Protocol (OData for short) allows CRUD operations on your data by exposing it as a resource accessible through a URI. So you can try something like below directly on the browser to get a collection of all employees less than 26 years of age.
http://somesite.com/EmployeeService.svc/Employees?$filter=Age lt 26 -
HTML5-MVC application using VS2010 SP1
This is my first attempt at creating HTML5 pages. VS 2010 allows working with HTML5 now (you just need to make a small change after installing SP1). So my Razor view is now a HTML5 page.
-
WSDL-world vs CLR-world – some differences
A change in mindset is required when switching between a typical CLR application and a web service application. There are some things in a CLR environment that just don’t add-up in a WSDL arena (and vice-versa). I’m listing some of them here. When I say WSDL-world, I’m mostly talking with respect to a WCF Service and / or a Web Service.
-
WCF – interchangeable data-contract types
In a WSDL based environment, unlike a CLR-world, we pass around the ‘state’ of an object and not the reference of an object. Well firstly, what does ‘state’ mean and does this also mean that we can send a struct where a class is expected (or vice-versa) as long as their ‘state’ is one and the same? Let’s see.
-
Hierarchy flattening of interfaces in WCF
Alright, so say I have my service contract interface as below: