| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
95 Articles match "WCF"
See all articles with
"WCF"
| The Latest from The Problem Solver | MORE | | Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 1: public class BooksController : ApiController. 11: {. The Problem Solver - Sunday, May 12, 2013 Side by side versioning of workflow services Next I updated the return from the WCF request to show that this is an instance of workflow version 2. One of the really important new features in Windows Workflow Foundation 4.5 is the capability to version workflows and workflow instances. You get to choose what you want to do, either keep running existing instances with their original workflow definition or upgrade them to the latest workflow definition. In the previous blog post I described how to upgrade existing workflow instances to run with the last version. The basic steps Create your initial workflow definition. Enjoy! The Problem Solver - Thursday, October 11, 2012 Side by side versioning of workflow services Next I updated the return from the WCF request to show that this is an instance of workflow version 2. One of the really important new features in Windows Workflow Foundation 4.5 is the capability to version workflows and workflow instances. You get to choose what you want to do, either keep running existing instances with their original workflow definition or upgrade them to the latest workflow definition. In the previous blog post I described how to upgrade existing workflow instances to run with the last version. The basic steps Create your initial workflow definition. Enjoy! The Problem Solver - Thursday, October 11, 2012 | | The Best from The Problem Solver | MORE | | Inversion of control and WCF One of these case is with an WCF service where WCF takes care of the service lifetime and creates new objects as needed. Fortunately WCF is designed in a very modular fashion itself and allows you to replace almost everything in the box. Basically WCF uses an implementation of the IInstanceProvider to create new service objects. Using Ninject with WCF There are plenty of IOC containers to choose from but I like Ninject and that is available through NuGet so that is what I will use for this example. www.dotnetevents.nl.NET WCF VS2010 NuGetrepo = repo; }. The Problem Solver - Tuesday, April 19, 2011 Using the WCF Web API in an ASP.NET MVC application Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to add to and use the new WCF Web API a console application using NuGet. Just like in this post we can add a reference to the WCF Web API to our project. few interesting things to note here: We are using the standard WCF ServiceContract attribute to indicate this is a service. www.dotnetevents.nl.NET WCF ASP.NET VS2010 Futures NuGet RESTjust prefer the MVC approach, you might not. Just like in the post the best package to start with is the WebApi.All. The Problem Solver - Monday, June 13, 2011 WF4&WCF and message correlation In the previous blog posts, here , here and here , I demonstrated how to use WCF from WF4. One of the ugly parts of Windows Workflow Foundation 3 was the message correlation part when you used WCF to send multiple messages to the same workflow. This guid was the workflow instance ID but having to use that on the client means the client had to be very aware of the server technology used, something that goes against the principals of WCF. No longer do we need to use the “context” bindings but the standard WCF bindings will do just fine. Much better! OperationContract]. The Problem Solver - Wednesday, September 2, 2009 | - Workflow Receive activity and message correlation
With WF4 it is quite easy to use data that is part of the request message, for example an order identifier, to route multiple WCF messages to the same workflow. The final workflow looks like this± To create the workflow you need to start by creating a new WCF Workflow Service Application in Visual Studio 2010. Running the workflow Press F5 to activate the WCF Test Client. Tags: NET Workflow WCF WF4 VS2010 It is also possible to have multiple messages that can start a new workflow. In this blog post I am going to show both these concepts in a single workflow. link]. The Problem Solver - Wednesday, April 28, 2010 - Hiding the XAMLX from a workflow service
In Windows Workflow Foundation 4 it’s easy to create a workflow and expose it as a WCF service. Next we add a WCF Service named Workflow1.svc. Select the Workflow1.svc and press F5 to fire up the WCF Test Client to test the SVC worklfow. Tags: NET Workflow WCF WF4 VS2010 But one thing is that it exposes a XAMLX endpoint to each client can see the service actually implemented as a workflow service instead of a regular service. One way to hide that is to use a regular SVC file as the implementation and point that to a workflow using the WorkflowServiceHostFactory. The Problem Solver - Tuesday, May 18, 2010 - Using HTTP status codes in a REST service
Using HTTP status codes with the WCF Web API returning custom HTTP status codes with the WCF Web API is quite easy. www.dotnetevents.nl.NET WCF REST dotnetmagWhen we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. But there are far more status codes we can use. For example a database connection failed. null ). {. Enjoy! The Problem Solver - Wednesday, July 20, 2011 - Securing a Workflow Service using Windows Identity Foundation
In windows the preferred form of federated security is through Windows Identity Foundation and it is real easy to secure an ASP.NET site or WCF service using Windows Identity Foundation. As a workflow 4 service is just another WCF service securing it is just as easy as the steps below will demonstrate. Tags: NET Workflow WCF WF4 VS2010 WIF The way security is often still handled these days with each application keeping track of their own users is somewhat dated. How about securing a workflow service? No security yet and the client works as expected. try. {. try. {. Enjoy! The Problem Solver - Friday, September 24, 2010 - Using WF4 bookmarks with IWorkflowInstanceExtension
Tags: NET Workflow WCF WF4 VS2010 Beta2 The Problem Solver - Wednesday, January 27, 2010 - Flowing transaction into a workflow using WF4
Beta 2 One of the things that wasn’t possible in Windows Workflow Foundation 3 was flowing transaction over a WCF service request into a workflow. In WF4 we can use the ReceiveAndSendreply template to configure a workflow as a service and accept WCF calls. First of all we need a WCF binding that can flow transactions. Tags: NET Workflow WCF WF4 VS2010 Beta2 Note: This blog post is written using the.NET framework 4.0 We could have transactions on the client, we could have transactions on the server but they would not be able to cooperate. else. {. class Program. {. The Problem Solver - Monday, December 21, 2009 - Getting started with the WCF Web API
Warning: This post is based on a prerelease version of the WCF Web API When designing services the REST style is becoming more and more popular. The fact that WCF supports REST services isn’t new either as the WebServiceHost and WebHttpBinding where released with the.NET framework 3.5. However the original REST support in WCF was quite limited. Enter the WCF Web API The new Web API is supposed to change that and enable a lot more flexibility to create more powerful REST services using WCF. The equivalent service using the WCF Web API is very similar. The Problem Solver - Tuesday, May 31, 2011 %>
309 Articles match "WCF"
See all articles with
"WCF"
| The Latest from DevelopMentor | MORE | | Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 1: public class BooksController : ApiController. 11: {. The Problem Solver - Sunday, May 12, 2013 Why Does WCF Reject Large Messages By Default? 'If you have been working with WCF for a while you may have noticed that, by default, messages over a certain size fail to get processed. The reason for this is that WCF tries to protect the message receiver from getting swamped with messages that will consume huge amounts of memory to process. Once the binding allows messages larger than 64Kb that may not be the whole story as there are other default limits in WCF: quotas and serializer limits. Prior to WCF 4.5 However, in WCF 4.5 One final word on default endpoints introduced in WCF 4.0.If DevelopMentor Courses - Monday, April 8, 2013 | -
| The Best from DevelopMentor | MORE | - WCF Duplex Messaging
I am one of the moderators of the MSDN WCF Forum. However, the first three of these are supported natively in WCF and are known as One-way, request/response and duplex. Duplex Contracts in WCF. In WCF this idea is modelled by the contract. WSHttpBinding is the default for the built in WCF projects but it does not support duplex messaging. It will also need to supply this implementation to the WCF infrastructure and it does this by wrapping an instance in an InstanceContext object and passing it to the proxy constructor. Tags: NET;Azure;WCF .NET Meanderings - Tuesday, June 9, 2009 - WCF Instances and Threading
I have just found myself answering essentially the same question 4 times on the MSDN WCF Forum about how instances, threading and throttling interact in WCF. WCF has 3 built in instancing models: PerCall, PerSession and Single. By default WCF assumes you do not understand multithreading. Unless you turn on ASP.NET Compatibility, WCF calls are processed on IO threads in the system threadpool. You can control the throttle values using the serviceThrottling service behavior which you set in the config file or in code.NET;WCFInstancing. Concurrency. DevelopMentor Courses - Friday, February 4, 2011 - Using Silverlight to Access WIF secured WCF Services
Another technology that comes up very often is Silverlight – and especially the “story” of Silverlight and WCF/WIF. Those of you with WCF background will say: “that’s what the federation bindings in WCF are for”. In WCF you can work around that problem by adding the ValidateMustUnderstand behavior to the client stack. Tags: IdentityModel WCF This topic comes up quite often recently – so I hope the title is search engine friendly. Disclaimer: At the time of this writing, the current version of Silverlight is v3 and WIF is in beta 2. Passive. Active. WSTrust13. www.leastprivilege.com - Wednesday, October 28, 2009 - Inversion of control and WCF
One of these case is with an WCF service where WCF takes care of the service lifetime and creates new objects as needed. Fortunately WCF is designed in a very modular fashion itself and allows you to replace almost everything in the box. Basically WCF uses an implementation of the IInstanceProvider to create new service objects. Using Ninject with WCF There are plenty of IOC containers to choose from but I like Ninject and that is available through NuGet so that is what I will use for this example. www.dotnetevents.nl.NET WCF VS2010 NuGetrepo = repo; }. The Problem Solver - Tuesday, April 19, 2011 - Digging into WCF REST
Last Thursday evening I presented a talk to the Dallas.NET User Group on support in WCF 4 for building REST-ful services. Building REST-ful Services with the WCF Web Programming Model REST is defined as an architectural style for building services that embrace the principles of the web. He’ll also get down and dirty using the WCF Web Programming Model and show how WCF makes it easy to serve up POX or JSON, increasing the reach of your services to clients that don’t understand or care about SOAP. WCF 3.5 WCF 4.0 Technical WCFEnjoy. Tony and Zuzana's World - Saturday, September 10, 2011 %>
| | |