Tag | XML Posts

On March 10th, I’ll be presenting an ASP.NET control library for Facebook at the Phoenix ASP.NET Users Group. Among other things, we’ll be talking about how to create a Facebook application using ASP.NET, debugging aids, and the Facebook API. Along with that, Terralever will be releasing our library to the open-source community on Codeplex. (This post will be updated once we’ve done so). The library is currently in varying degrees of maturity. We’ve got about half of the FBML controls supported in ...
[Source: http://geekswithblogs.net/E... Using LoadGen 2007 to submit messages with a complex SOAP header, I had a strange issue with the standard SOAP transport. The SOAP transport has two parameters for wrapping the input file into a SOAP envelope: <Parameters> <URL>http://x/ESB.Iti... <SOAPHeader>SOAPAction: "http://microsoft.practices... <SOAPPrefixEnv>&l... ...
My motivation for this post comes from the fact that I could only find 1 blogpost related to BizTalk and DI: it was about DI using Spring.net and late binding, and it was in fact rather about SL. I'm not pretending to be an expert on the subject but a second blogpost with a little bit of background on the subject of dependency resolution in the context of BizTalk can surely make a difference... When developing O.O. components there are 2 popular patterns for organizing your objects' dependencies ...
I'm starting a new RPG project, using XNA and targetting the XBOX 360. I'll be doing the project in C# although I'm leveraging a lot of the code and work I did in VB.NET & Heroic Adventure. I got some interesting ideas from the RPG in a week page (here: www.gamedev.net/reference/a... though I won't be doing mine anywhere near that fast. I spent a few hours over the weekend doing some basic design and coding the inital data structures. So far things are going pretty smooth. ...
Overview: http://en.wikipedia.org/wik... The Process Flow described in "3-D Secure. Further Technical Information" "Submitting Transactions in the XML Direct Model with 3 D Secure Guide" and "Verified by Visa Introduction"(chapter 4) The UPG Guide for 3D Secure Transaction Delivery Technical Details: Verified by Visa's "Merchant Implementation Guide" Concerns : http://www.computing.co.uk/... Verified by Visa and MasterCard SecureCode:or, How Not to Design ...
I really like TDD (Test Driven Design) and like to push messages through the system as soon as possible. I have really enjoyed using Powershell to drive the input of XML files into file receive locations. Here are two of the simplest recipes. Repeatedly dropping the same file This will copy a single file one hundred times, each with a different numeric filename (i.e. 1.xml, 2.xml, etc...) for($i = 0; $i -le 100; $ += 1) { Copy-Item .\SampleMsg.xml C:\FileDrop\IN\msg_$i.xml if($i % 10 -eq 0) { $i ...
There are many tutorials explaining the syntax's of XPathQuery. What gets me confused sometimes is the understanding of the match and select statements of the templates. Here is a simple example. The XML file that we are going to query is: School.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="Apply.xslt"?> <School> <title>The Xpath Exercise</title> <people> <teacher> <FirstName>Henry</... <age>45</age> <description>Henry ...
I have a simple batch file that executes BTSTask ImportBindings on a previously exported binding file. There don't seem to be any errors thrown. The send / receive ports and orchestrations are created ok. The problem is that the orchestrations are not bound and the hosts are not set. When importing the same binding file through BizTalk Admin Console it goes in no problem. My colleague (thanks Brad) found the answer to this - it relates to the <Filter> node in the binding file. I think the problem ...
We just had a problem with data that is sent to SQL Server as a XML string. One of the values sent to the SQL Server is defined in the C# class as a double and interpreted as a 'DECIMAL(28, 9)' on the SQL Server. This was working so far. Just wen someone entered a quite small number (0.000013) it stopped working. The reson: 1.3E-05 is sent to the SQL Server and it can’t interprete this. It COULD be parsed on the SQL Server, although would involve some floting point madness that could mess up the ...
Suppose You have a XML File Jungle.xml. <?xml version="1.0"?> <project> <title>The Xpath project</title> <problems> <problem> <title>Initial problem</title> <description>We have to learn something about Location Path</description> <difficulty level="5">This problem should not be too hard</difficulty> </problem> <solutions> <item val="low">Buy a XSLT book</item> <item val="low">Find an XSLT website</item> ...
Many get confused over the two way databinding concept. This is usually done by implementing INotiyPropertyChanged interface.You can find many examples with INotiyPropertyChanged if you google for it. Here I am presenting a very basic example of WPF databinding to show its advantages. Create a WPF Application called "TwoWayDataBinding". You have app.xaml and Window1.xaml. Add one class called Customer to the project. The code for the class is bellow. using System; using System.Collections.Generic; ...
Routing Library resides in the System.Web.Routing Namespace of the .NET Framework 3.5, which provides us the flexibility to use URLs that has no mapping to a physical file. This means ASP.NET MVC framework provides flexible URL mapping engine and enables us to write SEO (Search Engine Optimization) friendly URLs with very little effort. No one can deny the importance of SEO, to be successful in search based marketing. What better way to analyze a business than from what customers are looking for ...
When you have the Schemas/Orchestration published as WCF Service, specifically during the development updating the metadata using the WCF Service publishing Wizard is a tedious task. Once the Service names and request-response of the service operations are finalized, you can use the Command line version of the BizTalk WCF Service publishing metadata for the updated schemas. The command line tool can be downloaded from http://go.microsoft.com/fwl... Syntax: BtsWcfServicePublishing ...
In This issue: Jim Lynn, Pencho Popadiyn, Tim Heuer, Scott Guthrie, Mike Snow, Maurice de Beijer, and Dean Chalk. Shoutouts: Tim Sneath responds to Adobe's latest salvo: Silverlight is FIZZING, Not Fizzling Walt Ritscher has Reflecting on Design #9 up, and the 'light graffiti' stuff is pretty cool :) Azret Botash reports an update on the free Silverlght datagrid from Devexpress: Free Silverlight DataGrid is Fast! If you think you're up to it, Laurence Moroney says Solve the riddle, and get a free ...
In this issue: Rob Houweling, Jonathan van de Veen, Peter Bromberg, Jeff Weber, Mike Snow, Jordan Knight, and Andrej Tozon. Shoutouts: Walt Ritscher has two Design reflections up: Reflecting on Design #7 ... dang hate to admit I remember ASCII art on wide-carriage green-bar paper :) Walt's second: Reflecting on Design #8 was just cool enough until he showed the anamorphic illusion view -- wow! I saw this on a couple other blogs, but Walt has some good info up about it: Win $5000 for best Silverlight ...
Anne Thomas Manes has an interesting post stated that SOA is dead. Despite the dramatic eye-catching writing style, she does get a little bite on the issue. "Successful SOA (i.e., application re-architecture) requires disruption to the status quo. SOA is not simply a matter of deploying new technology and building service interfaces to existing applications; it requires redesign of the application portfolio. And it requires a massive shift in the way IT operates. Does this sound familiar to you? ...
I normally do not use DataSet and prefer Objects instead generated by the ORM frameworks, but recently I had to produce a ASP.NET page that displayed a list of records from multiple DataTables. Lets look at a similar example. Lets assume we consume this DataSet which has two DataTables "Agent" and "RealEstateProperty". The task is to display, what properties belongs to which agent, in a GridView. There are different ways to accomplish this task, lets look at them one by one. Method 1: Bind DataTables ...
Article Source: http://geekswithblogs.net/m... I've been wanting to take a deeper look at the WCF LOB SDK for a while. I've read a few things about it, but you can't beat just getting stuck in and writing some code to figure out how it all works. My aims from this exercise were as follows: Start to get an understanding on how to write custom WCF Lob adapters Do something that has some relation to the real world and not just a hello world thing Identify how much further I ...
Last Thursday evening (Feb 5th), SSE sponsored a local developer bootcamp covering VS.NET 2008. We had a great turnout and a lot of great discussion and questions. If you are in the St. Louis area and interested in being invited to these bootcamps please drop me a line at kvgros@sseinc.com. First, I wanted to thank everyone on my various teams who contributed ideas for the talk. While I did do a lot of research for the event, many developers contributed some good ideas that found there way into the ...
February 10, 2009 - Guild Meeting, featuring Shawn Wildermuth When: 6:00 PM. Where: New Horizons of Minnesota (4510 West 77th Street - Edina, MN 55435) MAP Website: www.TwinCitiesDevelopersGui... Shawn Wildermuth Topic: Introducing Silverlight While Silverlight has a lot of people buzzing, many others think its just another Flash in the pan. But for web developers who are sick of fighting the browser, Silverlight represents a fresh step forward to create compelling applications on the web. In ...
The other day I was having an issue with our build server so I decided to write a script to reconfigure BizTalk on our build or development servers. My plan was to run this regularly on a scheduled basis to ensure our build servers were kept clean. I thought id write a little about this as it may be useful to others. Note the script is aimed at a single machine hosting BizTalk 2006 R2 and SQL Server. Before I started I exported the configuration of our BizTalk Group to a file and then amended the ...
In the UK I am the technical editor for the MSDN Flash. This weeks edition was a special focused on free software. I gathered together some of the best downloads based on recommendations from friends, colleagues and customers (which in case you were wondering is an overlapping group of individuals) plus a few of my personal favourites. I have tried to get something for everyone. From fairly generic utilities such as Free Download Manager and Unlocker, specialist tools such as SketchPath for XPath ...
Okay, Mr. SharePoint Architect. You've been asked to lead your developers to SharePoint glory, and you're ready to whip out your MSDN DVDs, and stand up a brand spankin'-new MOSS farm. You know the drill, too - you've done this 10 or 20 times, so it's no sweat. Right? Well, it isn't much of a sweat if the client wants a 100% vanilla, no-frills, no-customization MOSS instance. While this sounds ludicrous to you and me now, it brings me unending amusement how so many people bought SharePoint licenses ...
I just got back from a business trip and sitting there on the counter was a copy of my latest book from Wrox! This book (my 20th) is titled Professional ASP.NET 3.5 AJAX. This was a fun book and I wrote this with some great co-authors including Matt Gibbs, Dan Wahlin, and Dave Reed. Amazon says that the book will be available on February 3rd (not too far away). Here is some of the introduction I wrote for the book: ----------------------------- ASP.NET revolutionized Web application development. ...
[Source: http://geekswithblogs.net/E... If you're debugging Web service calls, you may want to capture incoming requests so you can see exactly what's reaching the service. If BizTalk's hosting the Web service, it's a simple process of adding a FILE send port filtered on the receive port name to copy all incoming messages. If this isn't an option, or if you want the full SOAP envelope together with metadata about the call, you can use a packet sniffer. Packet sniffers monitor traffic over ...
In this issue: Fabrice Marguerie, Tim Heuer, and Andrej Tozon. Shoutouts: Shawn Wildermuth is taking his Silverlight Tour to Seattle next month, and it's not too late to use a discount coupon on his site: Shameless Plug for the Silverlight Tour. Shawn has also announced a new venture: Announcing AgiliTrain!... this looks like good stuff, so if you or your organization can afford it... I think Shawn can teach it to you! Tim Sneath takes a look at some of his favorite entries in the MIX 10K contest: ...
INETA Speaker Shawn Wildermuth is coming to the Twin Cities in February to speak at the Developers Guild. I'll get the website updated ASAP, but wanted to get this out there now: “Introducing Silverlight” Abstract: While Silverlight has a lot of people buzzing, many others think its just another Flash in the pan. But for web developers who are sick of fighting the browser, Silverlight represents a fresh step forward to create compelling applications on the web. In this talk I will create an application ...
If you run automated builds using NAnt, you may or may not know about the MbUnit Task you can add to NAnt. MbUnit has pretty good directions for how to do get their task setup. I've been out to their site a couple of times trying to remember the exact details of the mbunit NAnt task. Dru put the thought into my head, why not make the concept of running the tests a more generic and universal item so that you can just drop a couple of files into a project and be done? I thought about this for awhile ...
Last year I had the pleasure of receiving a copy of the book Entity Framework Tutorial by Joydip Kanjilal from Packt Publishing and I recently got the time to read it so I thought I'd share my impressions on it. I have to confess to having great expectations from the book: it was from Packt, the publishers of the excellent Programming Windows Workflow Foundation by K Scott Allen and it was on Entity Framework, a topic which I had been meaning to read up on for a while. Like the WF book, EF Tutorial ...
I was troubleshooting some performance issues today when I found out about this property: ServicePoint.ConnectionLimit I am currently working on a multi-threaded windows application that uses HttpWebRequest to communicate with external web resources. By default, .NET sets this connection limit to 2. Which means there are only 2 threads available for connecting to an external web resource. As a result, when I throttled my app with more than 2 threads, this setting became a performance bottle neck. ...
Unity is a great Dependency Injection/Inversion of Control Framework, but every now and then I forget the format for configuring it inside an app.confg file. Here is a typical example of Unity usage. I have defined a rather simplistic IDataManager interface and created a bunch of different implementations of it. FakeDataManager - this really just throws errors and allows me to test my system against an unreliable database backend. It has a default contructor (IDataManager manager = new FakeDataManager();) ...
Updated the post with the XML File I had used. I posted this article originally in March 2006 when the ASP.NET 2.0 TreeView had just been released. This article has received tremendous response (35000 views for this particular post) and also many recommendations / suggestions / corrections as comments. The script then supported checking/unchecking of children/parents when selecting/deselecting a particular node. However, in cases of having multiple children and de-selecting one of them, the parent ...
One of my goals for the new year was to post something here at least once a week. Well, I blew that already, didn’t I. About a year and a half ago, my team identified some low-hanging fruit in our applications where we would benefit from a Dependency Injection container, mostly as a Service Locator. We decided to use Spring.NET, and while we got some benefit from it – namely that we were able to decouple a lot of our classes and introduce some better abstractions, I think we made a couple of typical ...
This is a step by step instruction on how to dynamically generate MS Word 2007 documents. Background on Word 2007 Document Internals Word 2007 document is based on the Office Open XML file formats. As you will see, the Office Open XML file formats are based on standard ZIP file technology. Each top-level file is saved as a ZIP archive, which means you will be able to open a Word document just as you would any other ZIP file and look inside. Note that the 2007 Microsoft Office system applications ...
As I wrote in my first blog entry, I've been selected for round 2 of the "dare to dream different" challenge. My idea involves a lot of internet connectivity and I needed a way to make HTTP requests from my .NET framework device (I'm stil waiting for the real device, but the emulator is great to test network connectivity). I found a very good sample on Elze Kool's blog and I used it as a starting point for my own HTTP request class. It's a simple class that allows you to send a request to any HTTP ...
Download DataBindingAndWebService - 26.41 KB Introduction Its good practice to design the interface to a web service by applying the same standards that would normally be applied to an XML Schema. It should be versioned, extensible and be well structured allowing for good reuse. Background Within a Web Service all the messages are described using an XML Schema (XSD), so it makes sense to design our interface in terms of an XML Schema, and then embed this into our web service. Liquid XML Studio is ...
I am a big fan of using XML comments in code and actually have a few Visual Studio macros which allow me to “inherit” the documentation from an overridden member. Every once in a while, I end up pulling in a comment with a filterpriority XML tag. This tag is very prevalent in the BCL but I have never been able to find documentation on what it actually means. To see what I mean, let’s take a look at part of the definition for System.Object. In the XML comments, you will see that the class itself has ...
I recently had put a DTD parser together, there are a few open source ones out there but only for perl, java and C++, and our target platform is C#, so I had to start over. I initially thought the parser would be pretty straight forward, until I hit upon a little jem in the DTD standard that allows for text substitution. This puts a whole new complexion on the problem, because the DTD standard can define substitutions (defined using the ENTITY tag), it can take a number of parses to determine a documents ...
I have been playing with both the iHttpHandler and iHttpAsyncHandler lately, and I came across some interesting information. There are a couple of blog posts out there explaining when to use one over the other (see Mads Kristensen's post here, or Vlad Hrybok's post here) So when does it make sense to use Async? Consensus seems to be that it makes sense to use the iHttpAsyncHandler for long running operations, so while it probably doesn't make sense to use an iHttpAsyncHandler for say, loading images, ...
We've been doing some work with FpML (Financial Products Markup Language) which is an XML standard for describing trades between investment banks, swaps, futures etc. Its a complicated standard in the form of an XSD (XML Schema). So producing XML that is valid against the FpML schema is not entirely straight forward. The best approach we found was to prototype the XML messages by hand before writing the code that would do this automatically from our front office system. This was reasonably straight ...
Christmas day was when I had a chance to review the final release of DotNetNuke 5 which was announced Christmas Eve. I quickly reviewed what I wrote about in my chapters for the new DotNetNuke 5 book and realized I had to add more and delete some information as well. I quickly shot off an email to the Wrox editor and begin to update my chapters. The first was What's NewUnder Admin/What's New, you'll find a new setting which gives you a summary of the major features for this DotNetNuke release. You ...
Article Source: http://geekswithblogs.net/m... I've recently been looking at a proof of concept of implementing the resequencer pattern in BizTalk 2009. When I've implemented this pattern in the past it usually required a lot of custom development to create a database to support the resequencing process. If you would like to see more on the theory of the resequencer pattern then refer to the following link: http://www.eaipatterns.com/... I've seen a few .net and BizTalk ...
So I thought, ahead of new year, I should just prove end-to-end the components of the GPSd service. What better way than to plot our current position on a map. Using a converted version of the GPSd client, that we talked about previously, I parse the NMEA data coming from the GPS and produce an XML file of the following - <?xml version="1.0" encoding="utf-8" ?> <movingmap> <latitude>51.267</... <longitude>-1.108<... <bearing>182</bear... ...
Our company has a pretty wide mix of systems Windows mostly VB & .Net and Solaris Java & C++. Standards without standards. Our company’s standard for interoperability is web services, however that’s more or less where standardisation stopped. The protocols and general design of the web services is down to the individual teams. On the whole the java guys produce XML schemas for there messages, then use this to generate web service stubs using various toolkits, the .Net guys tend to just create ...
The BDC is a great first effort by Microsoft, but there are some items (including the documentation) that needs work. As I mentioned in another post on the BDC, Sahil Malik does a terrific job on getting you started running BDC Application Definitions. It's true that tools like the BDC Metaman and Microsoft's BDC Definition Editor can help, but there simply is no replacement for understanding, as Sahil describes it, "The XML goo" in an Application Definition. I highly recommend you get comfortable ...
I've just spent that last week building a translator, allowing us to convert a new customers catalogue data into a form our sales system can cope with. Luckily the source data was XML, so it was already in a form I could use, but there was no schema, and the structure was a bit flaky in places. I started off trying to read through the data, but the structure was just to messy, in the end I figured out I could probably do most of the grunt work with XPath. This approach seemed promising, and I got ...
Article Source: http://geekswithblogs.net/m... Versioning is one of the more difficult aspects of a BizTalk project mainly because of the ability to deploy side by side versions of the components within a BizTalk application and the fact that often a BizTalk project would require long running processes making it more difficult to do deployments. There are a couple of useful resources available on this area: In his article Versioning and Re-Deploying BizTalk Server 2006 Applications Richard ...
A while back I discussed the approach we use on some projects to configuration management and how we solve the problem of configuring binding and configuration (and any other) files for different environments. I had originally written the linked article on my blog. While it was fairly successful the main project I've been working on has a number of BizTalk projects within it and I felt that the configuration dictionary approach we were using was becoming a bit of a pain as the XML dictionaries were ...
We had a very useful brown bag session with the BizTalk Product Team this week and went through some of the new developer improvements. Fortunately not much of this was under NDA so I thought id share some of what I learnt and my thoughts on this. Ill just keep this in the simple format below: BizTalk Project Files are now MsBuild A new BizTalk project file is basically an extension of a C# project file. It looks very similar to a normal MsBuild based project file see the Picture below. From this ...
How can you use the word efficient memory usage and mention in the same headline .NET? We all know that C++ is much more efficient with regards to memory consumption. Yes I agree that if you really love your memory you should think twice if .NET is the right choice for you. There have been reasons why Windows Vista has not a single managed executable executed while starting up. Ok the Event Viewer is managed which explains why it is starting so slow. First of all you need to know what things cost. ...