<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Of ExceptionResolvers and XMLBeans</title>
	<atom:link href="http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/</link>
	<description>Technology, code, and thoughts by Stevi Deter</description>
	<lastBuildDate>Thu, 15 Dec 2011 15:20:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ibrahim Rashid</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-30744</link>
		<dc:creator>Ibrahim Rashid</dc:creator>
		<pubDate>Wed, 30 Nov 2011 15:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-30744</guid>
		<description>Very informative post!!!!

The way you explained the entire flow is fantastic.. Thanks a lot for your post.

I too have to insert the custom fault message to the details tag of SOAP:Fault, I googled a lot and finally stopped by your amazing post...That&#039;s what now I am going to do...

How did the XMLBeans generate the ServiceFaultDocument class but in XSD, the element is mentioned as ServiceFault?

Just one request!!!!
Can u please post the ServiceFaultDocument java class, I know it&#039;s a generated class, just for the sake curiosity, please post it.</description>
		<content:encoded><![CDATA[<p>Very informative post!!!!</p>
<p>The way you explained the entire flow is fantastic.. Thanks a lot for your post.</p>
<p>I too have to insert the custom fault message to the details tag of SOAP:Fault, I googled a lot and finally stopped by your amazing post&#8230;That&#8217;s what now I am going to do&#8230;</p>
<p>How did the XMLBeans generate the ServiceFaultDocument class but in XSD, the element is mentioned as ServiceFault?</p>
<p>Just one request!!!!<br />
Can u please post the ServiceFaultDocument java class, I know it&#8217;s a generated class, just for the sake curiosity, please post it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-29909</link>
		<dc:creator>Yang</dc:creator>
		<pubDate>Wed, 16 Nov 2011 09:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-29909</guid>
		<description>Sorry...in addition, I saw the following steps in the xmlbeans link that you mention in your previous post:

If you want to get right to it with your own XML schema and instance, follow these basic steps:
1)    Install XMLBeans.
2)    Compile your schema. Use scomp to compile the schema, generating and jarring Java types. For example, to create a employeeschema.jar from an employeesschema.xsd file:

    scomp -out employeeschema.jar employeeschema.xsd

3)    Write code. With the generated JAR on your classpath, write code to bind an XML instance to the Java types representing your schema. Here&#039;s an example that would use types generated from an employees schema:

    File xmlFile = new File(&quot;c:\employees.xml&quot;); 

    // Bind the instance to the generated XMLBeans types.
    EmployeesDocument empDoc = 
    	EmployeesDocument.Factory.parse(xmlFile); 

    // Get and print pieces of the XML instance.
    Employees emps = empDoc.getEmployees(); 
    Employee[] empArray = emps.getEmployeeArray(); 
    for (int i = 0; i &lt; empArray.length; i++) 
    { 
    	System.out.println(empArray[i]); 
    }

Is this what I am suppose to do? As from what I understand, it will create a jar file but where does the EmployeesDocument datatype come from? Pls correct me and advice if I&#039;m wrong.</description>
		<content:encoded><![CDATA[<p>Sorry&#8230;in addition, I saw the following steps in the xmlbeans link that you mention in your previous post:</p>
<p>If you want to get right to it with your own XML schema and instance, follow these basic steps:<br />
1)    Install XMLBeans.<br />
2)    Compile your schema. Use scomp to compile the schema, generating and jarring Java types. For example, to create a employeeschema.jar from an employeesschema.xsd file:</p>
<p>    scomp -out employeeschema.jar employeeschema.xsd</p>
<p>3)    Write code. With the generated JAR on your classpath, write code to bind an XML instance to the Java types representing your schema. Here&#8217;s an example that would use types generated from an employees schema:</p>
<p>    File xmlFile = new File(&#8220;c:\employees.xml&#8221;); </p>
<p>    // Bind the instance to the generated XMLBeans types.<br />
    EmployeesDocument empDoc =<br />
    	EmployeesDocument.Factory.parse(xmlFile); </p>
<p>    // Get and print pieces of the XML instance.<br />
    Employees emps = empDoc.getEmployees();<br />
    Employee[] empArray = emps.getEmployeeArray();<br />
    for (int i = 0; i &lt; empArray.length; i++)<br />
    {<br />
    	System.out.println(empArray[i]);<br />
    }</p>
<p>Is this what I am suppose to do? As from what I understand, it will create a jar file but where does the EmployeesDocument datatype come from? Pls correct me and advice if I&#039;m wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-29906</link>
		<dc:creator>Yang</dc:creator>
		<pubDate>Wed, 16 Nov 2011 09:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-29906</guid>
		<description>Hi,
I am confused by the ServiceFaultDocument that you mention that is an XmlObject generated by XMLBeans from the schema. How do I generate the ServiceFaultDocument Xmlobject with the schema? Pls advice...Thank you in advance and sorry if I&#039;m asking a noive question.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am confused by the ServiceFaultDocument that you mention that is an XmlObject generated by XMLBeans from the schema. How do I generate the ServiceFaultDocument Xmlobject with the schema? Pls advice&#8230;Thank you in advance and sorry if I&#8217;m asking a noive question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-17618</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Wed, 19 Jan 2011 20:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-17618</guid>
		<description>Naren,
If you look at the example of the resulting SOAP-ENV:Fault, you&#039;ll see there is no exception object carried into the web service. 

Instead, I&#039;ve used the technique described to translate my specific Java exception into the complex type the web service contract is expecting.</description>
		<content:encoded><![CDATA[<p>Naren,<br />
If you look at the example of the resulting SOAP-ENV:Fault, you&#8217;ll see there is no exception object carried into the web service. </p>
<p>Instead, I&#8217;ve used the technique described to translate my specific Java exception into the complex type the web service contract is expecting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naren</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-17594</link>
		<dc:creator>Naren</dc:creator>
		<pubDate>Wed, 19 Jan 2011 10:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-17594</guid>
		<description>Hi,
Firstly, thanks for such a wonderful article. Can I ask you what prompted you to contain exception object inside SOAP Fault? Doing so, web services may not be interoperable with other languages or platforms. I think the best way to fulfill your need and keeping web service portable is to have more Fault attributes and if you really need Throwable (I don&#039;t see why), you can see String format of Stack Trace, instead of sending whole Throwable object.

Cheers,
Naren</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Firstly, thanks for such a wonderful article. Can I ask you what prompted you to contain exception object inside SOAP Fault? Doing so, web services may not be interoperable with other languages or platforms. I think the best way to fulfill your need and keeping web service portable is to have more Fault attributes and if you really need Throwable (I don&#8217;t see why), you can see String format of Stack Trace, instead of sending whole Throwable object.</p>
<p>Cheers,<br />
Naren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Haynie</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-14210</link>
		<dc:creator>Scott Haynie</dc:creator>
		<pubDate>Wed, 13 Oct 2010 22:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-14210</guid>
		<description>Awesome post... I followed it to add the exception stack trace to my soap fault message, cause I couldn&#039;t figure out how to get Spring to do that.   Thanks!</description>
		<content:encoded><![CDATA[<p>Awesome post&#8230; I followed it to add the exception stack trace to my soap fault message, cause I couldn&#8217;t figure out how to get Spring to do that.   Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: regis</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-13447</link>
		<dc:creator>regis</dc:creator>
		<pubDate>Tue, 31 Aug 2010 16:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-13447</guid>
		<description>Thank&#039;s a lot , very helpful</description>
		<content:encoded><![CDATA[<p>Thank&#8217;s a lot , very helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sri</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-7483</link>
		<dc:creator>Sri</dc:creator>
		<pubDate>Wed, 11 Nov 2009 19:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-7483</guid>
		<description>Stevi
if you have a servicefaultdocument sample that you can post that will be helpful, eventhough it&#039;s generated by beans.
this blog will be complete with that info and readers can implement any way they want.
By the way, this is absolutely a GREAT posting !!
Thanks a lot !</description>
		<content:encoded><![CDATA[<p>Stevi<br />
if you have a servicefaultdocument sample that you can post that will be helpful, eventhough it&#8217;s generated by beans.<br />
this blog will be complete with that info and readers can implement any way they want.<br />
By the way, this is absolutely a GREAT posting !!<br />
Thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-7227</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Thu, 29 Oct 2009 15:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-7227</guid>
		<description>Rosh,
In my specific case, ServiceFaultDocument is generated by &lt;a href=&quot;http://xmlbeans.apache.org/&quot; rel=&quot;nofollow&quot;&gt;XMLBeans&lt;/a&gt; from the given schema. You can give XMLBeans a try and see what it generates!</description>
		<content:encoded><![CDATA[<p>Rosh,<br />
In my specific case, ServiceFaultDocument is generated by <a href="http://xmlbeans.apache.org/" rel="nofollow">XMLBeans</a> from the given schema. You can give XMLBeans a try and see what it generates!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rosh</title>
		<link>http://www.stevideter.com/2009/02/18/of-exceptionresolvers-and-xmlbeans/comment-page-1/#comment-7222</link>
		<dc:creator>Rosh</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=63#comment-7222</guid>
		<description>Hey,
Can you please post the implementation of ServiceFaultDocument.</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Can you please post the implementation of ServiceFaultDocument.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

