<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pothole on the Information Superhighway &#187; Web Development</title>
	<atom:link href="http://www.eliotdill.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eliotdill.com</link>
	<description>Eliot Dill's</description>
	<lastBuildDate>Fri, 04 Dec 2009 22:55:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easily Parse XML</title>
		<link>http://www.eliotdill.com/2009/06/easily-parse-xml/</link>
		<comments>http://www.eliotdill.com/2009/06/easily-parse-xml/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 23:05:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[magpierss]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[rssutils]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xml parse]]></category>

		<guid isPermaLink="false">http://www.eliotdill.com/?p=135</guid>
		<description><![CDATA[How to Easily Parse XML
XML is used a lot on the internet and in business .  For instance, it is used by Blogs in a format called Real Simple Syndication, or RSS , to allow people to read a blog without actually visiting the blog&#8217;s website.  XML is also used to store reference information in [...]]]></description>
			<content:encoded><![CDATA[<h1>How to Easily Parse XML</h1>
<p><a href="http://en.wikipedia.org/wiki/XML" target="_blank">XML is used a lot on the internet and in business</a> .  For instance, it is used by <a href="http://en.wikipedia.org/wiki/RSS_(file_format)" target="_blank">Blogs in a format called Real Simple Syndication, or RSS</a> , to allow people to read a blog without actually visiting the blog&#8217;s website.  XML is also used to store reference information in web services and configuration files on many open and closed source products such as <a title="Jabber Server" href="http://www.jabber.org/" target="_blank" title="Jabber Server">Instant Messager servers</a> , <a title="Jboss 5 Web Server" href="http://www.jboss.org/" target="_blank" title="Jboss 5 Web Server">web servers</a> , and <a href="http://www.oracle.com/technology/products/database/sql_developer/index.html" target="_blank">Oracle&#8217;s SQL Developer</a> .</p>
<p>Since XML has become so popular in recent years, there are tools for most languages that make XML pretty easy to parse and handle.</p>
<p>Here are 2 tools you can use to parse XML:</p>
<p>1)  MagpieRSS for PHP</p>
<p><a title="XML Parse PHP" href="http://magpierss.sourceforge.net/" target="_blank" title="XML Parse PHP">MagpieRSS is a great way to parse almost any format of XML</a> clearly and concisely.  Simply include the file &quot;rss_fetch.inc&quot; and then access the entire XML feed as an array.</p>
<p>From their example page:</p>
<pre><em>&lt;item rdf:about=&quot;http://protest.net/NorthEast/calendrome.cgi?span=event&amp;ID=210257&quot;&gt;
&lt;title&gt;Weekly Peace Vigil&lt;/title&gt;
&lt;link&gt;http://protest.net/NorthEast/calendrome.cgi?span=event&amp;ID=210257&lt;/link&gt;
&lt;description&gt;Wear a white ribbon&lt;/description&gt;
&lt;dc:subject&gt;Peace&lt;/dc:subject&gt;
&lt;ev:startdate&gt;2002-06-01T11:00:00&lt;/ev:startdate&gt;
&lt;ev:location&gt;Northampton, MA&lt;/ev:location&gt;
&lt;ev:enddate&gt;2002-06-01T12:00:00&lt;/ev:enddate&gt;
&lt;ev:type&gt;Protest&lt;/ev:type&gt;
&lt;/item&gt;</em>

Get's parsed to:
<em>
array(
title =&gt; 'Weekly Peace Vigil',
link =&gt; 'http://protest.net/NorthEast/calendrome.cgi?span=event&amp;ID=210257',
description =&gt; 'Wear a white ribbon',
dc =&gt; array (
subject =&gt; 'Peace'
),
ev =&gt; array (
startdate =&gt; '2002-06-01T11:00:00',
enddate =&gt; '2002-06-01T12:00:00',
type =&gt; 'Protest',
location =&gt; 'Northampton, MA'
)
);</em>

<strong>2) RSSutils Jar and Tag Library for Java</strong>

First, <a title="Download rssutils" href="http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/rss_utils_1.1.zip" target="_blank" title="Download rssutils">download and unpack RSSutils from here</a>
.  Next copy<code> </code>
<strong><code>rssutils.jar</code>
</strong>
and <code><strong>rsstaglib.tld</strong>
into your </code>
<code><strong>/WEB-INF/lib</strong>
directory.  Then add the following to <strong>web.xml</strong>
:

</code>
<em>    &lt;taglib&gt;
&lt;taglib-uri&gt;/WEB-INF/lib/rssutils.tld&lt;/taglib-uri&gt;
&lt;taglib-location&gt;/WEB-INF/lib/rssutils.tld&lt;/taglib-location&gt;
&lt;/taglib&gt;</em>

Now you can reference the tag library in your JSP page similar to the following example:

<em>    &lt;%@ taglib uri=&quot;/WEB-INF/lib/rssutils.tld&quot; prefix=&quot;rss&quot; %&gt;

&lt;rss:feed
url=&quot;http://url/to/xml.xml&quot; feedId=&quot;xmlFeed&quot;/&gt;
&lt;b&gt;Image: &lt;/b&gt;&lt;rss:channelImage feedId=&quot;xmlFeed&quot;/&gt;&lt;br&gt;
&lt;b&gt;Title: &lt;/b&gt;&lt;rss:channelTitle feedId=&quot;xmlFeed&quot;/&gt;&lt;br&gt;
&lt;b&gt;Link: &lt;/b&gt;&lt;rss:channelLink feedId=&quot;xmlFeed&quot; asLink=&quot;true&quot;/&gt;&lt;br&gt;
&lt;b&gt;Description: &lt;/b&gt;&lt;rss:channelDescription feedId=&quot;xmlFeed&quot;/&gt;&lt;br&gt;
&lt;ul&gt;
&lt;rss:forEachItem feedId=&quot;xmlFeed&quot;&gt;
&lt;li&gt;&lt;rss:itemDescription feedId=&quot;xmlFeed&quot;/&gt;&lt;br&gt;&lt;br&gt;
&lt;/rss:forEachItem&gt;
&lt;/ul&gt;

</em>
Make sure you come up with a <strong>unique feedId</strong>
to use throughout the page, especially if you are going to be parsing multiple feeds on a single page.  Read a <a href="http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/" target="_blank">much longer rssutils tutorial here</a>
.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.eliotdill.com/2009/06/easily-parse-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounded Corners with The GIMP</title>
		<link>http://www.eliotdill.com/2009/06/rounded-corners-with-the-gimp/</link>
		<comments>http://www.eliotdill.com/2009/06/rounded-corners-with-the-gimp/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 21:13:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[gimp rounded corners]]></category>
		<category><![CDATA[gimp tutorials]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[tutorial gimp]]></category>

		<guid isPermaLink="false">http://www.eliotdill.com/?p=134</guid>
		<description><![CDATA[Creating Round Corners
These days more often than not, people want rounded corners instead of the regular squares on images for websites, print work, and photographs.
It is true that this can be done in Photoshop and other expensive programs .  However, why pay all that money when it can be done very easily with the open [...]]]></description>
			<content:encoded><![CDATA[<h1>Creating Round Corners</h1>
<p>These days more often than not, people want rounded corners instead of the regular squares on images for websites, print work, and photographs.</p>
<p>It is true that this can be done in <a title="Photoshop Prices" href="http://www.adobe.com/products/photoshop/compare/" target="_blank" title="Photoshop Prices">Photoshop and other expensive programs</a> .  However, why pay all that money when it can be done very easily with the <a href="http://www.gimp.org/downloads/" target="_blank">open source graphic editing tool, The GIMP</a> .</p>
<p><strong>Step 1: Download The GIMP and Install</strong></p>
<p>The GIMP runs on any operating system so you can use it on Windows XP, Windows Vista, Linux, and Mac OS X.  Download The GIMP and follow the included instructions to install.  Installation should be very similar to any other install.</p>
<p><strong>Step 2: Open and Create Project Canvas</strong></p>
<p>First, open up The GIMP in your respective applications folder and create a new project (say 800 x 600 pixels, the average website size).</p>
<p>Next, click on the <strong>Rectangle Select Tool</strong> in the <strong>Toolbar</strong> .  If you don&#8217;t know what this tool looks like, mouse over each item until you find it.  <em>Hint: It is usually the first item in the Toolbox.</em></p>
<p><strong>Step 3: Create a Rectangle<br />
</strong></p>
<p>With the <strong>Rectangle Select Tool</strong> selected, <strong>draw a rectangle</strong> on the canvas.</p>
<p><strong>Step 4: Change the Color</strong></p>
<p>If you want to change the color of the rectangle, you should do this now by selecting a new <strong>Foreground Color</strong> and clicking on the <strong>Paint Bucket Tool</strong> (<em>Hint: it is the one that looks like the paint bucket</em> ).  Once you have selected a color and the Paint Bucket, click anywhere within the rectangle.</p>
<p><strong>Step 5: Round the Corners</strong></p>
<p>Next, click on <strong>Select &gt; Round Rectangle</strong> in the top menu above the canvas.  Play with the radius settings until you get it just right.  You can undo the rounded rectangle you just created at any time by selecting <strong>Edit &gt; Undo</strong> .  Remember, the larger the radius settings, the more round your rectangle will be.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eliotdill.com/2009/06/rounded-corners-with-the-gimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call Web Service in Java</title>
		<link>http://www.eliotdill.com/2009/06/web-service-client/</link>
		<comments>http://www.eliotdill.com/2009/06/web-service-client/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:37:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[Call Web Service]]></category>
		<category><![CDATA[calling web service]]></category>
		<category><![CDATA[Consume Web Service]]></category>
		<category><![CDATA[consume web services]]></category>
		<category><![CDATA[consuming web service]]></category>
		<category><![CDATA[consuming web services]]></category>
		<category><![CDATA[example web service]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tutorial web service]]></category>
		<category><![CDATA[using web service]]></category>
		<category><![CDATA[Web Service Client]]></category>
		<category><![CDATA[xml web service]]></category>

		<guid isPermaLink="false">http://www.eliotdill.com/?p=28</guid>
		<description><![CDATA[Consume a Web Service with Java 
As I stated before, calling a web service in .Net is easy .  However, using a Java Web Service is a little more difficult .  This is not because .Net is superior to Java, but instead because of the various standards that Java allows for since it is open [...]]]></description>
			<content:encoded><![CDATA[<h1><strong><strong>Consume a Web Service with Java</strong> </strong></h1>
<p>As I stated before, <a title="Web Service .Net" href="http://www.eliotdill.com/2009/06/web-services-netweb-services-net/" target="_self" title="Web Service .Net">calling a web service in .Net is easy</a> .  However, <a href="http://java.sun.com/webservices/" target="_blank">using a Java Web Service is a little more difficult</a> .  This is <a href="http://www.microsoft.com/NET/" target="_blank">not because .Net is superior</a> to Java, but instead because of the various standards that Java allows for since it is open sourced.  In other words, Java can be extended and new standards can be developed, whereas Microsoft keeps tight control over their beloved .Net framework.</p>
<p><strong>Step 1:  Download and Install NetBeans</strong></p>
<p>First you must download and <a title="Best Java IDE" href="http://www.netbeans.org/" target="_blank" title="Best Java IDE">Java IDE such as Netbeans</a> , <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> , or <a href="http://www.oracle.com/technology/products/jdev/index.html" target="_blank">Oracle&#8217;s JDeveloper</a> .  I have used all three and I would recommend NetBeans because I found that JDeveloper was a little behind on certian standards and Eclipse requires that you install additional plugins to allow you to develop with web services.  However, the <a href="http://www.netbeans.org/" target="_blank">latest version of NetBeans (6.5 as of this writing)</a> comes with everything you need to develop and consume web services, including a choice of embedded web servers for development.</p>
<p><strong>Step 2: Create a Web Project and Web Service Client</strong></p>
<p>Next, create a new <strong>Web Project </strong> by clicking<strong> File &gt; New</strong> and selecting <strong>Web Project</strong> from the list.</p>
<p>Once it builds your project, you must tell NetBeans what type of project you are developing.  You can do this by <strong>right clicking your newly created Project</strong> in the Projects pane and selecting <strong>New &gt; Web Service Client</strong> .  If I remember correctly, this is where a wizard will <a title="WSDL" href="http://www.w3.org/TR/wsdl" target="_blank" title="WSDL">prompt you for the Web Service WSDL that you are wanting to call</a> .</p>
<p>WSDL stands for Web Service Definition Language and <a title="What is WSDL" href="http://www.w3.org/TR/wsdl" target="_blank" title="What is WSDL">is a document that is generated when you build a web service</a> to tell the applications that want to use it what methods are available to use.</p>
<p><strong>Step 3: Call Web Service</strong></p>
<p>Once your project finishes generating the local methods for calling the external web service, you should see a tree option under your project entitled <strong>Source Packages</strong> . Open this tree item and all items below it and you should <strong>see a Java file</strong> <strong>&quot;*.java&quot;</strong> .  <strong>Double click</strong> this so it opens, then <strong>right click &gt; Web Service Client Resources &gt; Call Web Service Operation</strong> .</p>
<p><strong>Step 4: Modify and Test</strong></p>
<p>Once the generation is completed, you should be able to reference the web service objects similar to the following:</p>
<blockquote><p><em>WsNameOfService port =   service.getWsNameOfServicePort();<br />
boolean tf;<br />
tf = port.isReady();</em></p>
<p><em>out.println(&quot;Result: &quot; + tf);</em></p></blockquote>
<p><strong>Enjoy and Good Luck!</strong></p>
<p><em>Note: If your not getting the same menu items as me then you probably created the wrong project type in the first couple of steps.  For instance, NetBeans may not allow you to create a Web Service Client in a regular Java project.  Start over with a new project and ensure you are selecting the correct project types.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eliotdill.com/2009/06/web-service-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.Net Consume Web Service</title>
		<link>http://www.eliotdill.com/2009/06/web-services-net/</link>
		<comments>http://www.eliotdill.com/2009/06/web-services-net/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 21:48:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Call Web Service]]></category>
		<category><![CDATA[calling web service]]></category>
		<category><![CDATA[Consume Web Service]]></category>
		<category><![CDATA[consume web services]]></category>
		<category><![CDATA[consuming web service]]></category>
		<category><![CDATA[consuming web services]]></category>
		<category><![CDATA[example web service]]></category>
		<category><![CDATA[net calling web service]]></category>
		<category><![CDATA[net consume web service]]></category>
		<category><![CDATA[tutorial web service]]></category>
		<category><![CDATA[using web service]]></category>
		<category><![CDATA[Web Service Client]]></category>
		<category><![CDATA[xml web service]]></category>

		<guid isPermaLink="false">http://www.eliotdill.com/?p=27</guid>
		<description><![CDATA[Consume Web Service with .Net
During the past 8 months, I have been playing with web services quite a bit &#8211; both calling and developing web services for my employer.  However, I had some trouble along the way finding information on the different standards of web services (such as JAX-WS and JAX-RPC ), implementing those web [...]]]></description>
			<content:encoded><![CDATA[<h1>Consume Web Service with .Net</h1>
<p>During the past 8 months, I have been playing with web services quite a bit &#8211; both calling and developing web services for my employer.  However, I had some trouble along the way finding information on the different standards of web services (such as <a href="https://jax-ws.dev.java.net/" target="_blank">JAX-WS</a> and <a href="https://jax-rpc.dev.java.net/" target="_blank">JAX-RPC</a> ), implementing those web services on <a title="Jboss 5" href="http://www.jboss.org/" target="_blank" title="Jboss 5">the server (Jboss)</a> , and testing the services by writing a <a title="VB.Net Documentation" href="http://msdn.microsoft.com/en-us/vbasic/default.aspx" target="_blank" title="VB.Net Documentation">web service client (VB.Net)</a> .</p>
<p>So I thought documenting the information I have collected would be useful for others attempting the same thing.  The next series of posts will show you how to write, deploy, and consume web services using a combination of .Net and Java.</p>
<p><strong>Consume a Web Service in .NET</strong></p>
<p>Calling a web service in Microsoft .Net framework is super easy.  Simply open a new or existing project, click<strong><em> Project &gt; Add Web Reference</em> </strong> , then enter the <em><strong>URL</strong> </em> to the web service&#8217;s <strong>WSDL</strong> .</p>
<p><a href="http://www.eliotdill.com/wp-content/uploads/2009/06/vb-net-add-web-reference.jpg"><img class="alignright size-medium wp-image-133" title="vb-net-add-web-reference" src="http://www.eliotdill.com/wp-content/uploads/2009/06/vb-net-add-web-reference-264x300.jpg" alt="" title="vb-net-add-web-reference" width="264" height="300" /> </a></p>
<p>A <a title="WSDL" href="http://www.w3.org/TR/wsdl" target="_blank" title="WSDL"><strong>WSDL</strong> is an XML document that is used to define a web service</a> , such as Method Names and Parameters for those Methods.  Don&#8217;t worry, you usually don&#8217;t have to write this document by hand.  Yes, the programming gods have smiled upon us.  Most IDE editors will do this for you including <a href="http://msdn.microsoft.com/en-us/vstudio/default.aspx" target="_blank">Visual Studio</a> and <a href="http://www.netbeans.org/" target="_blank">NetBeans</a> .</p>
<p>After entering the <strong>URL</strong> as suggested above, just follow the wizard steps and .Net will take care of the rest for you.</p>
<p>Once complete, you should see <strong>Web References</strong> in the <strong>Solution Explorer </strong> pane in Visual Studio.  You can edit the Reference Name and URL in the <strong>Properties</strong> pane by clicking on the web service reference (whatever you named it) under <strong>Web References</strong> .</p>
<p>Now you can reference the web service object that you just created by typing &quot;<em>WhateverYouNamedIt.</em> &quot;</p>
<p>Go ahead and give it a shot!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eliotdill.com/2009/06/web-services-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Breakdown of Modern Web Design</title>
		<link>http://www.eliotdill.com/2009/05/the-breakdown-of-modern-web-design/</link>
		<comments>http://www.eliotdill.com/2009/05/the-breakdown-of-modern-web-design/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:25:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[Bill Gates]]></category>
		<category><![CDATA[breakdown]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Portfolio - Web Development]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.eliotdill.com/?p=30</guid>
		<description><![CDATA[This pretty much breaks-down a day in the life:
 
]]></description>
			<content:encoded><![CDATA[<p>This pretty much breaks-down a day in the life:</p>
<p><a href="http://www.eliotdill.com/wp-content/uploads/2009/05/breakdown-of-modern-web-design.png"><img class="aligncenter size-full wp-image-31" title="breakdown-of-modern-web-design" src="http://www.eliotdill.com/wp-content/uploads/2009/05/breakdown-of-modern-web-design.png" alt="chart about web design" width="500" height="372" /> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eliotdill.com/2009/05/the-breakdown-of-modern-web-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
