Tag | XML Posts

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. ...
Sadly, our web server here at work is still running ASP.NET 1.1. Sigh. This hasn't been a problem for me, but this latest project requires a lot of work that we've done in newer versions. Also, I'm growing soft and using the improvements often. As a result, here's a list of improvements I really miss now that I'm having to work in 1.1 again: Code Snippets. I was working on a class to decrypt our query strings, and all of a sudden my snippets are completely missing! Not really, they just didn't exist ...
(Blondie - Picture This) This post has nothing todo with the title, but just thought it was funny... Last week, I began writing an AJAX calendar control within Visual Studio. This is how far I got: However, I had an interesting problem. I resumed my laptop from Hibernate (I was not in a hot bag situation that day). I was staying in a hotel using a standard WIFI connection provided by the hotel. Clicking a button on my calendar control caused an AJAX event to pull back data. However because I was ...
[Source: http://geekswithblogs.net/E... The latest release of the OpenXML SDK (v2.0 September 2008 CTP) comes with the DocumentReflector tool which can load an OpenXML document and reverse engineer the code for generating that document with the SDK. It's very handy but there's an issue with it when you have a Word document with content parts that contain XML. In this scenario, DocumentReflector will build the XML content for the part like this: public static void GenerateCustomXmlPart1(Open... ...
Just posted about reading XML via LINQ. Now, this post is about the opposite direction - emitting XML from a collection. The simplicity of LINQ provides a straightforward interaction with XML makes LINQ to XML for me one of the easiest and most natural ways to interact with XML. The following emits a collection of objects out to an XElement (which can be streamed elsewhere as required. 35 Customer[] customers = new Customer[]{ 36 new Customer{ 37 firstName="john", lastName="lennon"}, 38 new Customer{ ...
How to Customize theme code for MYTHEME theme. It is only necessary if you want to create another one like MYTHEME theme. Here are the instructions of creating Custom Theme with MYTHEME standard. How to: Customize Themes You can add new themes or customize existing ones for application to Web sites in Microsoft Windows SharePoint Services 3.0. This programming task shows how to customize an existing theme. To create and customize from an existing theme Copy one of the theme folders in Local_Drive:\Program ...
I came across a requirement where we needed to create types dynamically based on XML Configuration files, so that in the furture new types are required we dont need to update the application again by creating a new class. The additional requirement was to populate the property names of the class based on the Cml configuration and its values using the Querystring values from the HttpWebRequest. I earlier thought about using Dynamic methods from .NET Framework 2.0, but that did not fit my purpose since ...
We’ve been experimenting with calling ASMX web services from orchestrations without having to add a web reference (for the SOAP adapter) or use the generated items (for the R2 WCF adapter). The idea, in short, is to achieve increased decoupling between systems even in a web service scenario - Generally when you add a reference to a service in BizTalk 2006 or in R2 (although there are some clear differences between the implementation) the schemas for the request and response types are generated for ...
I have been working on a BizTalk project for a while now and after a bumpy start all has been going well. The current message that we are dealing with is the receipt and processing of a Purchase Order. The processing and mapping of the purchase order to the SAP orders schema went well and all I need to do was to receive the document from the customer. After a bit of a delay in getting an accurate sample message, I set to work on creating a process for receiving a PO from a Ponton server. On examining ...
Normal 0 false false false EN-GB 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:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ...
For my recent Launcher project, I was constructing a ribbon that would allow the user to search the web via their engines installed in Internet Explorer. The engines themselves are an XML document following the OpenSearch schema. For firefox, these xml documents just get stored locally. What does IE do with theirs? Well, IE sticks them in the registry. Why? Maybe someone else can answer that. Here's a brief look at how to get the search engines out of the registry. The following snippets of code ...
I want to show you one of the simplest way to parse xml feeds that you want to grab from the site offering this functionality. For this we need only a DataSet, that will store the parsed data in his tables. So try for example the following code and you'll see what the dataset contains after execution: DataSet ds = new DataSet(); ds.ReadXml("http://weather.... XmlReadMode.Auto); And, what do you think? That's all you have to do! Pretty simple, yah ...
Recently I had to deal with some XML supplied to a development group that wasn't the greatest in structure. For one, there was inconsistent use of namespaces and each repeating element had the namespace duplicated. The goal was to retrieve from the XML various element values for a business object. So, using LINQ to XML, there's some pretty neat ways to go about this. The most succinct that I came up with is below - of course it could be tiny bit more succinct in terms of not using locally scoped ...
I often get asked by other developers at work or during presentations about various tools that I use. Most of the tools I use are relatively well known, but I'm going to create this post so that I have a single point where you can download everything without a bunch of Googling. Almost all of the tools on this list are free. My only disclaimer is that this is simply my personal list of the tools I use most often. If you're looking for a *real* list that is extremely comprehensive, then I recommended ...
Here's the complete list of sessions from PDC and my personal favorites. You can find all the recordings of these sessions at www.microsoftpdc.com. Here's my personal favorites: Windows Azure (Hosted ASP, Workflow, Silverlight, RAW / Azure Storage) A Lap Around Windows Azure (ES16) - 0:46 Slides | WMV-HQ | WMV | Zune A Lap Around the Azure Services Platform (BB01) - 1:12 Slides | WMV-HQ | WMV | Zune Live and Mesh (Sync, Feeds, Resources, Contacts, etc.) A Lap around the Live Framework and Mesh Services ...
I'll give a sample in TSQL: Here is the TSQL statement for getting a Case object that was Xml serialized: DECLARE @xmlCase XML SET @xmlCase = ' <case xsi="<a href=">http://www.w3.org... <id>3b98cf5a-6faa-dd1... <court> <id>00000000-0000-000... <courtregionid>000000... </court> <createdon>2008-11-07... ...
When you are writing automated tests for your application, it is important that the tests do not rely on the file system or external services. The only problem is that when you write applications using WCF, you are writing code that relies on external services. It is very tempting to create service references in your test DLL and test against them, but please refrain. There is a better way, I promise! This series will focus on testing every part of your application -- including round-trip functional ...
In a recent post, Deepak describes how to generate enums using Linq to Sql and SqlMetal. 1. Generate dbml using SqlMetal. 2. Find reference columns in the dbml that will be used as enums in code. Change their type to the enum name. 3. Generate code using SqlMetal. I find this pretty interesting, but there would need to be some kind of conventions or configuration to denote which tables will be used as enumerations in the code. I think the way to tackle this is to create a custom msbuild task that ...
I started developing a new BizTalk application today which must call an existing web service. Unfortunately I didn't have access to the web service from my test environment so I had to create a test stub. The web service method I needed accepted a string and returned an object containing an int and a bool. My first step was to examine the wsdl of the existing web service to get a good idea of the type my stub should be returning. Because the input / output parameters were simple it was only ten minutes ...
I have a biztalk map which uses a custom XSLT file rather than the graphical mapper. This map makes use of methods held in a custom dll, accessing via a custom extension XML file. I created this map a while ago, came back to it today (on a new vm) and found that I was unable to run a successful test - right click the btm in solution explorer and hit 'test map'. On trying this I was presented with a lengthy error message - the important bit being: Value cannot be null. Parameter name: extension My ...
Had to configure a send port today to post an XML message to a website secured over HTTPS. The send was failing, with the following being written to the even log: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." This got me thinking that we must be missing the public key for the site but I was able to browse to it from Internet Explorer and could confirm that the key could be found in the expected certificates stores on the client (my) ...
Thursday during the keynote at PubCon in Las Vegas Microsoft announced “Project Silk Road” which is a collection of services, including a new version of the Live Search APIs for developer community – basically Search API 2.0 Beta + Search Ads pilot. I can tell you all from firsthand experience that this is very slick! As one of the first implementations of the Live Search API 2.0 Beta , we got it up and running on GeeksWithBlogs.net very quickly and couldn’t be happier with the results. Search API ...
Topic: Migrating a Data Aware WPF Application to Silverlight 2.0 Presenter: Mike Benkovich, Microsoft Date: 11/18/2008 Time: 12pm - 2 pm Website: http://www.ilmservice.com/s... Abstract: One of the great things about WPF and Silverlight is that they’re both built on top of XAML and with Silverlight 2.0 you can leverage the latest data manipulation capabilities of LINQ. In this session we’ll take a look at a basic WPF application that pulls data from a web service. We will explore VB.NET’s ...
Today I found that in BizTalk, there is a maximum limit for the number of characters that can be sent in an XML element. The limit is 50,000,000 chars.
Notes on Resolving Connectivity Issues During the first stage of the Integration project a number of challenges were encountered. Some of these obstacles could have been avoided but we chose to resolve them so that we would have a solid solution for further development. Challenges Encountered · Server 500 error when posting messages to customer with a static port configuration and document that worked for other customers. · Ponton responds with an ‘Internal Storage’ Error. · The dynamic port fails ...
I'm working on a task to get a sql rows as xml using sqlCommand.ExecuteXmlReader and transform them using XsltCompiled transform. The sqlCommand is calling a stored procedure that returns a select statement with FOR XML AUTO,ELEMENTS. The ExecuteXmlReader returns a XmlNodeList which can be fed to the XSLTCompiledTransform but does not produced the desired output. Here is an example from the AdventureWorks database select top 10 ProductID,[Name],[ProductNu... from [AdventureWorks].[Productio... ...
Recently I've begun programming a new game I'm trying to keep under wraps a bit, although most close friends know what it's about already. Although the game is quite new I'm already excited about the code. In PongRPG, every sprite you see is positioned in code, there are lines that load each sprite personally and set them based on values in the code. So, if I wanted to change the position of some item on the pause menu, I'd have to go into the code, track down that line, and change the value. Not ...
Windows Azure was announced on PDC 2008 (Oct 27) and will hopefully be released mid next year. You probably already know about Azure by this time. If no, I would like to quote some from www.azure.com as intro: The Azure Services Platform is an internet-scale cloud computing and services platform hosted in Microsoft data centers. The Azure Services Platform provides a range of functionality to build applications that span from consumer web to enterprise scenarios and includes a cloud operating system ...
[Source: http://geekswithblogs.net/E... To make good on a rash comment around the lack of standards-enforcement for BizTalk, I've put together a set of FxCop rules which allow you to run static analysis over BizTalk solutions. It covers all aspects by running rules against compiled artifact assemblies and configured BizTalk applications. It's on CodePlex here: BizTalkCop. The first release(1.0) contains a full ruleset for validating BizTalk application artifact names, based on Scott Colestock's ...
I haven’t had the chance to update lately (by lately I mean this week really) because my grandfather has passed away. He was a great guy and I loved him. I just hope that he’s happier now than he was for his last few days on earth. That was the bad news, but he was a great guy and I am better for knowing him. The good news is that I’m really motivated to get some new series under way. The underlying idea when I made WTFNext was that I’ve seen so many tutorials that I’ve felt were incomplete or could ...
Hey guys, Here we are, and I’m taking the time to finish up my first series at my new host geekswithblogs! For this part of the series we’ll be taking a look at a practical example of an XML snippet, namely the snippet to create snippets. I’ve created my own version, but if you’ve toyed with XML snippets before you would know that Microsoft has already included a snippet snippet. This is a good alternative to the “Hard” way described in Part 1, but what if you want a little more of a custom feel ...
I recently opened a ticket with Microsoft due to a connectivity issue with a customer. The problem was ultimatly resolved by turning off the message chunking feature in the HTTP adapter configuration. It turns out that HTTP chunking is a HTTP 1.1 version feature and our customers servers still use HTTP 1.0. While trying to resolve this issue the Microsoft technician asked me to add some XML to the BizTalk configuration file. The XML turns on the .Net Tracing feature that is built into the System.Net, ...
I thought I would share the sessions at the PDC I really enjoyed and would recommend for viewing for those that didn't attend. And you know who you are. :) And those who did attend but didn't get to watch these. I'm sure there are more that were great, but these are the ones that stuck out to me. Deep Dive: Dynamic Languages in Microsoft .NET Jim Hugunin gives a great session on Dynamic Languages. This was the best talk I went to the entire PDC so I'm listing it first, but you should watch The Future ...
Today I encountered a new error at work which is: “Unable to load workflow actions from the server. Please contact your server administrator.” This occurred when I opened a SharePoint site in Microsoft Office SharePoint Designer, and then tried to add a Workflow. Apparently, if one makes a mistake when deploying his/her custom activities, no workflows work. The solution to this is to find the error in Visual Studio and then restart the IIS and try over again. Most probably, the error is in the new ...
David Silverlight is the mastermind behind SEVERAL sites. To name a few: www.community-credit.com www.xmlpitstop.com (this is one I heard about recently) www.stupidcubicle.com www.nonprofitways.com David Silverlight is a geek which regards to programming and xml and yes, if you were wondering: Silverlight was named after him. David himself writes about this on his blog [see here]. In short... Bill and David met for some drinks and a chat. They talked about things in general and then started to talk ...
Tutorial: Deploying an Activity to Office SharePoint Designer I had a really difficult time to deploy my first activity to Office SharePoint Designer, because I didn't find a complete tutorial of how to do it, so I figured out that I should do a proper one and share it with you all. Please read :-) 1. Save and successfully build the activity in Visual Studio 2. Sign the Assembly: · Right click the solution node in the Solution Explorer · Select Properties · Click the tab named: Signing · Check the ...

Note: The Wireless network at the keynote failed miserably, so this will be posted with a delay.

Scott Guthrie about tools and app development

 New APIs for multitouch and other Windows 7 API.

Note: Lots of attention put in Win32 development with C++.

Read the rest of this entry »

A blog that provides details but not a solution which compiles and installs is not very helpful as there is just too much going on and assumptions about the knowledge of the reader are impossible to make! I have tried to follow many step by step tutorials and had the final product fail because of missing steps or my understanding of the steps! If you add this solution, you must activate the feature stapler at the site collection level prior to creating a new site. If you create a new site collection ...
ONET.XML Part 4 is the real difference in the site definition we are creating and those offered in many books and blogs. Except for the methodology I am presenting, I haven’t really offered anything new! Today we will start to deviate. The ONET.xml file is fairly simple when you get to using it a few times! The ONET.XML file I am proposing is very simple and not much in it except for some OOTB xml and the only thing that will change in this instance is adding all the features we have created and ...
List Definitions Using SharePoint Solutions Generator 2008 1. Start SharePoint Solutions Generator a. Create List Definition b. The two custom lists are Internal Contact (Custom list) and Tasks (Custom View) c. Hit defaults’ to finish d. VS 2008 Solutions Generator will provide a link to the generated solution 2. Create two Feature folders in the WSPBuilder Solution a. Tasks b. InternalContacts 3. Copy the two folders created by the Solutions Generator into these folders 4. Notice the custom view ...
For the last 1 1/2 years I have browsed and used content from hundreds of blogs that I have researched in the performance of my position as a SharePoint developer. I have needed to do this as SharePoint 2007 has many books which have shallow dives into the API only a few offer insights into “Best Practices” and the best way to accomplish SharePoint customizations. This blog entry is some pay back for all those bloggers whom I have used to ensure successful engagements. In the last 16 months I have ...
Ray Ozzie, chief architect at Microsoft, opened the keynote. Here are my random notes: Ray thanked everyone for coming to the event and stressed how important we all are in Microsoft's success. He then stressed his work as an ISV in the past and how he also sat in the audience like we are today. PDC is about Microsoft's take on the revolutions happening in the world. It is about combining the best aspects of combining software along with the best aspects of services. Tomorrow Ray will talk on stage ...

Note: The Wireless network at the keynote failed miserably, so this will be posted with a delay.

Ray Ozzie talks about the future of software and Microsoft's take on new software foundations. Mobile platforms increasling important. New software and activation codes for new services will be made available.

Read the rest of this entry »

The files that appear in the solution explorer automatically when you create a new Sequential Workflow Library are: · Feature xml (DeploymentFiles\FeatureFiles) : o This xml file is used to put together a workflow as a feature, in order for it to be deployed into SharePoint. When creating the project, this file is almost blank. · Workflow.xml (DeploymentFiles\FeatureFiles) : o This workflow xml file is the final piece the developer needs to deploy workflow to SharePoint. At the beginning, this file ...
[Source: http://geekswithblogs.net/E... At the SBUG meeting last week, my session on "ESB Guidance: A Real-World Implementation" was meant to end with a demonstration, but we ran out of time - and in any case what I'd intended to show was probably a bit ambitious, with plenty of this-is-bound-to-go-wrong points. But I've spent some time making it more solid and the code is available now on MSDN Code Gallery: ESB Guidance 1.0 Demonstration: TriathlonResults, if you want to have a look. You'll ...
Here are the things that caught my attention in today's MSDN briefing: A. Silverlight 2.0 1. You can use IsolatedStorageFile and IsolatedStorageSettings for storing data on the client machine, but they can be disabled by users, so this case must be treated appropriately 2. Xaml power toys http://karlshifflett.wordpr... , it is a VS 2008 SP1 addin that provide powerful code generating tools on context menus for Silverlight and WPF xaml developing 3. You can access HTML DOM Silverlight, ...
Exciting half day training on Silverlight 2 Data Access. About 10 seats left for this event. Sing up now! Posted on 8/26/2008 2:10:31 PM Day of Silverlight 2.0 - Data Access - with John Papa Friday, October 24, 2008 While Silverlight empowers developers to use their .NET and XAML skills to develop Rich Internet Applications, it also can be used to build data driven Silverlight applications that communicate with multi-tier architectures. This session will demonstrate how to build Silverlight 2 applications ...
Previously I wrote about Problems after Installing VS 2008 side-by-side with VS 2005 and that Visual studio conversion wizard opens each time for converted 2008 solution. There were a few Web Application Projects that failed to convert without any reason. The Upgrade file was just like this: <?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/... <UpgradeLog> <Event ErrorLevel="3" Project="TSA.Testing.Assemb... Source="main\TSA\Testing\TS... ...
Here we are at part two of the Custom Code Snippet Series. In the previous part we covered how to make your own snippet by creating an XML .snippet file and adding to it the necessary content to get a custom snippet up and running. This time around, we’re going to cover the “Easy” method of creating custom code snippets: through a GUI. Thankfully, the MSDN itself has a Code Snippet Editor for both Visual Basic 2005 and 2008 available at the following links. This tutorial will make use of the Visual ...