Click here to Skip to main content
15,893,564 members
Articles / Programming Languages / C#
Article

LocationMaker, an approach to System.XML

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
16 Mar 20062 min read 23.6K   204   8  
Tired of editing the location.xml file via notepad? try LocationMaker

Sample Image - LocationMaker.jpg

Introduction

Ok, weird scenario. Let's say you're working with GeneXus 8.0 for Java and you're building and consuming tons of web services to make those applications interact with each other. With Visual Studio once you consumed the web service's wsdl you can set if it's a Dynamic or static web service. If you set as Dynamic an entry is written in the app.config file so you can change the web service location just modifying that file. That's probably what everybody is doing cause in case the web service change it's location. I know is not probable for a web service on the Internet, but let's say you're developing you web services, you're going to read their wsdl while in development, but then you'll have to consume them from the production environment.

So, with Genexus is the same thing, there's file called location.xml where you can set the location of the web services you're about yo consume. The problem is that GeneXus does not have a tool to config this file so you have to do it with our old friend "notepad".

But suffer no more my fellow mortals for I've created that tool. Ok, it wasn't that hard, it's just a tool that will use the System.Xml namespace and the necessary classes in order to create a xml document with the parser's validation what makes it easier to manage.

So if you're using GeneXus check it out, you'll find it interesting and useful, and if you have no clue what I'm talking about I think it's a good example of how to work with the xml parser and some of the System.Xml namespace.

I woul'd like to dedicate this article/example to all the XMLators, wherever they are.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
Uruguay Uruguay
Sebastian Gomez is a System Engineer in Uruguay, South America.
He's been working with .net technologies since beta 1.

You can reach Sebastian at: SebastianGomezCorrea[at]gmail.com

Comments and Discussions

 
-- There are no messages in this forum --