<?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: Using Schema Validation with JAXB and XFire</title>
	<atom:link href="http://myarch.com/using-schema-validation-with-jaxb-and-xfire/feed" rel="self" type="application/rss+xml" />
	<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire</link>
	<description>Builds and bytes</description>
	<lastBuildDate>Sun, 20 May 2012 18:24:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ahrum Song</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-11173</link>
		<dc:creator>Ahrum Song</dc:creator>
		<pubDate>Tue, 19 Jun 2007 13:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-11173</guid>
		<description>Thanks for info and great blog.

I had trouble with your suggestion with XFire 1.2.6. I kept getting &lt;code&gt;org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ’tns:application’.&lt;/code&gt;. 

I recorded my experiences on my &lt;a href=&quot;http://ahrumsong.blogspot.com/2007/06/schema-validation-in-xfire.html&quot; rel=&quot;nofollow&quot;&gt;blog&lt;/a&gt;. Basically it was caused by a behaviour that associates first element with wrong namespace. After applying JAXWSProfile, the schema validation started working as shown above. 

Hope this help people out there. Cheers.</description>
		<content:encoded><![CDATA[<p>Thanks for info and great blog.</p>
<p>I had trouble with your suggestion with XFire 1.2.6. I kept getting <code>org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ’tns:application’.</code>. </p>
<p>I recorded my experiences on my <a href="http://ahrumsong.blogspot.com/2007/06/schema-validation-in-xfire.html" rel="nofollow">blog</a>. Basically it was caused by a behaviour that associates first element with wrong namespace. After applying JAXWSProfile, the schema validation started working as shown above. </p>
<p>Hope this help people out there. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafal Rusin</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-4906</link>
		<dc:creator>Rafal Rusin</dc:creator>
		<pubDate>Tue, 27 Feb 2007 19:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-4906</guid>
		<description>OK, I resolved my problem with not validating xs:choices. This was quite tricky. The thing was that XFIRE used a generateSchema method from JAXB&#039;s context if a specific xsd file was not provided. This lead to disappear some parts of xsd.
So what you need to do is to add explicitly an xsd file, eg. in

org.codehaus.xfire.spring.remoting.XFireExporter

    &lt;property name=&quot;schemas&quot;&gt;
      &lt;list&gt;
        &lt;value&gt;classpath:yourfile.xsd&lt;/value&gt;
      &lt;/list&gt;
    &lt;/property&gt;

Regards</description>
		<content:encoded><![CDATA[<p>OK, I resolved my problem with not validating xs:choices. This was quite tricky. The thing was that XFIRE used a generateSchema method from JAXB&#8217;s context if a specific xsd file was not provided. This lead to disappear some parts of xsd.<br />
So what you need to do is to add explicitly an xsd file, eg. in</p>
<p>org.codehaus.xfire.spring.remoting.XFireExporter</p>
<p>    &lt;property name=&#8221;schemas&#8221;&gt;<br />
      &lt;list&gt;<br />
        &lt;value&gt;classpath:yourfile.xsd&lt;/value&gt;<br />
      &lt;/list&gt;<br />
    &lt;/property&gt;</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafal Rusin</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-4903</link>
		<dc:creator>Rafal Rusin</dc:creator>
		<pubDate>Tue, 27 Feb 2007 13:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-4903</guid>
		<description>I moved xsd types to a separate file, and it works. 

[code]
                                                                                                                                                                                                   
                                                                                                     
                                                                                                                                     
                                                                                                                                                                                                  
    
[/code]

However I encountered problems with schema validation. Xerces used by xfire recognize  
elements from xsd. So it passes not valid xml files. Any ideas why?

Regards</description>
		<content:encoded><![CDATA[<p>I moved xsd types to a separate file, and it works. </p>
<p>[code]</p>
<p>[/code]</p>
<p>However I encountered problems with schema validation. Xerces used by xfire recognize<br />
elements from xsd. So it passes not valid xml files. Any ideas why?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos Toledo</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-4644</link>
		<dc:creator>Marcos Toledo</dc:creator>
		<pubDate>Wed, 14 Feb 2007 19:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-4644</guid>
		<description>Hey Daniel,

We are having a very similar problem using XFire validation. And, curiously, we are also working with it on the TISS project! &quot;cancelaGuia&quot;, etc.

Wonder if maybe we could meet up and exchange some information? You can reach me at mtoledo at amil.com.br

Cheers!</description>
		<content:encoded><![CDATA[<p>Hey Daniel,</p>
<p>We are having a very similar problem using XFire validation. And, curiously, we are also working with it on the TISS project! &#8220;cancelaGuia&#8221;, etc.</p>
<p>Wonder if maybe we could meet up and exchange some information? You can reach me at mtoledo at amil.com.br</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-4529</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 07 Feb 2007 18:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-4529</guid>
		<description>Hi! 

Great blog, congratulations!

But still, I am having a problem with the validation, using the schema that come inside of my web-service wsdl. He loads all the schemas that are imported, but the elements that are declared inside my wsdl, he refuses to find:

org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element &#039;tis:cancelaGuia&#039;.

Any help?

Tanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi! </p>
<p>Great blog, congratulations!</p>
<p>But still, I am having a problem with the validation, using the schema that come inside of my web-service wsdl. He loads all the schemas that are imported, but the elements that are declared inside my wsdl, he refuses to find:</p>
<p>org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element &#8217;tis:cancelaGuia&#8217;.</p>
<p>Any help?</p>
<p>Tanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olivier</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-2895</link>
		<dc:creator>olivier</dc:creator>
		<pubDate>Wed, 22 Nov 2006 09:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-2895</guid>
		<description>It works great. Thank you again. &quot;Vive l&#039;open source !&quot;</description>
		<content:encoded><![CDATA[<p>It works great. Thank you again. &#8220;Vive l&#8217;open source !&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Ananiev</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-2877</link>
		<dc:creator>Alexander Ananiev</dc:creator>
		<pubDate>Wed, 22 Nov 2006 04:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-2877</guid>
		<description>Hello, sure. I just created an entry in XFire Jira for that, it has all the details:
http://jira.codehaus.org/browse/XFIRE-771

Let me know if you still have questions. 

Alexander.</description>
		<content:encoded><![CDATA[<p>Hello, sure. I just created an entry in XFire Jira for that, it has all the details:<br />
<a href="http://jira.codehaus.org/browse/XFIRE-771" rel="nofollow">http://jira.codehaus.org/browse/XFIRE-771</a></p>
<p>Let me know if you still have questions. </p>
<p>Alexander.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olivier</title>
		<link>http://myarch.com/using-schema-validation-with-jaxb-and-xfire/comment-page-1#comment-2861</link>
		<dc:creator>olivier</dc:creator>
		<pubDate>Tue, 21 Nov 2006 16:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/using-schema-validation-with-jaxb-and-xfire#comment-2861</guid>
		<description>Hi,

Nice work. You say that &quot;A simple change in XFire&#039;s JaxbType class fixes that though&quot;. Could you be more precise ?
Thanks a lot !</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice work. You say that &#8220;A simple change in XFire&#8217;s JaxbType class fixes that though&#8221;. Could you be more precise ?<br />
Thanks a lot !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

