Tag | wcf Posts

Article source: http://geekswithblogs.net/m... When we are testing our BizTalk solution one of the biggest challenges is how we deal with the dependency on external systems. Some of the common scenarios I have come across are as follows: We will be integrating with some web services but there are no test instances of these services we can use We will integrate with a LOB application but there is either no test instance of the LOB system of using the LOB application will make it difficult ...
In this Issue: SmartyP, Andrea Boschin, Mike Taulty(2), Tim Heuer, Shawn Wildermuth(2), Jordan Knight, Steve Strong, Ashish Shetty, and Kevin Dockx. It was a busy weekend, beginning with Friday, so SC's been pretty quiet. Lucikly everyone else has been as well, so the list isn't overly long today :) From SilverlightCream.com: Create Circular Rotating Text in Expression Blend SmartyP has an artle up on Alex Knight's site... he's demonstrating wrapping text around a button this time... and a very nice-looking ...
I recently had the good fortune to attend a free Microsoft event on BizTalk Server RFID. I’ve had a little play with BizTalk Server RFID in the past but one thing I hadn’t realised was that when you create a process it actually creates a WCF service and publishes it to IIS. RFID Admin IIS Manager Note the hosting.svc file and the process.svc files. Over the next few days I hope to have a closer look at these and see what they expose and what you can do with them. Overall I find this quite cool but ...
I recently worked on a project where I had to develop a web service to perform single sign on (SSO) with the Salesforce.com platform. The motivation behind this was that the customer wished to ensure that their security mechanism was enforced. In a fairly typical scenario the user would sign on to the customer system and click a link that took them to Salesforce.com which would recognise the username as an SSO user and redirect to a customer web service for authentication. As the customer made heavy ...
I dealt with an interesting, if arcane, issue today at a client's site. The client is in the process of deploying an early version of a BizTalk application to their test environment for the first time. The test environment is hosted by another company, and BizTalk Server 2006 R2 had been installed and configured by that company. They are using the 64 bit version on Windows 2003 R2 with SP2. The BizTalk application publishes a WCF endpoint, hosted in IIS6. The hosting company has quite correctly created ...
Up to now I haven't explained what my mobile test application does. The main thing I wanted to test was calling a WCF service. If you use .NET CF 3.5 WCF will be available in your application to make the call but you can also call the service as "web service" (asmx) (1) Calling the service as ASMX In you Smart Device Application project just do "Add Web Reference", enter the url of the service (no "mex" part but with final /, like this: http://server:port/Design_T... ...
When we use LINQ To SQL in C#, the compiler doesn't generate IL to implement our query - we want Sql Server to execute the query, and so IL would not be much good. Instead the compiler creates data that describes our query, in the form of a System.Linq.Expressions.Exp... When the query needs to be executed, LINQ To SQL examines the expression and converts it to the equivalent T-SQL, and sends that to the database for execution. It follows, then, that if we want to use LINQ To SQL in F#, we'd ...
I might have to develop an application for a mobile scanning device and I have been playing around with the .NET mobile components in preparation. Not easy at all: the documentation is not very clear and there are lots of different components/versions. Here are some of the problems I encountered and how I solved them. My constraints: a) My development environment is Windows Vista + VS 2008 Team System. b) The device will probably be Datalogic Memor which runs Windows CE 5.0. This means I need to ...
To use LINQ To SQL, we need a Data Context object to provide our point of entry. It might be possible to use a System.Data.Linq.DataContext object directly, but its more usual to derive from this class to make a database specific version. Additionally, we need classes to represent our "entities". These define the mapping to the tables (or views) and columns. We could code all this up by hand, but Visual Studio 2008 comes with the grandly named Object Relational Designer that makes short work of this. ...
[Update: This blog post was orignally posted in early 2008, in another blog. Things have changed a little in F#, and Ted Nedward has provided updated information related to this, showing how to create data contracts in F#] On the road to a really interesting Web Service, I increased the complexity of my "could-not-be-simpler" web service one notch, and added a class-typed argument to the operation. This requires constructing of a Data Contract, so that WCF can build the correct WSDL, and also know ...
(in dutch as the target audience is dutch speaking!) Ik geef twee seminars over mijn favoriete .NET technologien (WCF en WF) voor SyntraWest SyntraWest IT CLUB for Developers/Architects Seminars 26 mei 09, Windows Communication Foundation Deep Dive 10 Scenarios om een WCF Service aan te spreken. WCF is een zeer breed toepasbaar platform voor distributed applications en services te implementeren. In deze demo georienteerde sessie worden 10 uiteenlopende scenarios besproken waar bij een clientapplicatie ...
I had half an hour to fill while I waited for a large download, on my slow connection. I'd thought about re-implementing my C# WCF test host in F#. It didn't look too complex, and indeed it wasn't: #light #I @"C:\Program Files\Reference Assemblies\Microsoft\Framew... #r "System.ServiceModel.dll" #r "Server.dll" open System open System.ServiceModel open System.Diagnostics open Coyote.FSWCFTest let services = [ (typeof<TestWebService>, "http://localhost:8080/Test... ] let ...
For all the power and flexibility that WCF provides, creating a basic web service in C# is easy enough. Essentially, it's just a POCO adorned with some special attributes. Doing the same thing in F#, then, should also be easy enough. I tried this: #light #I @"C:\Program Files\Reference Assemblies\Microsoft\Framew... #r "System.ServiceModel.dll" open System.ServiceModel [<ServiceContract(Config... = "TestWebService", Namespace = "http://coyote-software.com... [<ServiceBehavior(Instan... ...
I previously said that C#’s lambda functions were not curried, and it wasn’t possible to partially apply them. However, it’s usually possible to manually curry functions, if you need to. Here is an example: static void Main(string[] args) { int t = f(1)(3)(5)(7); Console.WriteLine("{0}", t); var g = f(1); var h = g(3); var i = h(5); int j = i(7); Console.WriteLine("{0}", j); } static Func<int, Func<int, Func<int, int>>> f(int a) { return (b => c => d => (a + b + c + d)); ...
In this Issue: Alex Knight, Radenko Zec, Peter Bromberg, Page Brooks, Pete Blois, and Frank La Vigne(2). From SilverlightCream.com: Getting the most out of the Vector tools in Expression Design. Alex Knight posted this on Twitter just as I was getting ready to fire off this 'Cream post ... another great Design post from him... this one out in Expression Design and working with Vectors... great :) Integrating silverlight 3 polling duplex with unity container Radenko Zec has a sample chat application ...

Next Tuesday (May 5), I will be presenting WCF 3.5 REST Services at CMAP.  Details here: http://www.cmap-online.org/Meetings/Details/2009-05-05.aspx .

This has probably been covered in some tutorial videos or "silverlight 3 what's new"s, but due to the fact that I spent the better half of an hour googling about ways to do it, I guess also posting it here for reference won't hurt. Problem: when calling a WCF service from Silverlight 2, if the service throws an exception, in Silverlight you get a CommunicationException with some mumbo-jumbo in it, not the actual exception or Fault declared on the service. Fix: in Silverlight 3 there is built-in support ...
The WorkflowRuntime class has a host of interesting methods and useful events. Events such as Completed, Perssited, Idled are invaluable when debugging and in understanding how a workflow instance is behaving. These events are easily accessible when self hosting the runtime since you can just hook up event handlers for these events and react to these events as you see fit. But, when the workflow runtime is hosted in IIS/WAS/Cassini host, you don’t have a direct handle to the runtime for hooking up ...
In this Issue: Al Pascual, Eric Mork, Martin Duffy, Boyan Mihaylov, Andrew Marshall, Tim Greenfield, James Bacon, Page Brooks, Jesse Liberty, and Rob Houweling. Shoutouts: Shawn Wildermuth has had some good articles up on DSL and Oslo. If this is in your area of interest, check out Part 3 of My DSL for Developers Article is Live! Chad Campbell lists his essential Twitter accounts: Silverlight - 7 Twitter Accounts I Follow (and have found valuable) -- thanks for the shoutout, Chad! Bob Thomson at ...
I needed a quick way to cache some data for a feature I’m currently working on. The scenario is that the user should be able to type ahead and be presented with a list of matching options (AJAX auto complete). This data is coming from an external web service and is exposed via the core API of the application which in turn is exposed over WCF. So for AJAX to be able to get to this data it must talk to the WCF service, but this is not directly possible since cross site scripting is not allowed in the ...
Tomorrow after work, I'm driving to Richmond to speak at the Richmond Code Camp. In the past, I didn't plan out which sessions I would attend. Instead, I just floated to whatever seemed interesting. This time, I'm taking the steps to get the most out of the conference. Here's my schedule. 8:00 - 8:45am - Auditorium - Welcome And Keynote I'm not a morning guy, particularly after driving 6 hours. However, I'll try to be on time to catch the keynote. 8:45 - 10:00am - Speakers Lounge - Preparation Before ...
When we started WCFing in my current project, the first challenge that we had was to get the WCF Services to impersonate the callers, I had burned a lot of mid night oil trying to figure out the right configuration that would make this happen. Till that time I had not gone through the WCF Security Guidance on CodePlex. The Guidance turned out to be quite helpful and very comprehensive. If you have not gone though that yet, I strongly recommend going to CodePlex and reading it right away. For those ...
If you’ve read parts 1, 2 and indeed 3 you’ll know we’ve covered the CRD of CRUD, today we will cover the ‘U’ – updates! Updates are more complex than the other scenario’s we’ve covered so far, but not unmanageable. Also – in fairness this is a very simple update, more complex updates will require more thought (duh!) but this should be a good starting point. Let’s get to it! We’ll start on familiar ground – updating the interface, adding an ‘UpdateCar’ method: [OperationContract] void UpdateCar(Car ...
[Source: http://geekswithblogs.net/E... Managing concurrency within an application boundary can be straightforward where you own the database schema and the application's data representation. By adding an incrementing lock sequence to tables and holding the current sequence in entity objects, you can implement optimistic locking at the database level without a significant performance hit. At the service level, the situation is more complicated. Even where the database schema can be extended, ...
Small gotcha today after installing the Silverlight 3 beta "suite" - runtime, visual studio 2008 tools and blend 3 preview. (side note: if you install the Silverlight 3 runtime BEFORE the visual studio 2008 tools, then the tools installation fails because it tries to reinstall the runtime... so either uninstall the runtime or don't install it at all standalone, the tools installation will take care of it) Opening an existing Silverlight 2 project triggered the conversion to SL3, which worked fine. ...
The latest release of BizTalk adapter 3.0 for mySAP Suite using WCF offers 4 operations for receiving and sending message to SAP. You can receive/send messages as IDOC (Flat file data) or Xml message. Which makes easier for deploying SAP schemas in BizTalk Mgmt DB, then the earlier version where we need to take care of the one receive pipeline to accommodate all the inbound message to BizTalk from SAP. So if you need to migrate from earlier version to the latest version of adapter is easy and it’s ...
In this Issue: Mark Monster, SilverLemma, Al Pascual, Silverlight SDK(2), Tim Heuer, Expression Blend and Design, Silverlight Web Services Team, Corey Schuman, Michael Sync, and Jesse Liberty(2). From SilverlightCream.com: Silverlight 3 and RIA Service – Creating a Proxy for Cross Domain HttpRequestsMark Monster sent me this link about the .NET RIA Service and creating proxies for Cross Domain requests... dang... are all the easy topics taken :)Creating Pie Charts with C# and Silverlight SilverLemma ...
Nothing special – just a list of good Visual Basic .NET articles I read over the last month. Enjoy: Visual Basic Lambdas are not quite the same as C# Lambdas. This article explains how to work around the differences. Visual Basic needs a hand with iterators as it has no specific syntax. Useful when you live in a world of LINQ and IEnumerable. This article shows you how to create iterators in VB. Combining XML Literals, WCF and LINQ to create temaplates. Interesting stuff. Add “Ruby like” MethodMissing ...
If you're not yet familiar on how to add a service and invoke a method, please see Getting Started The short video below shows how to create and execute a functional test case in WCFStorm. Towards the end of the video, it shows one of the main features of functional testing with WCFStorm - which is the ability to visually view the difference between the expected and actual responses in a test ...
If you’ve read parts 1 and 2 you’ll know we’ve covered the CR of CRUD, today we will cover the ‘D’ – deletions. We’ll need to update our interface to actually provide this functionality: [ServiceContract] public interface ICarsService { [OperationContract] Car GetCar(int id); [OperationContract] void SubmitCar(Car car); [OperationContract] void DeleteCar(int id); } I’ve decided to delete the car via the identifier we created initially, though there is nothing to stop us using a ‘Car’ instance. Anyhews, ...
If you're not yet familiar on how to add a service and invoke a method, please see Getting Started The video below shows the steps on how to create and run performance test cases. When a performance test case is executed, WCFStorm captures the responses and displays a graph in real-time the actual and average response times as well the rate at which the service is responding the method invocations. The following are the performance test parameters Number of agents This is the number of background ...
In this Issue: Damon Carr, Rishi(2), Mike Taulty, Jeff Prosise, Laurent Bugnion, Ruurd Boeke, and Walt Ritscher. Shoutout: Andy Beaulieu has released his latest game: Boss Launch ... go have some fun with that :) From SilverlightCream.com: Silverlight 3 Beta Player for Adobe Video Formats Damon Wilder Carr sent me this link on HD and streaming. Might be good to read some of the comments he's gotten also. nRoute: Comes complete with a full set of behavioural teeth Rishi is posting bunches of info ...
[Source: http://geekswithblogs.net/E... The WCF message formatter interfaces IClientMessageFormatter and IDispatchMessageFormatter let you intercept WCF messages on the client or service side at the point of serialization and deserialization. They're useful injection points as they give you access to the input or output parameter values of the service call, and to the incoming or outgoing WCF Message object. The formatters allow you to inspect or modify the message content or headers, using ...
In order for WCFStorm to invoke a service having a netTcp endpoint, the service must be configured to expose the WSDL via http. A sample config for the WCF service will be, In above configuration, the service is using 3 bindings. mexHttpBindings is used to expose the WSDL, while netTcpBinding and wsHttpBinding are for the actual methods calls. To test the serivice using WCFStorm, use the mexHttpBinding url to add the service. As can be seen from the log, the tool detected both the netTcpBinding and ...
EDIT : Please visit www.wcfstorm.com for th updated tutorials. This is a first in a series for post describing the tasks and the features available inWCF Storm. 1. Getting Started 2. Invoking a service having multiple endpoints. 3. How to create and run a performance test 4. How to create and execute a functional test Ok, so lets get started.... Getting Started : (Invoking a method of a WCF/Web service) Add a service. This can be done by either clicking "File --> Service --> Add" or by clicking ...
[Source: http://geekswithblogs.net/E... DataContract classes in WCF can be declared as implementing IExtensibleDataObject to provide in-built support for schema versioning. Any data contracts created through svcutil or Add Service Reference implement the interface, and it's good practice to implement it for any custom DataContract classes you write. On deserializing, elements which are not declared in the data contract are extracted by the DataContractSerializer and added to the ExtensionDataObject ...
In default configurations web applications and web services are running under the credentials of a predefined user account. For ASP.NET webapplications this is the ASPNET (or similar) account and for WCF services this is the user that started the servicehost or the user associated as logon account for the windows service hosting the services. This means access to resources is restricted by this account. This is most often a dedicated account and not related to a real user. In a good secure environment ...
I’ve known Jim Duffy for almost 6 years now, and I can honestly say he thinks he’s one of the funniest people I’ve ever met. When I first asked Jim to do a NINE Questions interview, back in September, he was delighted to have an opportunity to talk about his favorite subject. Fast-forward 7 months and welcome to the longest NINE Questions interview ever. Ladies and Gentleman, I give you Jim Duffy. 1. Where are you from? A long time ago in a galaxy far away... oh wait, that one's already been used. ...
During the last few months I've been working on a commercial tool for testing WCF services. The knowledge I learned building STORM really helped alot in building this tool. So here it is my fellow coders, WCF Storm. It has more features than its open source cousin, STORM and the best part is it works on both WCF and Web services! EDIT : www.wcfstorm.com is up! Please visit the site for updates and to purchase WCFStorm online System Requirement: .NET Framework 3.0 or higher. Features at a glance: ...
Twitter clients are fun toys, but not all that useful for me. The Google Data API, on the other hand, provides the ability to store complex calendar data in the cloud (among other things), and fits in perfectly to serve as back-end cloud storage to my application. On the other hand, my particular application needs to be flexible enough to switch cloud providers on a moments notice, so I am unable to use the .Net client library provided by Google Code. Creating an “adapter” to connect my application ...
Last week I gave this workshop/presentation for the syntrawest ITClub on Data Access with ADO.NET 3.5. You can have get a printout of the slides here. Content of the presentation : LINQ as query language LINQ to SQL LINQ to Entities (=ADO.NET Entity Framework) ENTITY SQL ADO.NET DataServices ASP.NET Dynamic Data More workshops are planned : 26/05/09: Windows Communication Foundation (WCF) - A deep dive on Security 16/06/09: Windows Workflow Foundation (WF) - A deep dive on Workflow Services september/october ...
I don't really have a break until after SharePoint Saturday D.C. Once the break occurs I am going to upgrade my VM with .Net 3.5 (finally get it to stick). Then I am going to write a WCF webservice that will pull data from profile services and search. Plus maybe some image library information for fun. I want to build a ton of controls using Silverlight as the front end and SharePoint as the back end. Check back here in about a month or so for some interesting experiments. I will probably post these ...
As BizTalk Server 2009 is due for release in the not too distant, I thought I’d take the time to run off a few more BizTalk webcasts. I’ll be starting with a basic one looking at calling WCF services from an orchestration using the Service Aggregator pattern, and then look at improving the design to make it more efficient and reliable in future webcasts. This webcast will look at implementing a service aggregator pattern to call three WCF services that will book a hotel, flight and conference for ...
Hi to all and welcome to my blog! My name is Vitaly Dilmukhametov. I’m software developer from Russia. I work with MS development technologies few years and have some pratical experience, which is based on solution of real tasks. And I want to share it with community. I focused on client development (WPF, Silverlight), service (WCF, RESTful services), parallel programming, but not just it. All of cool features are welcome :) My contacts: E-mai/Live Id: vitusmailAT NOSPAMgmail dot com If you understand ...
I was building a Silverlight 2.0 application for a Tricension client and determined that it was appropriate to utilize SSL to secure the site. In particular, to secure communications back-and-forth between the WCF services which were handling a lot of sensitive financial data. Although I had setup SSL on several sites before, I didn't realize how difficult it was to find a good reference on how to do this for WCF. After a very long day, thought I'd share how I got this to work. Of course, now that ...
Note: I just updated the title for this article, sorry to all of you who were waiting for the TechDays Belgium source code and didn't realize it was here :) I just posted the source code of the demo applications I used in my MIX09 talk "Working across the client continuum". The source code is structured as follows: Read the rest of this entry » ...
In this MIX09, WebServices, PixelShaders, OOB, and ISM Issue: Mark Monster, Silverlight Web Services Team, Shawn Wildermuth, Mike Taulty, Laurent Bugnion, Pete Brown, Mike Harsh, Joe Stegman, Brad Abrams, Andy Beaulieu, Chris Hay(2), Michael Wolf, and Jafar Husain. From SilverlightCream.com, and picks up some I missed earlier today: Silverlight 3 – WebClient, WebRequest and WCF calls using Credentials? Mark Monster has posted about credentials use with WebRequest, WebClient, or WCF call in SL3B. ...
I few months ago I took a pledge to: "I will publish a blog post on Tuesday 24th March about a woman in technology whom I admire but only if 1,000 other people will do the same." to celebrate Ada Lovelace day. That time has come! Michele Leroux Bustamante – author of a book I deem as one of the best books I’ve bought to get me into SOA and learning WCF… Without it I wouldn’t have got half as far as I have! Now – aside from the selfish reason of the fact that she has helped me with the book – I admire ...
Check out the 2009 Microsoft SOA & BPM Conference presentation on Microsoft ESB guidance 2.0, Oslo, BAM, REST with WCF, Customers case studies etc... 1. Keynotes, Lunch Sessions and Customer Case Studies 2. Technical Offerings Track 3. Best Practices Track ...