Tag | XML Posts

Article Source: http://geekswithblogs.net/c... This article describes an approach to the management of cross reference data for BizTalk. Some articles about the BizTalk Cross Referencing features can be found here: http://home.comcast.net/~sd... http://geekswithblogs.net/m... http://geekswithblogs.net/c... Options Current options to managing this data include: ...
Earlier this week I had an ESB endpoint (Off-Ramp in ESB parlance) that I was sending to over http using WCF-BasicHttp. I needed to switch the protocol to https: which I did by changing my UDDI Binding over to https: No problem from a management perspective; however, when I tried to run the process I saw this exception: Event Type: Error Event Source: BizTalk Server 2009 Event Category: BizTalk Server 2009 Event ID: 5754 Date: 3/10/2010 Time: 2:58:23 PM User: N/A Computer: XXXXXXXXX Description: ...
Note: Cross posted from Coding The Document. Permalink Sometimes in order to work with Open XML we need a little help from other tools. In this post I am going to describe a fairly simple solution for marking up PowerPoint presentations so that they can be used as templates and processed using the Open XML SDK. Add-ins are tools which it can be hard to find information on. I am going to up the obscurity by adding a Ribbon button. For my example I am using Visual Studio 2008 and creating a PowerPoint ...
As the Geriatric Geek you can understand that I’ve been writing and studying for over 60 years. That means that I’ve seen insane changes in the computer software industry. I’ve made the joke that I get a new college education every 6 months or so. Of course that’s an exaggeration but it doesn’t make the feeling go away. I have a long standing and strong relationship with Microsoft so I’m armed with virtually every tool they make. It also means that I have access to tons of training material. But ...
INTRODUCTION If you are a SharePoint developer you know that there are two basic ways to develop against SharePoint. 1) The object Model 2) Web services. SharePoint object model has the advantage of being quite rich. Anything you can do through the SharePoint UI as an administrator or end user, you can do through the object model. In fact everything that is done through the UI is done through the object model behind the scenes. The major disadvantage to getting at SharePoint this way is that the ...
We will create a few classes now to help us with storing and retrieving user credentials, so that we don't ask for it every time we want to speak with Twitter for getting some information. Now the class to sorting out the credentials. We will have this class as a static so as to ensure one instance of the same. This class is mainly going to include a getter setter for username and password, a method to check if the user if logged in and another one to log out the user. You can get the code here. ...
Normally when I have develop a service layer for my silverlight app I have it all in the same web project (easy, no clientaccesspolicy headaches), … but in some cases I have my service layer in a separate solution, in theory it’s quite easy to setup a client access policy, but… when you try it it fails because that xml policy file is not in the root of the cassini web server :-(. What to do.. change your settings, good old trick that can be applied even to VS 2005 :-) http://weblogs.asp.net/scot... ...
Now that I've covered one way to structure your repo within and across systems, I'll cover what I usually do when first starting a solution. This includes project naming convention, build output directory, project properties and deployment project setup. Lets first walk though where I place solution and project files. the below picture denotes where I place solution files (In the Source folder). The Source folder is the place where I put all of my solutions files. Depending on the system being written, ...
I am starting work on some asp.net vb pages to consume and work with web services. Part 1 was to create a web form that posts xml that a dba can paste into a textbox on an aspx page. Here is the code; Imports System.Net Imports System.IO Partial Class _Default Inherits System.Web.UI.Page Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Submit.Click Dim Data As String Dim WebRequest As WebRequest Dim RequestStream As Stream Dim StreamWriter As StreamWriter Dim ...
BAM Operations, a brief summary Installing the BAM infrastructure BAM infrastructure composed on the base of the SQL Analysis Services (SASS) and the SQL Integration Services (SISS). The SQL Notification Service is an optional element. 1. Before installing BAM make sure the SQL Analysis Services and the SQL Integration Services are installed. If not, install them. 2. Create the BAMAnalysis and the BAMStarSchema databases. It can be done in separate step or while the BizTalk configuration. 2.1. Start ...
Technorati Tags: Silverlight 4 SL4Networking * Silverlight Beta 4 Networking. Part 8 - TCP Sockets * Silverlight 4 Beta Networking.… HTTP and Basic Authentication * Silverlight 4 Beta Networking. Part 4 - Cross Domain HTTP * Silverlight 4 Beta Networking. Part 2 - RSS,ATOM,JSON * Silverlight 4 Beta Networking. Part 7 - HTTP & Forms Auth * Silverlight 4 Beta Networking. Part 5 - HTTP Methods/Stacks * Silverlight 4 Beta Networking. Part 3 - HTTP POST * Silverlight 4 Beta Networking. Part 1 - WebClient ...
I've been meaning to post this for a little while, and a recent post on the SSAS forum at ssas-info.com prompted me to finally get around to it. Basically the small Powershell script below will attach to the specified SSAS server and script all of the databases out to an XMLA file. In this example I also add a timestamp in the form of YYYYMMDD to the end of the file. $serverName = "localhost\sql08" $outputFolder = "C:\data\" ## load the AMO and XML assemblies into the current runspace [System.Reflection.Assembly... ...
Part 2 This is the first in a many-part series in which I will be writing about using YAML in the .Net space – particularly within C#. I will cover the whys, the hows, and show some tricks using the dynamic capabilities of C# when using YAML. I might even explore IronRuby a bit. Why YAML? I got the chance to sit in on four days of Ruby on Rails (RoR) training from Joe Obrien a few weeks ago. I hadn’t played with RoR in a few months, and this training was amazingly useful. I always like to see what ...
Last week one of my colleague asked me that how we can send multiple records to SQL server procedure parameters. Let us discuss the scenario:- Application user has selected multiple product and now you want to send Customer details and corresponding order details data to SQL Server. To resolve this Microsoft has provided multiple approaches in SQL Server like Table and XML Parameter. I read somewhere that if you want to be a architect, try to solve each software problem with xml framework. Let us ...
In this Issue: SilverLaw, Mike Taulty, and Victor Gaudioso. Shoutout: John Papa announced SL TV 8: Silverlight Client for Facebook From SilverlightCream.com: Since I'm at #MVP10, I'm going to be running behind, but I had a few things tagged that I thought I'd post. Easing ToolTip Styling Example SilverLaw has a great Tooltip with easing available for all our use.... run the demo, you know you'll want it. Silverlight 4 Beta Networking Screencasts Mike Taulty has a collection of Silverlight 4 Networking ...
Note: Cross posted from Coding The Document. Permalink In the templates that I have processed with Open XML there are usually a number of tables. Some times we have to add an extra paragraph to a cell and we want to keep the formatting of the text already in the cell. In this post I will go over how to apply bold and underline formatting to text as well as how to steal it from existing text and apply it to a new paragraph or run. In order to apply an underline format to a paragraph by hand you have ...
Article Source: http://geekswithblogs.net/c... There are various blog articles that give sample .NET code that can be used to validate a message against a schema from a BizTalk orchestration. These include: msdn, haloscan.com, biztalkgurus.com, eggheadcafe.com and Sujan Turlapaty. Many of these blogs have subsequent comments about problems. Under high loads, I too began to see these classes return “false positives” in my test environment. (i.e. An XmlSchemaValidationException is being thrown ...
These days, I’m doing a bit of end-to-end acceptance web testing using the Selenium framework. Selenium has a nice and handy add-on for the Firefox browser – the Selenium IDE. It automatically records your actions and produces the required C# code for you, as you click around in the browser window. But when I started the Selenium server and tried to run my first test (copied from the Selenium docs), it didn’t work (Sigh. It never works on the first try…) and I got a timeout and an exception. This ...
Manipulating app.config attributes at run time in C# appears to be simple. However most of the samples I've looked at don't work or are impenetrable. Simply in app.config file at design time add some userSettings either manually or through the design window <userSettings> <WindowsFormsApplication... <setting name="MyMachine" serializeAs="String"> <value>zaxcc1Machine&... </setting> <setting name="MyMessage" serializeAs="String"> <value>Helpme</val... ...
It happens once in a while (to me at least): You get an XML schema and your task is to create a WCF service that accepts this data as parameter or uses it as return value. So you generate a class from the schema using xsd.exe (like "xsd XMLSchema1.xsd /c /l:CS /n:mipsen.schemas"). You create your ServiceContract and implementation (adding ServiceKnownType to avoid funny behaviour concerning the schema-generated class), create the web.config and svc-file and host your service (in IIS, for example). ...
Note: Cross posted from Coding The Document. Permalink Our theme recently is things that need to be made more consistent in the office products in order to make document generation development more efficient for developers. This time around we will focus on difference between the way text is marked up in Word and PowerPoint. I have found that there are a number of subtle but important differences in the way text is written to the Open XML standard. This is then reflected in the Open XML SDK’s API. ...
Note: Cross posted from Coding The Document. Permalink Word 2007 has two built-in methods for tagging content. If you go to the developers tab you will find the ribbon has a section for Controls and a section for XML. The Controls are also referred to as Content Controls. The XML section allows you to define schemas that can be applied to your document and is sometimes called Custom XML. Both of these constructs can be used when you are coding an application which needs to identify a part of a document ...
Had a strange error come up today when I tried to use my home PC to run an Entity Framework project, the EDMX schema (is it a schema) was generated in SQL Server 2008 and my home dev machine has SQL Server 2005. I wouldn't have thought this would be a problem as I don't use any 2008 specific features (except the intellisense ;P), but alas I was getting a lot of exceptions from my FunctionImports (stored proceedures in Entity Framework). Upon investigating the stack trace it was telling me that the ...
The Twitter Search API returns an XML Atom formatted feed. So, in LINQ to Twitter, I've created an Atom object, which I return when someone performs a search. The problem with the results is that the ID of the Status is mangled with other information. To solve this problem, you need to extract the status ID from the number following the last colon of the ID from the search Entry. Here's some code to show how it's done: private static void SearchAndUseStatusTwitterDe... twitterCtx) { ...
A lot of examples on LINQ to XML show how to translate from XML into objects. Especially with REST data sources, it seems like a lot of LINQ to XML is used to read XML. However, there is also a need to translate from objects to XML, which isn't always as intuitive. The following example shows a couple different ways to translate from objects to XML. It starts with a string for the XML document. There is also a List of Customer objects. This example translates the objects into XElement's and then ...
The use of the OWSSVR.dll to filter data on the server side is a great idea as SharePoint can be slow and it tends to become the corporate dumping ground for all documents. Why delete it when we can retain it for auditing... So to be able to filter the data to the current entries before transmitting the data over the wire is great. It look like the perfect solution for my problem and it took a number of confussed hours before I found the posting by GaryJ @ Novotronix. I have copied it below. owssvr.dll ...

Often when you write XAML, you wish you could ignore a property temporarily. In code, it is easy to do: Just comment out the line where the property is set, and you are good to compile.

Read the rest of this entry »

Hi there, Today we will be doing a quick little test to send a XML message to BizTalk with few lines of code. I had a scenario in my solution in which I had a WCF LOB Outbound Adapter which was doing some work and later the same code had to submit message back to BizTalk. First solution I thought of was writing the message to a File Location and than a BizTalk Receive Location picks it up from there and processes it. But then came up with a different solution of using WCF netPipe and submitting it ...
This article is a two-part series regarding the LinqToWikipedia provider. The first article covers the basic concepts of Linq as well as the client usage of this particular provider while the second article covers the inner workings of the LinqToWikipedia provider to give you an understanding of what it takes to create your own IQueryable provider. NOTE: You should download the latest build from Codeplex so you can follow along with the code samples. Creating your own IQueryable provider First off ...
I have spent the last several months developing solutions with Office 2007 and the Office Open XML SDK 2. Our client has requirements that cross the suite from PowerPoint Presentations to Word Documents. The Open XML standard which define the structure of these documents is very powerful. My biggest frustration is the lack of consistent capabilities between the products. Since we are doing document generation based on templates it is very important we that the code can consistently identify any part ...
My unit test project uses a app.config file that has external source references to other config files located in my “configuration” folder. My configuration folder is a sub folder of the unit test project. When the unit test runs, I need to deploy this folder to the TestResults/Out folder so the app.config can be properly loaded during test execution. Here’s the easiest way to accomplish deploying folders to the TestResults folder: Right click on the .testrunconfig file in your solution explorer. ...
In this Issue: Fredrik Normén(2), Antoni Dol, Alex van Beek, Rishi, Mike Taulty, Giorgetti Alessandro, Michael S. Scherotter, Jesse Liberty, Jeremy Likness, and Anoop Madhusudanan. Shoutouts David Kelley announces a podcast: Lunch With Interact - MVVM For Tards I don't keep a close eye on it, but sometime in the last two days, @SilverlightNews has hit 4000 followers... thanks to all the readers! From SilverlightCream.com: Aspen – A sample app using Silverlight 4 and .Net 4.0 – part 5 of X – New Repository ...
Here I am just doing some banking and low and behold the bank I work with seems to be rolling out some “Pilot” stuff. From the error below, I quickly determine that they’re way overdue for moving to a later version of the Framework (I mean 1.1 come on!!!). The second thing is, why the heck aren’t you trapping these errors instead of giving me the “debug” mode view that only a developer should see!! And before you write your web.config, at least make sure it’s XML compliant.. How do you get the amateurs ...
In this Issue: Deborah Kurata, and Praveen. Shoutouts: David Anson announced: Update to free ConvertClipboardRtfToHtmlText tool and source code gives more compact output Jeff Handley reports My Stretch Goal: To Ship RIA Services Source Code ... give him some feedback Laurent Bugnioin posted The MVVM landscape at MIX10 ... I hope to see them all :) Benjamin Roux posted this: The Memoirs of Sir Isaac Newton's life in Silverlight, and there are other manuscripts on the site as well. It turns out I had ...
This article is a two-part series regarding the LinqToWikipedia provider. The first article will cover the basic concepts of Linq as well as the client usage of this particular provider while the second article will explore the inner workings of the LinqToWikipedia provider to give you an understanding of what it takes to create your own IQueryable provider. NOTE: You should download the latest build from Codeplex so you can follow along with the code samples. What is Linq? Let's spend a moment and ...
Hey there everyone. I was recently tasked to pitch a book to my publisher. As a first step I need to come up with an outline for the Table of Contents. This book is the standard cookbook style with an added focus on the MVC side of ASP.NET. I have been poking about at other similarly styled books to get some ideas. I think comparing ASP.NET Web Forms to ASP.NET MVC would provide some folks with a good reference point when looking at the two ways of doing things. (Thanks to my friend James Shaw for ...
Steps to make MS Project create a log file of exceptions occuring during the load/refresh/publish using the "TFSOfficeAdd-In.dll" component. 1) Navigaate to the directory that winproj.exe lives in. (Typically "C:\Program Files\Microsoft Office\[Version]\" where [Version] is the Office version I.E. Office12, Office14) 2) Create a new text file named winproj.exe.config 3) Add the following XML as the contents of the winproj.exe.config file: <configuration> <system.diagnostics> <switches> ...
Visual Studio 2010 Quick Reference Guidance Welcome to the Visual Studio 2010 Quick Reference Guidance! Steven van Niekerk (Technical Lead / Architect, BB&D South-Africa) initiated this project with his question “Can you tell me about TFS and VSTS in 5 minutes?” The Visual Studio 2010 Quick Reference Guidance consists of compact cheat sheets for Team Foundation Server (TFS) 2010 and Visual Studio (VS) 2010, addressing the core problem of teams in the field who are unaware of Visual Studio and ...
I have a couple posts coming to this respect, but I had the displeasure of working with Apache, SVN, and Perl these past few weeks. First off I tried learning Perl when I was 16 years old and it never took. I couldn’t understand it. I still don’t understand half of what it does and why you would use it over any other scripting language. The most I ever used it prior to these past few weeks was AOL .eml forms back in the day (http://members.aol.com/jad... yeah I know I’m not proud of my 17 year ...
Its been very long I posted any comment on my blog. Recently I was working on a requirement in which I've to migrate groups and users from a Win 2k server to Win 2k3 server, win 2k3 server contains the same groups and users but its not updated for a long time. There were around 1000 groups in Win 2k server to be checked and updated on win 2k3 server. Thanks to namespace System.DirectoryServices in .Net framework (1.1 onwards) which allows to manage server resources. Here we need to manage the ActiveDirectory ...
I like using ASMX Web Services (WS)in my code -- either creating them or just calling them. (Yes, I use Windows Communication Foundation (WCF) also). One of the best features of the WS call is that the object model can be exposed to allow the caller to return specific results that need no additional parsing. This does not hold up, however, if the result is returned in a string of raw XML as the result may require additional parsing to be of best use. Here is an example of calling Web Services where: ...
In this Issue: Jeremy Likness, René Schulte, Mike Taulty(2), Kirupa, David Kelley(2), and Jeff Blankenburg(2, 3, 4). Shoutout: Alex Golesh posted his material for Silverlight 4 Tutorial @SDP From SilverlightCream.com: PRISM, MEF, and MVVM Part 2 of 3: Making PRISM MEF Friendly Jeremy Likness has Part 2 of his sequence on making Prism friendly with MEF, and we're talking Silverlight 3 here. Ye Olde Kamera - Silverlight 4 Webcam & Old Movie Shader René Schulte wasn't satisfied to just use the webcam ...
[Discalimer] This is just fun code and nothing too serious. Anything bigger than this should be hosted on a site where others can contribute. [The Story] A while back, someone asked a question on Twitter concerning LINQ to XML. I made a small example then as a proof of concept, then i kept playing with it until I came up with a lite framework for a utility that can be used to search and download DotNetRocks podcasts. Right now, the utility is a stand-alone command-line app, but is written in such ...
Recently I had an interesting task to consume a particular XML document and populate a C# object from it. The structure of the XML document looked roughly like this: 1: <root xmlns="http://www.w3.org/20... 2: <entry> 3: <id>1</id> 4: <title>abc</title> 5: <content> 6: <div xmlns="http://www.w3.org/19... 7: <table> 8: <tr> 9: <td>Item1</td> 10: <td>111</td> 11: </tr> 12: <tr> 13: <td>Item2</td> ...
Part II - Create the WCF "Team" service consumed by a Java client This article is the second in a three part series demonstrating the interoperability between .NET WCF services and Java Web Services. NOTE: If you haven't read Part I you should review that article before continuing on. In Part I we reviewed the class diagram of the Team class, so our first step is to create the .NET classes in support of that model. We will start by creating the Player class: 1: [DataContractAttribute(Name = "Player", ...
As usual in my walk trough Live Labs, i found “Pivot”, well what is it? in the own words from Live Labs, Pivot is a new way to interact with massive amount of data in the web using “Collections”. “Collections” are the heart the Pivot, they combine large groups of similar items on the Internet, so we can begin viewing the relationships between individual pieces of information in a new way. Conceptually, a collection is just like any other web content. There’s a set of files on a server, and a local ...
It seems that Microsoft has lost a lawsuit over their custom xml implementation for Office Open XML. This was about the worst news I could get just before the holidays since I have been working on creating solutions around just that feature. To me it is the most flexible part of the OOXML standard and crosses all types of Office documents. I can only hope that they settle this dispute so we can get back to moving forward document generation processes. del.icio.us Tags: OOXML,Office Open XML,Microsoft ...
This is a very slick REST based sample that leverages ATOM feeds to publish event notifications. Hats off to Ian and the guys behind the sample. Nothing can beat the good old polling consumer. With an ATOM implementation the guaranteed delivery responsibility is in the hands of the consumer. This opens up the possibility for the consumer to further optimize the communication by only processing those categories where it is interested in. Categories are basically entry meta data (properties of the ...
In this Issue: Jeremy Likness, Rudi Grobler, Nick Kramer, Fredrik Normén, Mike Taulty, Deborah Kurata, Shayne Burgess, Glenn Block(2), and Gill Cleeren(2). Shoutout: Did you know MIX10 registration was open? Register by Jan 15th and get in for $795!! MIX10 From SilverlightCream.com: Unit Tests for ViewModels AND Views in Silverlight Confused about Unit Testing Silverlight apps in MVVM? Jeremy Likness isn't... and he shows us how! Blend 3 Tip: Filter resources by selected element Rudi Grobler has ...
So you're familiar with TDD (test-driven development)... Failing your tests first, then building up your classes to satisfy your tests so they're all "Green"... This is a typical scenario and is pretty straightfoward with .NET. Well now you have to create a WCF service and implement unit testing to ensure you don't break your service when you build out a new version. This is a bit more challenging but you do have some different options: Separate out your service code into a library and run your tests ...