<?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: How to use Spring Web Services and REST support in conjunction with JAXB 2 annotations</title>
	<atom:link href="http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/</link>
	<description>Et innblikk i hva som skjer i BEKK</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: vamsy krishna</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-389</link>
		<dc:creator>vamsy krishna</dc:creator>
		<pubDate>Wed, 10 Aug 2011 11:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-389</guid>
		<description>


  &lt;!--APR library loader. Documentation at /docs/apr.html --&gt;
  
  &lt;!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --&gt;
  
  &lt;!-- Prevent memory leaks due to use of particular java/javax APIs--&gt;
  
  &lt;!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --&gt;
  
  

  
  
    
    
  

  
  
  
    &lt;!--The connectors can use a shared executor, you can define one or more named thread pools--&gt;
    &lt;!--
    
    --&gt;
    
    
    
    
    &lt;!-- A &quot;Connector&quot; using the shared thread pool--&gt;
    &lt;!--
    
    --&gt;           
    
    &lt;!--
    
    --&gt;

    &lt;!-- Define an AJP 1.3 Connector on port 8009 --&gt;
    


    

    &lt;!-- You should set jvmRoute to support load-balancing via AJP ie :
             
    --&gt; 
    

      
      &lt;!--
      
      --&gt;        

      
      &lt;!--
      
      --&gt;

      
      

      
      

        
        &lt;!--
        
        --&gt;

        
        &lt;!--
        
        --&gt;

      
    
  


In this explain me about context tag    this one...

docBase means what we will take here and  how to set the path</description>
		<content:encoded><![CDATA[<p>  <!--APR library loader. Documentation at /docs/apr.html --><br />
 <br />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --><br />
 <br />
  <!-- Prevent memory leaks due to use of particular java/javax APIs--><br />
 <br />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --><br />
 <br />
  </p>
<p> <br />
 <br />
   <br />
   <br />
  </p>
<p> <br />
 <br />
  <br />
    <!--The connectors can use a shared executor, you can define one or more named thread pools--><br />
    &lt;!&#8211;<br />
   <br />
    &#8211;&gt;<br />
    <br />
    <br />
   <br />
   <br />
    <!-- A "Connector" using the shared thread pool--><br />
    &lt;!&#8211;<br />
   <br />
    &#8211;&gt;           <br />
   <br />
    &lt;!&#8211;<br />
   <br />
    &#8211;&gt;</p>
<p>    <!-- Define an AJP 1.3 Connector on port 8009 --><br />
    </p>
<p>    </p>
<p>    &lt;!&#8211; You should set jvmRoute to support load-balancing via AJP ie :<br />
             <br />
    &#8211;&gt; <br />
    </p>
<p>     <br />
      &lt;!&#8211;<br />
     <br />
      &#8211;&gt;        </p>
<p>     <br />
      &lt;!&#8211;<br />
     <br />
      &#8211;&gt;</p>
<p>     <br />
      </p>
<p>     <br />
      </p>
<p>       <br />
        &lt;!&#8211;<br />
       <br />
        &#8211;&gt;</p>
<p>       <br />
        &lt;!&#8211;<br />
       <br />
        &#8211;&gt;</p>
<p>     <br />
   <br />
  </p>
<p>In this explain me about context tag    this one&#8230;</p>
<p>docBase means what we will take here and  how to set the path</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shameer</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-287</link>
		<dc:creator>Shameer</dc:creator>
		<pubDate>Sun, 14 Nov 2010 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-287</guid>
		<description>Another post on Building a web service with Spring-WS using JAXB Marshaller can be found at http://justcompiled.blogspot.com/2010/09/building-web-service-with-spring-ws.html</description>
		<content:encoded><![CDATA[<p>Another post on Building a web service with Spring-WS using JAXB Marshaller can be found at <a href="http://justcompiled.blogspot.com/2010/09/building-web-service-with-spring-ws.html" rel="nofollow">http://justcompiled.blogspot.com/2010/09/building-web-service-with-spring-ws.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to use Spring Web Services and REST support in conjunction with JAXB 2 annotations (part 2) &#8211; BEKK Open</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-134</link>
		<dc:creator>How to use Spring Web Services and REST support in conjunction with JAXB 2 annotations (part 2) &#8211; BEKK Open</dc:creator>
		<pubDate>Tue, 26 Jan 2010 08:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-134</guid>
		<description>[...] Skip to content Velkommen til BEKK Open!SøkFri programvareRuby on RailsSikkerhet.NET-faggruppenKvalitet og testingCloud computingIT-rådgivningWebarkitekturSystemarkitekturTeknisk prosjektledelseJava     &#171; How to use Spring Web Services and REST support in conjunction with JAXB 2 annotations [...]</description>
		<content:encoded><![CDATA[<p>[...] Skip to content Velkommen til BEKK Open!SøkFri programvareRuby on RailsSikkerhet.NET-faggruppenKvalitet og testingCloud computingIT-rådgivningWebarkitekturSystemarkitekturTeknisk prosjektledelseJava     &laquo; How to use Spring Web Services and REST support in conjunction with JAXB 2 annotations [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonym</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-133</link>
		<dc:creator>Anonym</dc:creator>
		<pubDate>Thu, 21 Jan 2010 15:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-133</guid>
		<description>Same discussion, other people:
http://www.liquid-reality.de/display/liquid/2008/08/20/Defining+Contract+first+webservices+by+generating+wsdl+from+java

:-)</description>
		<content:encoded><![CDATA[<p>Same discussion, other people:<br />
<a href="http://www.liquid-reality.de/display/liquid/2008/08/20/Defining+Contract+first+webservices+by+generating+wsdl+from+java" rel="nofollow">http://www.liquid-reality.de/display/liquid/2008/08/20/Defining+Contract+first+webservices+by+generating+wsdl+from+java</a></p>
<p> <img src='http://open.bekk.no/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonym</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-132</link>
		<dc:creator>Anonym</dc:creator>
		<pubDate>Wed, 20 Jan 2010 12:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-132</guid>
		<description>I know you can&#039;t use restrictions for everything, but I think it is still a great tool - not only to be able to validate the input a service gets (or output the client sends), but also to *communicate* the true contract of the service from the service-provider to the clients.  I&#039;ve seen and used too many generated WSDLs that give me no clues whatsoever as to what input they expect..

The WSDL is the contract, and you should try to make it as good as possible!  If you have code in your service that validate a the input and return an error when it doesn&#039;t match your criteria, but the criteria is not explicitly written in the WSDL, then the WSDL doesn&#039;t really specify the contract, the code does.  (Ooo.. der var det mange innskutte bisetninger.. ;-) But you don&#039;t publish your code, so how is the client supposed to know what data is valid?  

I agree that using annotations and generating a WSDL is a nice way to work, and it may save you a lot of time.  But I wouldn&#039;t call it contract-first..

Regarding Bean Validation - I agree with Cyrille in this thread (http://relation.to/12855.lace); I hope we can get a tool that generates the proper JSR-303 annotations based on restrictions written in the WSDL/XSD.</description>
		<content:encoded><![CDATA[<p>I know you can&#8217;t use restrictions for everything, but I think it is still a great tool &#8211; not only to be able to validate the input a service gets (or output the client sends), but also to *communicate* the true contract of the service from the service-provider to the clients.  I&#8217;ve seen and used too many generated WSDLs that give me no clues whatsoever as to what input they expect..</p>
<p>The WSDL is the contract, and you should try to make it as good as possible!  If you have code in your service that validate a the input and return an error when it doesn&#8217;t match your criteria, but the criteria is not explicitly written in the WSDL, then the WSDL doesn&#8217;t really specify the contract, the code does.  (Ooo.. der var det mange innskutte bisetninger.. <img src='http://open.bekk.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  But you don&#8217;t publish your code, so how is the client supposed to know what data is valid?  </p>
<p>I agree that using annotations and generating a WSDL is a nice way to work, and it may save you a lot of time.  But I wouldn&#8217;t call it contract-first..</p>
<p>Regarding Bean Validation &#8211; I agree with Cyrille in this thread (<a href="http://relation.to/12855.lace" rel="nofollow">http://relation.to/12855.lace</a>); I hope we can get a tool that generates the proper JSR-303 annotations based on restrictions written in the WSDL/XSD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Landrø</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-131</link>
		<dc:creator>Stefan Landrø</dc:creator>
		<pubDate>Wed, 20 Jan 2010 10:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-131</guid>
		<description>Great news - seems like you can set a schema on &lt;code&gt;org.springframework.oxm.jaxb.Jaxb2Marshaller&lt;/code&gt;. Using JAXP for validation should then not be necessary. However, how would you enforce stuff like prime numbers?</description>
		<content:encoded><![CDATA[<p>Great news &#8211; seems like you can set a schema on <code>org.springframework.oxm.jaxb.Jaxb2Marshaller</code>. Using JAXP for validation should then not be necessary. However, how would you enforce stuff like prime numbers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Landrø</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-130</link>
		<dc:creator>Stefan Landrø</dc:creator>
		<pubDate>Wed, 20 Jan 2010 09:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-130</guid>
		<description>Running xjc in jdk 6 on your xsd, generates this:
&lt;pre lang=&quot;java&quot;&gt;
@XmlRegistry
public class ObjectFactory {

    private final static QName _Age_QNAME = new QName(&quot;&quot;, &quot;age&quot;);
    private final static QName _Password_QNAME = new QName(&quot;&quot;, &quot;password&quot;);

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: no.bekk.open.jaxb
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link JAXBElement }{@code &lt;}{@link Integer }{@code &gt;}}
     * 
     */
    @XmlElementDecl(namespace = &quot;&quot;, name = &quot;age&quot;)
    public JAXBElement&lt;Integer&gt; createAge(Integer value) {
        return new JAXBElement&lt;Integer&gt;(_Age_QNAME, Integer.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code &lt;}{@link String }{@code &gt;}}
     * 
     */
    @XmlElementDecl(namespace = &quot;&quot;, name = &quot;password&quot;)
    public JAXBElement&lt;String&gt; createPassword(String value) {
        return new JAXBElement&lt;String&gt;(_Password_QNAME, String.class, null, value);
    }

}
&lt;/pre&gt;

As one can see, the restrictions on values are lost - I wasn&#039;t aware of that. Also, there is no way of declaring restrictions using JAXB annotations - i.e. you can&#039;t generate an XSD containing restrictions from JAXB annotated code. In addition, according to http://www.java-tips.org/java-ee-tips/java-architecture-for-xml-binding/what-is-new-in-jaxb-2.0.html validation is part of JAXP.

Let&#039;s say a service provided me with the XSD from the example, I generate JAXB code from it, implement the client using &quot;1234567890&quot; as a password, I&#039;d have to actually use the validation in JAXP to make sure the message looks as expected. I know for sure that a lot of programmers would never do that, since JAXP offers such a bad API. In addition, there are lots of situations where a value cannot (as far as I know) be restricted properly using XSD anyways - e.g. prime numbers. What would you do then? I know there is some fancy new &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=303&quot; rel=&quot;nofollow&quot;&gt;bean validation&lt;/a&gt; coming in JEE 6 that might help validating input, but you wouldn&#039;t get a corresponding schema. 

Is there anything a part from restrictions that cannot be represented using JAXB annotations?</description>
		<content:encoded><![CDATA[<p>Running xjc in jdk 6 on your xsd, generates this:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@XmlRegistry
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> <span style="color: #003399;">ObjectFactory</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000000; font-weight: bold;">static</span> QName _Age_QNAME <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> QName<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span>, <span style="color: #0000ff;">&quot;age&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000000; font-weight: bold;">static</span> QName _Password_QNAME <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> QName<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span>, <span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: no.bekk.open.jaxb
     * 
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">ObjectFactory</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Create an instance of {@link JAXBElement }{@code &lt;}{@link Integer }{@code &gt;}}
     * 
     */</span>
    @XmlElementDecl<span style="color: #009900;">&#40;</span>namespace <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span>, name <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;age&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">public</span> JAXBElement<span style="color: #339933;">&lt;</span>Integer<span style="color: #339933;">&gt;</span> createAge<span style="color: #009900;">&#40;</span><span style="color: #003399;">Integer</span> value<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">new</span> JAXBElement<span style="color: #339933;">&lt;</span>Integer<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>_Age_QNAME, <span style="color: #003399;">Integer</span>.<span style="color: #000000; font-weight: bold;">class</span>, <span style="color: #000066; font-weight: bold;">null</span>, value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Create an instance of {@link JAXBElement }{@code &lt;}{@link String }{@code &gt;}}
     * 
     */</span>
    @XmlElementDecl<span style="color: #009900;">&#40;</span>namespace <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span>, name <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">public</span> JAXBElement<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span> createPassword<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> value<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">new</span> JAXBElement<span style="color: #339933;">&lt;</span>String<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span>_Password_QNAME, <span style="color: #003399;">String</span>.<span style="color: #000000; font-weight: bold;">class</span>, <span style="color: #000066; font-weight: bold;">null</span>, value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>As one can see, the restrictions on values are lost &#8211; I wasn&#8217;t aware of that. Also, there is no way of declaring restrictions using JAXB annotations &#8211; i.e. you can&#8217;t generate an XSD containing restrictions from JAXB annotated code. In addition, according to <a href="http://www.java-tips.org/java-ee-tips/java-architecture-for-xml-binding/what-is-new-in-jaxb-2.0.html" rel="nofollow">http://www.java-tips.org/java-ee-tips/java-architecture-for-xml-binding/what-is-new-in-jaxb-2.0.html</a> validation is part of JAXP.</p>
<p>Let&#8217;s say a service provided me with the XSD from the example, I generate JAXB code from it, implement the client using &#8220;1234567890&#8243; as a password, I&#8217;d have to actually use the validation in JAXP to make sure the message looks as expected. I know for sure that a lot of programmers would never do that, since JAXP offers such a bad API. In addition, there are lots of situations where a value cannot (as far as I know) be restricted properly using XSD anyways &#8211; e.g. prime numbers. What would you do then? I know there is some fancy new <a href="http://jcp.org/en/jsr/detail?id=303" rel="nofollow">bean validation</a> coming in JEE 6 that might help validating input, but you wouldn&#8217;t get a corresponding schema. </p>
<p>Is there anything a part from restrictions that cannot be represented using JAXB annotations?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonym</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-129</link>
		<dc:creator>Anonym</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-129</guid>
		<description>Ah..  Wordpress removed my XML...  Let me try again.

Stefan: Updated your comment using

&lt;pre lang=&quot;html&quot;&gt;
&lt;pre lang=&quot;xml&quot;&gt;

&lt;/pre&gt;
&lt;/pre&gt;

How can you achieve this using annotations?
&lt;pre lang=&quot;xml&quot;&gt;
&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;

	&lt;xs:element name=&quot;age&quot;&gt;
		&lt;xs:simpleType&gt;
			&lt;xs:restriction base=&quot;xs:integer&quot;&gt;
				&lt;xs:minInclusive value=&quot;0&quot;/&gt;
				&lt;xs:maxInclusive value=&quot;120&quot;/&gt;
			&lt;/xs:restriction&gt;
		&lt;/xs:simpleType&gt;
	&lt;/xs:element&gt;
	
	&lt;xs:element name=&quot;password&quot;&gt;
		&lt;xs:simpleType&gt;
			&lt;xs:restriction base=&quot;xs:string&quot;&gt;
				&lt;xs:pattern value=&quot;[a-zA-Z0-9]{8}&quot;/&gt;
			&lt;/xs:restriction&gt;
		&lt;/xs:simpleType&gt;
	&lt;/xs:element&gt;

&lt;/xs:schema&gt;

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ah..  WordPress removed my XML&#8230;  Let me try again.</p>
<p>Stefan: Updated your comment using</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;pre lang=&quot;xml&quot;&gt;</pre></div></div>

<p>How can you achieve this using annotations?</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:schema</span> <span style="color: #000066;">xmlns:xs</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;age&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:restriction</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;xs:integer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:minInclusive</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:maxInclusive</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;120&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:restriction<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:element<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:restriction</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;xs:string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xs:pattern</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;[a-zA-Z0-9]{8}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:restriction<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:simpleType<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:element<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xs:schema<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Anonym</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-128</link>
		<dc:creator>Anonym</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-128</guid>
		<description>How can you achieve this using annotations?

  
    
      
      
    
  


Or this?

  
    
      
    
  
</description>
		<content:encoded><![CDATA[<p>How can you achieve this using annotations?</p>
<p>Or this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Landrø</title>
		<link>http://open.bekk.no/how-to-use-spring-web-services-and-rest-support/comment-page-1/#comment-127</link>
		<dc:creator>Stefan Landrø</dc:creator>
		<pubDate>Tue, 19 Jan 2010 12:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://open.bekk.no/?p=2304#comment-127</guid>
		<description>Hi there,

I expected someone would ask about that. You define the XML data format using JAXB2 annotations instead of using XSD (or relax ng or dtd for that matter). The way I see it, defining your XML data format using JAXB2 annotations is equivalent to defining it using an XSD schema - please let me know of any shortcommings in the JAXB2 specification if there are any.
That said, it will always make sense to look through the XSD and WSDL to make sure it interoperates well.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I expected someone would ask about that. You define the XML data format using JAXB2 annotations instead of using XSD (or relax ng or dtd for that matter). The way I see it, defining your XML data format using JAXB2 annotations is equivalent to defining it using an XSD schema &#8211; please let me know of any shortcommings in the JAXB2 specification if there are any.<br />
That said, it will always make sense to look through the XSD and WSDL to make sure it interoperates well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

