Tag | wcf Posts
In this Issue: James Bacon, SmartyP, Peter Gerritsen(2), Vasanthakumar D, Peter Bromberg, and John Papa(2). Shoutout: Pete Brown elaborates on the Pixel Shader Effects available for Silverlight in the WPF effects library on Codeplex that I discussed yesterday, and shows some screenshots too: More Pixel Shader Effects for Silverlight From SilverlightCream.com: How to add Silverlight version detection to Google Analytics James Bacon shows how to add Silverlight version info to your Google Analytics ...
So far Parts I & II have not given us anything new – the code will work happily in an ASP.Net or a traditional client application. Now we get to a more interesting bit – creating our Azure Project. Before we can create an Azure Project you will eventually have to go to the Azure Website – and download the Azure tools from here; http://www.microsoft.com/az... Once you have installed these on your development PC you can now create an Azure Project. You will ...
This error ("Failed to access IIS metabase") can occur when you try to access your WCF when you have added for hosting within IIS. To solve this problem do this: Reregister ASP.NET for IIS: Open an Visual Studio Command Prompt (or a regular command prompt and cd into the .Net dir - usually: C:\WINNT\Microsoft.NET\Fram... then type: aspnet_regiis -i When complete, from the same command prompt run: iisreset Verify your IIS virtual/app dir is setup correctly (uses .Net 2). If you don't ...
Project Sourcecode: NewsMashup In Part I of this series of articles I discussed the database that lies behind the application. Moving from the backend to the client side, it is now time to discuss the code which accesses the database and returns the data to application. I have a standard class I use when accessing databases. The version I am using here is developed to connect to SQL Server but with some minor changes it would not be difficult to adapt to other databases, and I already have one for ...
Article Source: http://geekswithblogs.net/c... This article describes our approach to testing BizTalk integration with Dynamics AX 2009. It builds on the "Alternative Bindings" approach as described by Mike Stephenson. Alternative Bindings We are communicating asynchronous with Dynamics. As such, in our developer / unit test bindings, we have replaced use of the AIF Adapter with the MSMQ Adapter. If you are communicating synchronously, you could use the WCF Adapter. Mimic the Dynamics AIF ...
In this Issue: Mark Monster, Scott Davis, Colin Eberhardt, Silverlight Girl, Tim Heuer, Koen Zwikstra, Ning Zhang, and Ben Waggoner. Shoutouts: András Velvárt sent me this link via Twitter the other day... Sorry András but I'm not on Twitter much, so this is late :( ... but it's sweet! ... He has done a 'Zoomery' of all the MIX sessions! ... this is awesome... all the slide decks and videos are there! WOW!! This is going on the sidebar of WynApse for sure: mix.zoomery.com... thanks my friend! Brad ...
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 ...
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 ...
Today one of my friend got this problem when she tried to get local path of a WCF Service using Mappath. I searched in a google for a while and got a MSDN link saying, “…using HostingEnvironment plus VirtualPathExtension is the right thing to map virtual paths to physical paths. This works fine for any IIS/WAS hosted services, even for Cassini….” here : http://social.msdn.microsof... I hope it works! If somebody has a better way please ...
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 ...