<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for The Ancient Art of Programming</title>
	<link>http://blog.springsource.com/arjen</link>
	<description>A blog about programming in .NET and Java</description>
	<pubDate>Thu, 24 Jul 2008 02:50:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>Comment on The Sorry State of SAAJ by Arjen Poutsma</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1207</link>
		<pubDate>Mon, 19 May 2008 21:44:31 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1207</guid>
					<description>@Dims,
Yes, Axiom is another option, and it can be used in Spring-WS as an alternative to SAAJ. It's an extra dependency, though, and I don' want to require it. I also&lt;a href=&quot;https://issues.apache.org/jira/browse/WSCOMMONS-110&quot; rel=&quot;nofollow&quot;&gt;had&lt;/a&gt; &lt;a href=&quot;https://issues.apache.org/jira/browse/WSCOMMONS-38&quot; rel=&quot;nofollow&quot;&gt;issues&lt;/a&gt; with Axiom. They are fixed now, which is a Good Thing.

@Craig
Thanks for the update!

@Dan
I agree: W3C DOM is lame, and dom4j, JDOM, and XOM are better. However, I had a couple of reasons to using SAAJ + W3C DOM:
&lt;ol&gt;
&lt;li&gt;I didn't feel like writing yet another SOAP message representation. SOAP is hard, let's go shopping!&lt;/li&gt;
&lt;li&gt;It's the standard, so that means you're getting &lt;a href=&quot;https://xwss.dev.java.net/&quot; rel=&quot;nofollow&quot;&gt;some things&lt;/a&gt; for free&lt;/li&gt;
&lt;li&gt;Using dom4j etc would add another required dependency. Currently, Spring-WS only requires Commons Logging and Spring. Everything else is optional, and I like it that way.&lt;/li&gt;
&lt;/ol&gt;

That is not to say I don't support these alternative dom apis for users, &lt;a href=&quot;http://static.springframework.org/spring-ws/site/apidocs/org/springframework/ws/server/endpoint/package-summary.html&quot; rel=&quot;nofollow&quot;&gt;we do&lt;/a&gt;.  I just don't want to require them.</description>
		<content:encoded><![CDATA[<p>@Dims,<br />
Yes, Axiom is another option, and it can be used in Spring-WS as an alternative to SAAJ. It&#8217;s an extra dependency, though, and I don&#8217; want to require it. I also<a href="https://issues.apache.org/jira/browse/WSCOMMONS-110" rel="nofollow">had</a> <a href="https://issues.apache.org/jira/browse/WSCOMMONS-38" rel="nofollow">issues</a> with Axiom. They are fixed now, which is a Good Thing.</p>
<p>@Craig<br />
Thanks for the update!</p>
<p>@Dan<br />
I agree: W3C DOM is lame, and dom4j, JDOM, and XOM are better. However, I had a couple of reasons to using SAAJ + W3C DOM:</p>
<ol>
<li>I didn&#8217;t feel like writing yet another SOAP message representation. SOAP is hard, let&#8217;s go shopping!</li>
<li>It&#8217;s the standard, so that means you&#8217;re getting <a href="https://xwss.dev.java.net/" rel="nofollow">some things</a> for free</li>
<li>Using dom4j etc would add another required dependency. Currently, Spring-WS only requires Commons Logging and Spring. Everything else is optional, and I like it that way.</li>
</ol>
<p>That is not to say I don&#8217;t support these alternative dom apis for users, <a href="http://static.springframework.org/spring-ws/site/apidocs/org/springframework/ws/server/endpoint/package-summary.html" rel="nofollow">we do</a>.  I just don&#8217;t want to require them.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by Dan Diephouse</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1206</link>
		<pubDate>Mon, 19 May 2008 19:25:29 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1206</guid>
					<description>I guess I'm of the opinion that if one is going to do in memory xml tree manipulation you should use a less lame library like DOM4J or XOM There isn't attachment support in DOM4J/XOM, but someone could easily hack up a library using one of these two things if they were motivated.

Yes there is AXIOM also. AXIOM is better than SAAJ/DOM, but still not a fan of the API. If you want streaming it does that, but if you're doing in memory manipulation its slower &amp;#38; more memory intensive then DOM4J/XOM.</description>
		<content:encoded><![CDATA[<p>I guess I&#8217;m of the opinion that if one is going to do in memory xml tree manipulation you should use a less lame library like DOM4J or XOM There isn&#8217;t attachment support in DOM4J/XOM, but someone could easily hack up a library using one of these two things if they were motivated.</p>
<p>Yes there is AXIOM also. AXIOM is better than SAAJ/DOM, but still not a fan of the API. If you want streaming it does that, but if you&#8217;re doing in memory manipulation its slower &amp; more memory intensive then DOM4J/XOM.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by kevan</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1205</link>
		<pubDate>Mon, 19 May 2008 18:51:33 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1205</guid>
					<description>Your test works on Jetty/CXF distributions of Geronimo (which uses the Sun SAAJ implementation), but not Tomcat/Axis2 distributions. So, we're only half-bad... ;-)

I posted a few work-arounds in your Geronimo Jira.

--kevan</description>
		<content:encoded><![CDATA[<p>Your test works on Jetty/CXF distributions of Geronimo (which uses the Sun SAAJ implementation), but not Tomcat/Axis2 distributions. So, we&#8217;re only half-bad&#8230; <img src='http://blog.springsource.com/arjen/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I posted a few work-arounds in your Geronimo Jira.</p>
<p>&#8211;kevan</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by craig</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1204</link>
		<pubDate>Mon, 19 May 2008 17:18:18 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1204</guid>
					<description>websphere 6.1

Testing MessageFactory com.ibm.ws.webservices.engine.soap.MessageFactoryImpl

Trying to create SOAPMessage: success.

Trying to get SOAPBody: success.

Trying to transform from Document to SOAPBody: success.

Trying to get SOAPBody: success.

Trying to transform from SOAPBody to OutputStream: success.

Trying to write SOAPMessage: success.

All looks well.</description>
		<content:encoded><![CDATA[<p>websphere 6.1</p>
<p>Testing MessageFactory com.ibm.ws.webservices.engine.soap.MessageFactoryImpl</p>
<p>Trying to create SOAPMessage: success.</p>
<p>Trying to get SOAPBody: success.</p>
<p>Trying to transform from Document to SOAPBody: success.</p>
<p>Trying to get SOAPBody: success.</p>
<p>Trying to transform from SOAPBody to OutputStream: success.</p>
<p>Trying to write SOAPMessage: success.</p>
<p>All looks well.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on On bytes, chars, Strings, XML and Unicode by Eric</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/15/on-bytes-chars-strings-xml-and-unicode/#comment-1203</link>
		<pubDate>Mon, 19 May 2008 16:42:00 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/15/on-bytes-chars-strings-xml-and-unicode/#comment-1203</guid>
					<description>&amp;#62; which prints the all familiar “Héllo Wørld”. This is a nice trick, and I am not completely sure how it works.

If you change the code to create a byte[] for the XML string 's' does it work like the first case.  Because there may be some magic in the file encoding the the javac compiler sees.  Namely that 'Héllo Wørld' is read by the complier using some default encoding (e.g. other then UTF-8), and magically transforming this to the correct UTF-16 representation.


From javac
-encoding encoding
    Set the source file encoding name, such as EUCJIS/SJIS. If -encoding is not specified, the platform default converter is used.</description>
		<content:encoded><![CDATA[<p>&gt; which prints the all familiar “Héllo Wørld”. This is a nice trick, and I am not completely sure how it works.</p>
<p>If you change the code to create a byte[] for the XML string &#8217;s&#8217; does it work like the first case.  Because there may be some magic in the file encoding the the javac compiler sees.  Namely that &#8216;Héllo Wørld&#8217; is read by the complier using some default encoding (e.g. other then UTF-8), and magically transforming this to the correct UTF-16 representation.</p>
<p>From javac<br />
-encoding encoding<br />
    Set the source file encoding name, such as EUCJIS/SJIS. If -encoding is not specified, the platform default converter is used.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by Alef Arendsen</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1202</link>
		<pubDate>Mon, 19 May 2008 10:31:31 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1202</guid>
					<description>Well, you know, other than lame, SAAJ is also boring, so another reason not to bother...







p.s. for those of you that do not master the Dutch language, 'saaj' is almost the same as 'saai', which translates to boring... okay... this is lame in itself, I know...</description>
		<content:encoded><![CDATA[<p>Well, you know, other than lame, SAAJ is also boring, so another reason not to bother&#8230;</p>
<p>p.s. for those of you that do not master the Dutch language, &#8217;saaj&#8217; is almost the same as &#8217;saai&#8217;, which translates to boring&#8230; okay&#8230; this is lame in itself, I know&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by Davanum Srinivas</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1201</link>
		<pubDate>Mon, 19 May 2008 09:30:59 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1201</guid>
					<description>Stefan, One could use Apache Axiom (http://ws.apache.org/commons/axiom/)

/me ducks and hides from Dan

Arjen, If you are not already depressed, try running a xsl stylesheet on that DOM. Guaranteed fireworks.

-- dims</description>
		<content:encoded><![CDATA[<p>Stefan, One could use Apache Axiom (http://ws.apache.org/commons/axiom/)</p>
<p>/me ducks and hides from Dan</p>
<p>Arjen, If you are not already depressed, try running a xsl stylesheet on that DOM. Guaranteed fireworks.</p>
<p>&#8211; dims</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by Stefan Tilkov</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1200</link>
		<pubDate>Mon, 19 May 2008 08:33:12 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1200</guid>
					<description>Dan, it would be nice to be able to write some logic against a SOAP message without depending on any particular stack (even if it's yours or Arjen's) :-)</description>
		<content:encoded><![CDATA[<p>Dan, it would be nice to be able to write some logic against a SOAP message without depending on any particular stack (even if it&#8217;s yours or Arjen&#8217;s) <img src='http://blog.springsource.com/arjen/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on The Sorry State of SAAJ by Dan Diephouse</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1199</link>
		<pubDate>Mon, 19 May 2008 03:36:38 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/19/the-sorry-state-of-saaj/#comment-1199</guid>
					<description>Why do you want to believe? SAAJ is lame, I don't see much of a reason to use it.</description>
		<content:encoded><![CDATA[<p>Why do you want to believe? SAAJ is lame, I don&#8217;t see much of a reason to use it.</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on On bytes, chars, Strings, XML and Unicode by James</title>
		<link>http://blog.springsource.com/arjen/archives/2008/05/15/on-bytes-chars-strings-xml-and-unicode/#comment-1198</link>
		<pubDate>Sat, 17 May 2008 08:24:30 +0000</pubDate>
		<guid>http://blog.springsource.com/arjen/archives/2008/05/15/on-bytes-chars-strings-xml-and-unicode/#comment-1198</guid>
					<description>Hi 
Nice article. Would you be interested in reposting this to JavaLobby - I think it would be useful there. 
Contact me if you're interested and we can organise it 
James</description>
		<content:encoded><![CDATA[<p>Hi<br />
Nice article. Would you be interested in reposting this to JavaLobby - I think it would be useful there.<br />
Contact me if you&#8217;re interested and we can organise it<br />
James</p>
]]></content:encoded>
				</item>
</channel>
</rss>
