Tag | XML Posts

Although current BizTalk release does not support .NET generics it does support concept of genericity at the message level. It is possible, of course, through "untyped" messages or messages that don't have specific type attached to their context. Such messages are represented as System.Xml.XmlDocument type in orchestrations. To read more on message typing aspect of BizTalk please refer to this excellent post by Charles Young. I'd like show practical examples of applying generic programming to typical ...
Problem I came across the following problem the other day. I had setup a send port to pick up messages from the messagebox. I then enlisted and started it. All good so far. To ensure this port was setup as part of the build I exported the bindings. At this point I need to mention a little about the build process for our solution. On the project we have a large number of test environments so in order to simplify the management of config settings between environments the solution contains a custom ...
Related Post: Talent vs Attitude – Harsha Bhogle Association, Aggregation, Composition object relationship What we can learn from Babies ASP.NET 2.0 Interview Questions 1. What is the name of the property of ASP.NET page that you can query to determine that a ASP.NET page is being requested not data being submitted to web server? A. FirstGet B. Initialized C. IncludesData D. IsPostBack IsPostBack 2. While creating a Web site with the help of Visual Studio 2005 on a remote computer that does not have ...
Very recently on the CLI_DEV (formerly ALTNETCONF) mailing list, Joe Ocampo asked whether the standard saying, "Code Comments are an apology for bad design" holds in regards to documenting your non-public API. I believe that question arose once before and usually a flame war erupts of some sort. I found this button sums up my feelings best! But, anyhow, it's a real valid question and believe it or not, people have quite strong opinions on the matter. With tools like Resharper and other refactoring ...
We had a requirement to generate some extract data in the form of XML. So while designing the solution, I had 2 options. 1. Use FOR XML in the Query with SQL 2005 2. Use regular SQL Queries and usign a Custom DataSet, serialize the data to XML. SQL 2005 has nice options to get the XML. You can assign name spaces to nodes, can have nested XMLs, can have custom Root and Child Xml node names. One example can be found here. http://www.wrox.com/WileyCD... But FOR XML queries are much ...
WPF is the next generation Interface Design System for Windows Forms applications. The arrival of WPF is going to change the WinForm application development a lot. The WPF has made many architectural changes to UI subsystem. Now there is a better element subsystem, notification mechanism for the changed events for the UI elements etc. What are the new features of WPF? Integration : With existing UI services like User32, WinForms, Direct3D etc. Simplified Development using XAML : Flexible UI composition ...
I have been re-awarded the MVP status for the 4th year. This year is different as I am now a SharePoint MVP where in the past I was an XML MVP. The transfer process was not as difficult as I thought it would be and I would like to thank Rafael Munoz, my previous lead, and April Spence, my new lead, for all the help when I asked to move to another designation. It wasn't a straight move like I asked and it was done, I had to go through the qualification tests again, but I knew what to expect. If you ...
Some time back I wrote an article about how to store and retrieve the user interface messages. When I say user interface messages I meant the messages we display on the screen to notify the user of some operation. These messages can be "Account has been created!", "Details have been updated" and so on. You can view the article here. One problem with the above approach was the weak typing. This means that if I had to display a login successful message I had to send the string "LoginSuccessfull" to ...
In last article we talked about WPF as a next generation UX development technology from Microsoft. We also talked about declarative programming model it provides through the use of new XML based declarative language “XAML (a.k.a Zammel)”. In this article we’ll be digging deeper in XAML by understanding its usefulness in application development and its principles by writing snippets of code. If someone is not sure of what declarative programming model is, I suggest reading this or searching on web ...
The Tampa Bay chapter of the International Association of Software Architects (IASA) is dedicated to building a community of professionals interested in topics related to software architecture. This organization welcomes all interested professionals. Whether you are a senior enterprise architect at a fortune 100 company or an aspiring architect with only a few years of experience. When: 1/31/2007 6:30 PM - 8:30 PM Topic: The Perfect Pattern Storm, where TDD meets UX and MVP As host of ARCast.TV, ...
The MSDN documentation indicates that the custom dictionary for the naming rules in the Visual Studio code analysis can be applied at the project level. I prefer a local scope for terms that don't have a scope global to all my projects (e.g. the company name is good to have global but a product name doesn't really need to be in the global dictionary). Unfortunately, it doesn't tell you all the information you need to actually use the custom dictionary. The first thing to do is create the custom dictionary ...
ASP.NET Web Services Interview Questions Which method is used to serialize an object into an XML document from Xmlserializer class? How to specify the Web Service compile with the WS-I basic profile? For SOAP (Simple Object Access Protocol) message formatting what is the purpose of Encoded value? What are the three main section of SOAP (Simple Object Access Protocol) message? What all steps are required to create an application to test your ASP.NET web services? How you can verify the result of your ...
ASP.NET Web Services Quiz Which method is used to serialize an object into an XML document from Xmlserializer class? How to specify the Web Service compile with the WS-I basic profile? For SOAP (Simple Object Access Protocol) message formatting what is the purpose of Encoded value? What are the three main section of SOAP (Simple Object Access Protocol) message? What all steps are required to create an application to test your ASP.NET web services? How you can verify the result of your ASP.NET web ...
I know I just mentioned this project yesterday, but I wanted to thank those of you who have already downloaded it. Hopefully you have found it useful so far. I have already updated the project for the 1.0.2913.51352 release, which adds a few new tasks and cleans up some of the existing ones. Here is the current list of tasks: NAnt/NAntContrib Task MSBuildContrib Task Status Description attrib Attrib Complete* Changes the file attributes of a file or set of files and directories. checksum Checksum ...
MSBuildContrib is the project for tasks and tools that aren't in MSBuild. This is similar to the NAntContrib project and will be incorporating as many of the NAnt and NAntContrib tasks as possible. There is still a long way to go, so if you are interested in helping out please let me know and I will add you to the project. Here is the list of NAnt or NAntContrib tasks that are planned and the current status: NAnt/NAntContrib Task MSBuildContrib Task Status Description codestats CodeStats Complete ...
With the recently announced AddOn Studio for World of Warcraft, an open-sources dev tool, developers building World of Warcraft add-ons can get the Visual Studio experience without requiring any version of Visual Studio to be installed or licensed. The developer environment makes use of the new free Visual Studio 2008 shell. Included in the VS2008 Shell, is the XML Editor and XSLT Debugger which earn high praises from WoW developers on http://www.wowwiki.com/HOWT... ...
How To Read XML Data into a DataSet by Using Visual C# .NET Original MSDN article: http://support.microsoft.co... public class XMLtoDataset { public static DataSet GetDatasetFromXMLString(string inString) { StringReader StringReader; XmlReader XmlReader = null; try { Console.WriteLine("Initiali... StringReader ..."); if (inString.IndexOf("<?xml version='1.0'?>") == -1) { inString = "<?xml version='1.0'?>" + inString; } //StringReader = new StringReader("<?xml version='1.0'?>" ...
By XML documents I mean predefined XML documents which has to be in certain format. Take a look at the following XML file. <Exam title="Exam 1"> <Questions> <Question text ="What is the capital of Texas?" point="10"> <Choices> <Choice text="Houston" isCorrect="false" /> <Choice text="Dallas" isCorrect="false"/> <Choice text="Austin" isCorrect="true"/> </Choices> </Question> <Question text="What is the fastest animal on earth?" point ="10"> ...
We have a web service that serves as a gateway to a remote service provider. Part of the design is a log of all interactions between our service and the remote service. We keep the log in a SQL Server table with this definition: CREATE TABLE [dbo].[Request]( [RequestId] [int] IDENTITY(1,1) NOT NULL, [TxCode] [char](2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [ResponseText] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [ResponseTime] [datetime] NULL, [CompanyId] [varchar](25) COLLATE ...
I've read and listened to Scott Hanselman sing the praises of SlickRun for a long time, but I just recently got around to using it. For those of you who are as slow to catch on as me, it is essentially just a tricked-out version of the Run window that allows you launch programs much faster than you can through the traditional hide-and-seek start menu approach. This is especially true if you are a tool addict and have a start menu that stretches across your screen. Best of all, it is FREE, which is ...
Glen Gordon will be coming to town on January 24th 2008 to host an MSDN Event titled “What’s New in IIS7 and Extending ASP.NET 2.0 Application Services” Here’s a quick overview of what he’ll be covering: • Authentication methods and integration between ASP.NET and IIS 7 • Writing IIS managed handlers and modules • How the IIS protocol listeners support hosting WCF services on TCP, Named Pipes and more • IIS handler permissions, request filtering and administration lists • How the XML replacement ...
I finally got an example working where I am using a pure XAML (no code) workflow definition and also using a base class. This took a bit of research and filling in the blanks. I was surprised that Visual Studio doesn't seem to support the XAML-only stuff... sigh. And when I got is working, the designer refused to display it, so I have to stick to the XML Editor going forwards. (I haven't checked the 3.5 fixes yet, xfingers!) First I created the workflow custom base class as a csharp class, I created ...
LINQ hands-on lab at Microsoft Switzerland Yesterday, a colleague and I attended a free LINQ hands-on lab given by Microsoft Switzerland in their offices of Wallisellen near Zurich. It was really good. I have seen LINQ in action a few times this year (actually, I had it demonstrated by no less than Anders Hejlsberg himself on one occasion, and Scott Guthrie on the other) but I had never tried writing queries myself. It was a good, 4 hours occasion to try it by myself. Needless to say, I was really ...
I came across this simple yet great way of translating a delimited string to XML using SQL 2005. http://www.sqlservercentral... /* Here is the string that we need to split */ DECLARE @str VARCHAR(100) SET @str = '0001,0002,0003,0004,0005' /* I am converting the string to an XML structure by inserting XML tags. */ DECLARE @x XML SET @x = '<i>' + REPLACE(@str, ',', '</i><i>') + '</i>' /* Now we can apply XQuery to return a resultset */ SELECT x.i.value('.', ...
Today I discovered the some configuration impacts from my choice to return the XML document as a string property. Because I am using a string property to return the XML generated by my service (see yesterday's post) I had to adjust three properties in the service and client configuration. MaxBufferSize property - (From MSDN) Gets or sets the maximum size of the buffer to use. For buffered messages this value is the same as MaxReceivedMessageSize. For streamed messages, this value is the maximum size ...
In the new paradigm of contract first designs for services a lot of it revolves around exposing a contract that defines the operations and messages for a service. In terms of Web Services (or WCF exposed via a web service) this also means exposing the schemas via the WSDL so that consumers know the inputs and outputs for that service and its methods. This is my big question: When working with NIEM how many are exposing their subset schemas to their web services and how many are using a generic "Package ...
Still working on some Spec# posts right now, but in the mean time, here's something I meant to send out a while ago. Throughout my career, many people have asked which tools I take from project to project. There have been plenty of tools that seemed cool, worked for a little bit then I moved onto something else. Being in the ALT.NET mindset, I have a wide array of tools that I will bring whether they be from Microsoft or the developer community as a whole. I'll categorize each set of tools per type. ...
The December 20th meeting of the Twin Cities XNA User Group promises to be a good one. We've got the following members presenting some projects they have been working on. Be sure to visit the website and RSVP so we know how many people to expect. Member Projects Justin Chase will show us Drop In, a 1 or 2 player game featuring a simple MinMax algorithm for AI. The object of the game is to get five pucks of your color in a row by dropping pucks into a column and by rotating the game board. Greg Wurm ...
The subtitle of this blog started out as gluing it all together. I quickly realized that when thinking in terms of a loosely coupled environment glue isn't necessarily the best tool in your tool box. I will try to post a little more in depth follow up to Querying a NIEM XML Document With LINQ as soon as I can. After some review I realized just how reusable some of the parsing methods I wrote are. Wouldn't it be nice to have a single NIEM XML parser that you could extend if you received additional ...
If you are not familiar with the new LINQ syntax in .NET 3.5 I recommend you read up on that first. Language Integrated Query (LINQ) is the new foundation for querying anything (I mean anything) in .NET and a lot of effort has been put into LINQ and XML integration. I did some research a few months back on it but it was only recently that I realized how much Microsoft put into LINQ to XML. I am a huge fan of intellisense. That is the best thing that MS ever perfected in Studio. I spend a lot of time ...
Some fun Silverlight things I didn't want to fall off my desk: Mike Ormond blogged about a series of Designer and Developer Webcasts for Silverlight and Kate Lee opens the doors on "Silverlight tutorial". From SilverlightCream.com: Silverlight Webcasts Looks like MSEvents is cooking up a big list of WebCasts for Developers and Designers alike. Unfortunately, the Designers ones started on Monday, so hopefully we can get those offline later. The Developer ones start next Monday, and there are some ...
Anyone using XML in .NET projects is probably aware of the several options available for working with XML within the .NET Framework (which I will tell you up front - I am a huge fan, nay, a cheerleader for .NET). .NET provides a full set of classes to work with XML data and XML schemas. With the release of Visual Studio 2008 and .NET 3.5 there are several new ways to work with XML using LINQ and many improvements to working with XML schemas (Intellisense support, etc). The last few projects I did ...
My name is Chris and I spend most of my days for my employer working on a myriad of projects and systems in the criminal justice arena. I work mainly in .NET (VB to be specific) but I am no longer afraid of things like C# and Java. Somewhere along the line I told someone I knew something about XML too. Most of my days are split between being a "product/project leader" for one of our mobile solutions and also as the interfaces guy. I get to spend a lot of my interface guy time lecturing about SOA, ...
What used to be called Silverlight 1.1 has been rebranded as Silverlight 2.0 and will include a cross-platform, cross-browser version of the .NET Framework and will enable a rich .NET development platform in the browser. Scott Guthrie has a post that details what will be part of the 2.0 release, but it includes: WPF UI Framework: The current Silverlight Alpha release only includes basic controls support and a managed API for UI drawing. The next public Silverlight preview will add support for the ...
Last month, Scott Guthrie announced the ASP.NET MVC framework which allows for built-in support for the Model View Controller based architecture. Since that time there has been a flurry of activity from Microsoft to demo the technology to the world and make demos readily available. In case you missed it, here are some of the features: Clean separation of concerns. All core contracts of the MVC framework are testable and mockable Highly pluggable to use NHibernate, Spring.NET, Windsor, and other great ...
I am doing some work with "SQL Server Reporting Services" at the moment. So I am updating this post with different links, which makes the post quite messy. "Report Parameters" are not visible in XML code view .It seems that they are stored in database, but not in XML definition. See also Reporting Services Report Parameters CountRows Function -Returns a count of rows within the specified scope-the dataset, grouping, or data region. The "Every Other Page Is Blank" Feature -reduce size of Body to fit ...
Introduction This week, I've been to ITWorx first public seminar called "CuttingEdge Club" on Saturday. The idea of a public developer seminar was pretty interesting to me being one of the organizers and speakers for the first developer seminars held in Egypt ever (the DemoDay event we started earlier back in November 2006), and being a speaker myself in ITWorx internal seminars just last week! Interestingly enough, ITWorx started their internal seminars/conferences/clubs (call it whatever you like ...
I wanted to make two of 3.5 framework additions to work together. I decided to make a WCF Web Service and LINQ. I had a few pitfalls with the LINQ. So, I created it in SQL first, then I re-did it in using LINQ. Creating a WCF web service is fairly simple. Open the newest and greatest version of Visual Studio to date; VS 2008. File, New, Web Site and highlight WCF Service. Choose how you want it to work, meaning file system or point to a web; I choose file system and uploaded to my web site. After ...
Date: Thursday, December 13, 2007 @ 6:30 p.m. Topic: What's New in Visual Basic 9.0 Speaker: Rob Windsor, ObjectSharp Consulting Visual Basic is evolving in dramatic ways to help people be more productive when developing enterprise, data-aware applications. The next version of Visual Basic (included with Visual Studio 2008) includes several new language elements, the most significant of these being Language Integrated Query (LINQ). While this session will cover LINQ, the major focus will be the new ...
I'm curious what people think is that fastest way to show SQL Server data in a web page. Assuming you create the virtual web in IIS yourself, I'm hoping somebody knows of something that lets you create an xml file with connection settings and a query file, then the product automagically puts the data in a grid on the web page. Granted once you're used to Visual Studio it doesn't take terribly long to do such a thing, but I'd still like something faster, maybe something that can automagically create ...
For my first entry I would like to talk about ClickOnce. It is a very cool technology allowing you to automatically update you Windows Forms application. One feature that has been talked about is that you can add your own prerequisite to the application. In fact there is even a tool that you can use to generate the manifests requires here: http://www.codeplex.com/bmg there is also an article about how to use it here: http://www.codeproject.com/... I also learned ...
This week, I played with Expression Blend, started using Visual Studio 2008 and had another great meeting with Philly Dot Net User group. Expression Blend: I’ve built many flash applications. Microsoft has handled some of the complaints I’ve always had with flash. You can program to it!!! Flashes ability to develop beautiful sites is excellent. But the ability to manipulate the output via code is non-existent. The first thing I did is followed a couple of the great training videos from http://www.microsoft.com/Ex... ...
Let Emil Stoychev guide you through building a line chart in 1.1 From SilverlightCream.com: How to build simple line chart with Silverlight 1.1 Emil Stoychev of SilverlightShow has posted a very nice tutorial on building a line chart in 1.1 from an XML stream. Stay in the 'Light! Silverlight Tagged Web Articles | Silverlight Articles | Silverlight Tutorials | Silverlight Tooltips | SilverlightCream ...
I have eventually got around to wiring up the BizTalk Documenter to our build process today. I did have an issue which is already logged on the codeplex site for the Documenter about problems when tracking is enabled on ports. I have worked around this problem by getting the source code for the documenter and building a local version of it with a fix until the next release where hopefully this will have been resolved. If you want more info about this please refer to: http://www.codeplex.com/Biz... ...
One of the good practice while developing high performance web application is to reduce the database roundtrip as much as possible. In the current trend of web applications, its a very common to enable users to delete multiple items in a list user interface at a time. To perform this type of batch delete operation, one common mistake that happens by beginner developers are to calling the data access method repetitively for each item with in a loop as below: For Each row As GridViewRow In gvEmployees.Rows ...
I recently needed to do a little analysis of some of our BizTalk implementations and needed to get some information from the IIS logs to help me. I read a little about the Log Parser tool and this post will provide a little about how it helped. Log Parser is a tool which allows you to use a SQL like syntax to parse various types of log files. This can be very useful when looking at a BizTalk environment and you want to be able to interogate a significant amount of logging information. Log Parser ...
Following on from a recent post about 2 way recieve ports I thought i would look in a little more detail at how the different adapters return a fault to the client and what the differences are in how the client would manage the fault. The scenario for this is as follows: I have setup a simple scenario where the client will input a simple message and then an orchestration will return a fault back to the port. In this case the fault message has been typed as a string and I will always return the following ...
If you use CruiseControl.NET or are thinking about setting it up, it can be daunting because of the XML document that you have to write for the configuration. If you already have it set up, you definitely want to check out CCNetConfig, a configuration editor for CruiseControl.NET. It works like many of the configuration editors such as the WCF configuration editor (comes with .NET Framework 3.0 I believe) or the Enterprise Library Configuration Editor. Definitely something worth looking at. CIFactory ...
We have recently started using Cruise Control to manage our build processes, this works great with asp.net web deployment projects and TFS. Cruise control for those who dont know, is, according to the website "CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds" We run it on a separate box (soon to be ...
At Teched 2007 in Barcelona, Spain S. "Soma" Somasegar, corporate vice president of the Developer Division, announced that Visual Studio 2008 and .Net Framework 3.5 will be released at the end of November. It's the first major update to Visual Studio, Microsoft's flagship integrated development environment (IDE), since 2005. Some of the key features in VS 2008 include: LINQ. Language Integrated Query (LINQ) is the most-anticipated new feature of Microsoft's next IDE. LINQ will make access to databases ...