Tag | XML Posts

Ran into a slightly problematic issue today: I was working on an SSRS report project which had been pulled down from source control. The project contains several reports, each of which contains a number of embedded images. I was tasked with developing a number of new reports, each of which had to follow the same styling. All well and good so far, but I quickly realised that the source image files had not also been committed to version control; the images existed only within the XML of the report ...
With Twitter becoming more and more popular, I have always wanted to explore its developer wiki and find out ways to post to Twitter programmatically. While there are a tons of third party tools such as TweetDeck etc., that allow you to tweet right from your desktop, I was looking for a resource that allows me to update my Twitter status from ASP.NET. I stumbled upon this video http://www.pluralsight.com/... for read/write ...
Having had my brush with SharePoint and its intricacies, and after learning that its original iteration was classic ASP flavored with Javascript and XML, I became intrigued about re-usable web components and how I could go about creating my own. I decided not to bother with .NET, as this was just a little experiment designed to get me into coding-for-fun once again. I decided to go classic ASP with a sprinkling of Javascript and XML and a whole lot of XSLT. My project was a webpart-enabled web portal ...
Incorporating the jQuery Grid With ASP.NET MVC Scenario: You have an ASP.NET MVC application and don't want to custom build smart controls like the ASP.NET GridView, ListView, etc, that support sorting and paging, as well as filtering and searching for data, and all of this using Ajax. Solution: The jQuery Grid plug-in. What tools/plug-ins do I need? jQuery version 1.3 and up jqGrid version 3 and up (this post references version 3.4.4) A strong cup of coffee In the past you had to also add the jQuery ...
Yep, it's been an entire week of SlickEdit 2009 here at my desk. The only time I opened version 7 was to compare a macro. And, I've not had to change a macro for 4 workdays. Things I've had to learn: Stop backspacing over things you want to remove... word left and nuke to end of line avoids whatever the template editing is doing. Jumping to a bookmark no longer takes an enter key. Ctrl-J followed by the number or name and you're there Make friends with the file open tab and the search tab. I actually ...
Normal 0 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} ...
I got some feedback a while ago asking for some advice on how we test flat file schemas and have eventually got around to writing this post. The aim of testing schemas which have been created to represent a flat file (positional or delimited) is to be able to test the schema in isolation to ensure that it can be used to parse and assemble a message correctly. The reason testing the schema in isolation is important is that it allows you to ensure it works before the schema is used within BizTalk where ...
Topic-based information is the way to convey information because answers to issues need to be concise, portable, and relevant. The trouble is that many companies have a lot of information already stored in old documentation formats. User guides are becoming rare; and they should, because the effort and cost involved in creating a user guide is too great compared to the number of users who need comprehensive information. Quick Start guides are replacing user guides and the comprehensive information ...
I was writing an extension for my blog that uses the MetaWeblog API, so here is what I have learnt about it. It uses XML RPC for communication. So if you are coding in .NET you will need the xml-rpc library from CookComputing. XML-RPC Firstly an Introduction to XML RPC over here (I would recommend reading the whole series posted there) so that you may get an idea of 1. XML RPC Types 2. Request 3. Response 4. Errors (a.k.a. Faults) Using CookComputing XML-RPC.Net The following link shows you how to ...
Resumen MSMQ is a component of Windows 2000, Windows XP, Windows Server 2003, and will be included in Windows Vista and future server versions of Windows. It allows cooperating applications to send and receive messages to each other—even if the intended recipient application is not running, or the computer on which the sender or recipient application is running is disconnected from the network. Messages are stored and forwarded by MSMQ until they reach the destination queue. A recipient application ...
Recently I have been doing some work on an older system using ADODB recordsets. Every now and then we still have to support these old systems. I wanted to create an open recordset in code on the .NET side to pass to the older system, but ADODB really wants an open database connection in order to open a recordset. My first obvious attempt was to create the recordset object, then create the field objects and add them to the recordset. I could create the recordset this way, but I couldn't open it, and ...
The scenario: A web app is using the OutputCacheAttribute to set a cache duration for data that has different life spans. The IDE: ASP.NET MVC with Visual Studio 2008 The environment: Web-App on IIS The data that is being retrieved varies greatly in terms of their lifespan: Some data is very static like States, Countries Other data is more fluid, especially during end-user testing, like the load of scripts that have to be fixed occasionally and pushed to production during the day. Especially early ...
Firebug adds a global variable named "console" to all web pages loaded in Firefox. This object contains many methods that allow you to write to the Firebug console to expose information that is flowing through your scripts. console.log(object[, object, ...]) Writes a message to the console. You may pass as many arguments as you'd like, and they will be joined together in a space-delimited line. The first argument to log may be a string containing printf-like string substitution patterns. For example: ...
Many organizations are faced with the threat of data theft, from which legal battles, hefty fines and negative publicity can arise. Interestingly enough stealing data is not always that difficult. In this post we will review certain aspects of data masking, a technique used to disguise personable and sensitive information. Data masking encompasses two key areas: in-flight and at-rest. In-flight data masking is different than encryption; the goal of this technique is to temporarily transform data ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
As the technical editor for the UK MSDN Flash I get surprisingly free rein to decide what content to place in it . I suspect one day they will notice – but I will enjoy it while it lasts. Every 3 months or so I do a special edition of the Flash, and this week I chose to go with “Open Source Frameworks and Libraries”. I have written before on Microsoft and Open Source and the rosy future I see ahead and I decided it was time (long overdue?) to give some of the great OSS for .NET developers wider visibility. ...
It has been exciting lately to work on a new project. Doxygen.NET is a wrapper for Doxygen’s documentation XML files. It allows you to access your documentation in a nice and flexible way. Imagine being able to access your documentation like this: Docs docs = new Docs(Server.MapPath("~/docs... (Class c in docs.GetNamespaceByName("Ra... { Label nameLabel = new Label(); Label descriptionLabel = new Label(); nameLabel.Text = c.Name; descriptionLabel.Text = c.Description; ...
I was working on a XML parser that we had written some time back. We used Microsoft's SAX (Simple API's for XML) for parsing the xml. Here is a very useful and elaborate SAX tutorial. All was working fine until a few XML files with Chinese characters showed up. Well, basically the program revolved around: --> Parse the input xml --> do something with the parsed data --> and create an output xml The ouput XML, of course, depended on the data we parsed in step 2. The problem was that when ...
The following will make your builds (running on a TFS Server) execute your unit tests after the build: Open your build file (eg TFSBuild.proj). VS2008 has a nice xml editor for this. Search for the RunTest node and change it from: <RunTest>false</Ru... to: <RunTest>true</Run... Look for a section that starts with: <ItemGroup> <!-- TEST ARGUMENTS ... and add nodes within this (after the comments and before the closing of the ItemGroup node) - one entry for each ...
Microsoft ETL developers used to the old DTS and stored procedure way of ETL should take note. DTS is dead. You must move on and utilize SSIS and/or .NET to survive. And those .NET developers that would discount SSIS as crap. I am sorry to inform you that SSIS is not going away. SSIS leverages Microsoft's SQL bulk loader. And it is an order of magnitude faster than a stored procedure insert or dynamic SQL. SSIS is entirely based on .NET technology. And if you can wrap you head around the object model, ...
How often you should search for the various information? Most likely it occurs every day. It is important, that an information search problem not trivial. Also the information can is in various sources - in files, in e-mail messages, in documents etc. Not the secret, that most part of an information is in a network - local and global. Windows Search which allows to search easily and conveniently on the basis of indexes has been developed in Windows Vista. In Windows 7 a theme of search has found ...
[Source: http://geekswithblogs.net/E... Often in BizTalk deployments you need to do additional work after installation. Typically your full install process may need to: Install BizTalk artifact assemblies to the GAC Install application dependencies to the GAC Register an application source name in the registry, for logging to the Event Log Create FILE send or receive locations on the local filesystem Add application store configuration settings to Enterprise Single Sign-On (SSO) Add log4net ...
Having posted on the SQL Adapter to select data from a SQL Server database, I realised (too late as it happens!) that I had missed one approach. This approach is to use the Strongly-Typed Procedures option from the Adapter UI. You can see you get to choose from the same list of stored procedures, but this time you get additional schemas generated. The approach I took was the same as used for the untyped stored procedure, so taking a file in, transforming using a String Concatenate functoid, calling ...
Downloads Microsoft BizTalk Adapter for SQL Server http://www.microsoft.com/do... BizTalk Adapter Pack 2.0 http://www.microsoft.com/do... Installing and Configuring Microsoft BizTalk Adapters for Enterprise Applications http://www.microsoft.com/do... BizTalk ...
I solved a problem identical to the description of this problem with SQL SERVER and you can see my post here; and I’ll share the solution for oracle below. After you have configured the Oracle data source (and worked your way through the errors) and the data source appears in the library - the problem cannot be solved with the configuration tools in SPD. Go to the ‘_catalogs/fpdatasources’ folder in the folder list panel of SPD. Find the XML file that corresponds to the data source in error as it ...
I started having a think about how you could make BizTalk Server 2009 RESTful as I had been asked to give it some thought. Whilst thinking about it and wondering how I could let any subscription know the message it was subscribing to was supposed to be GET, DELETE, PUT or whatever I started creating some basic plumbing to give me something to test. To this end I started taking a look at the new WCF SQL Adapter in the BizTalk Adapter Pack 2.0. This new adapter is built using the WCF LOB Adapter SDK ...
NDepend is one of the best code analysis tools out there for determining code quality! It does so with some advanced metrics and I can say I still don't understand all of it, but we take advantage of the areas we do understand! It will help point you to possible problems with code during code reviews and it has some nice images to help visualize what's going on in your code. You can even hook it up to CruiseControl.NET (CC.NET) and see reports for NDepend per build. We are going to talk about how ...
Introduction The WinPHP challenge is running towards it’s closing time. Only a few days before entering I came with the idea to enter the contest. I had to put a lot of my spare time into it, but it was worth it. I learned a lot from exploring the realm of php. It’s fun to work in a language I normally do not work in. And to find ways to implement some thoughts that have been on my mind for a while. Here’s the story about the what, the where and the how of BlogSnor, my entry for the WinPHP challenge. ...
[Source: http://geekswithblogs.net/E... In a recent project we had a requirement for a configurable cache, residing on a BizTalk host and storing responses from WCF services which the BizTalk app had brokered. Producing this as a generic cache adapter was the preferred option, but project timescales didn't allow for it – instead I've written the adapter as an open source component which is available on CodePlex: BizTalkCacheAdapter, and which we're now making use of in the project. It's ...
First, for all of the MS SQL Server database purists out there that will complain vehemently against this method of extraction/formatting because of the special characters (SEE: http://www.webmonkey.com/re... that may (will likely) surface and need to be escaped, or that there's a better way to do this such as utilizing the XML Schema Collection/XML Explicit features available with SQL Server, etc. -- I recognize your concern, however, you'll have to admit, this is still (low-tech/mid-90's ...
We recently went through a Great Plains upgrade to v. 10. After the database was setup, I wanted a script I could run on the clients that would pretty much automate the setup. What I came up with doesn't completely automate the process, but it does greatly simplify it. ***************************... net use B: \\servername\Groups\GPData\... RD "C:\Program Files\Microsoft Dynamics\GP" /S /Q B:\OfficeWebComponents\owc1... B:\Client\setup.exe ...
Authentication and authorization plays a key role in the web world. Going distributed makes information sharing healthier. But only if it's allowed for the know contact it will be healthy. We can very well see this in the existing web world. We have the memberships and roles for ASP.Net web applications. In addition we also have forms authentication and NTLM authentication. Going smart client is always best. But considering security it has to be more secure since smart clients attract all the people ...
I am just starting to work with LINQ to XML and tried to find child document similar to the following: xml.Element("client/child"); But it throw exception System.Xml.XmlException: The '/' character, hexadecimal value 0x2F, cannot be included in a name. The reason is that LINQ to XML doesn't directly support XPAth Fortunately there are extensions, that allow to use XPath for XElement search/selection. using System.Xml.XPath; and then var clients = xml.XPathSelectElements ( "client/child" ); Consider, ...
I'm currently preparing to deliver Microsoft Course 2934A - Deploying and Managing Business Process and Integration Solutions Using Microsoft BizTalk Server 2006. So far, I've been impressed with the content, it's well structured and I think the topic selection has been good. One benefit of delivering a course is that you're bound to run through every lab before-hand, there's nothing worse that the trainer getting stuck on a lab! This is turn encourages reading on a topic that you may otherwise skip, ...
Decidí comenzar (y no serán raros los posts sobre programación) hablando de LINQ, que es un tema al que le había sacado la vuelta durante mucho tiempo porque me parecía algo complicado y no había visto la funcionalidad y valor agregado que nos ofrece a los desarrolladores. LINQ (Language Integrated Query) ofrece una especie de abstracción respecto a la fuente de datos de la que se obtiene la información y proporciona una estructura sintáctica consistente (similar al SQL) que se puede utilizar para ...
UppercuT comes with ConfigBuilder. What is ConfigBuilder? ConfigBuilder will build a configuration file per environment so you no longer have to maintain a bunch of configuration files. In any project you have app.config (or web.config) files. You just create a .template file next to it. The web.config has a file next to it named web.config.template. What do you name the app.config template files? You have to name the file based on what app.config becomes when visual studio builds the application. ...
Windows 7 includes a lot of improvements in the Windows Explorer. Most of them are fairly obvious, but the new preview pane is likely to go unnoticed (or passed over as the same as Vista’s preview pane) by a lot of people. The new preview pane supports a much wider range of formats than the Windows XP and Windows Vista preview pane did, including the ability to preview HTML, text files, XML files, images, videos, music, and WordPad files without any additional software installed. If you have Microsoft ...
I'm writing here an example about how to read XMLs that contains hierarchichal data, not only with one level of child nodes. So, I'm about to threat this problem here. First, I'll define a sample XML hierarchy. The XML contains a list of Headers, each one containing a list of Details. Now, let's create some simple model classes. Now, to read the XML data into this hierarchy of objects, I'm gonna create one method for each level of the hierarchy (GetHeaders - will return all the Headers, GetDetails(header) ...
And I don't mean the Diet Coke of Evil (only one calorie, not evil enough). I spent most of today finding out the most stupid of things. All I wanted to do was to create a blasted <img /> tag that had its source attribute set dynamically by XSLT. Seems pretty run-of-the-mill, eh? Here's the XSLT (I've even replaced the xpath with hard-wired text to simplify the scenario): <xsl:stylesheet version="1.0" extension-element-prefixes=... exclude-result-prefixes="msxsl js dl" xmlns:xsl="http://www.w3.or... ...
Uhh What? DevPath is an environment variable that allows you specify global directories which are searched just like GAC. If you ever had the urge to load dlls from your application from subdirectories you need a probing element in your app.config which allows exactly that. The only problem with that is that you cannot escape from your application root directory. When you try to load something from ..\Centralbin it is ignored. In that cases you need to use the GAC if you like it or not. Since DevPath ...
Windows and the Windows Explorer have had search capabilities for a long time and they have gradually improved over the years. The one thing that was always lacking was an ability to search different contexts (or remote sources). There were some improvements with the Windows Desktop search, but I think the federated search capability in Windows 7 really gets it right. Federated search in Windows 7 introduces support to search different remote data stores using OpenSearch technologies and allows you ...
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 ...
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 ...
I tried my first attempt at running an application in user mode yesterday and learned a couple of things. You can find both of these things in the documentation, but who actually reads the docs? If you want to test out an application in user mode, but don’t feel like going through creating and copying the xml file to the proper folder, there is a way around this. I copied the exe file into the “T” users Documents folder (anywhere else would work to). Then I clicked on the “Enter User Mode” shortcut ...
After months of development I finally got around to packaging up my app for deployment in user mode on the Surface. I did run into a couple of minor hurdles at first which I will share with you, and tell you how I got around them. First of all, check out the documentation on the Microsoft Surface community site and the SDK. In your root app directory you will see a file like myapp.xml which is generated by visual studio for you. The following code example shows the default XML file. <?xml version="1.0" ...
Concurrent Convoys with Time Outs In my last project, I came across a situation when order of convoy messages could not be guaranteed. This simply implied that we should be using Concurrent convoys; problem solved, only until we stepped onto our next requirement to have timeouts implemented in case of all three (in our case) messages didn’t arrive in time. Now this turned out to be a show stopper for the reasons given below: 1. Concurrent convoy implementation in BizTalk does not give any opportunity ...
I’m a big fan of PlayOn form MediaMall Technologies which is an application that allows you to view videos from popular sites like Hulu, CBS and Netflix on your Xbox 360, Playstation 3 or DLNA-compliant television or set-top-box. I’m also a big fan of Channel9, the “official” unofficial source for developer information from Microsoft. In a recent release, MediaMall implemented a PlugIn API for PlayOn that allows a developer to add new media sources to the PlayOn menu. Developers have already added ...
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 have been a professional computer programmer for almost 30 years. My main areas of expertise are in database applications and programming tools. Lately, I've also spent quite a lot of time in the specific field of reporting, which also includes some work on building data warehouses. My current programming language of choice is C#.Net. Although I have a full-time day job, I've been taking on part-time consulting work. I generally have about ten hours per week available, which works well for small ...
Normal 0 false false false EN-US JA X-NONE MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} Robert ...