<?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>Snackycracky Techblog&#187; Snackycracky Blog</title>
	<atom:link href="http://blog.srvme.de/category/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.srvme.de</link>
	<description></description>
	<lastBuildDate>Mon, 14 Jun 2010 21:33:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>migrate appfuse from xfire to cxf</title>
		<link>http://blog.srvme.de/2009/01/06/migrate-appfuse-from-xfire-to-cxf/</link>
		<comments>http://blog.srvme.de/2009/01/06/migrate-appfuse-from-xfire-to-cxf/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:29:35 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[AppFuse]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[cxf]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://snackycracky.wordpress.com/?p=204</guid>
		<description><![CDATA[edit the pom.xml file: change the spring version to 2.5.5. this is below &#60;!&#8211; Framework dependency versions &#8211;&#62; delete the dependency with the artifactId &#8216;xfire-java5&#8242; and &#8216;xfire-spring&#8217; insert the cxf dependencies: &#60;dependency&#62; &#60;groupId&#62;org.apache.cxf&#60;/groupId&#62; &#60;artifactId&#62;cxf-api&#60;/artifactId&#62; &#60;version&#62;2.1.3&#60;/version&#62; &#60;/dependency&#62; &#60;dependency&#62; &#60;groupId&#62;org.apache.cxf&#60;/groupId&#62; &#60;artifactId&#62;cxf-rt-frontend-jaxws&#60;/artifactId&#62; &#60;version&#62;2.1.3&#60;/version&#62; &#60;exclusions&#62; &#60;!-- http://www.jroller.com/melix/entry/apache_cxf_maven_javamail_awful --&#62; &#60;exclusion&#62; &#60;groupId&#62;org.apache.geronimo.specs&#60;/groupId&#62; &#60;artifactId&#62;geronimo-javamail_1.4_spec&#60;/artifactId&#62; &#60;/exclusion&#62; &#60;/exclusions&#62; &#60;/dependency&#62; &#60;dependency&#62; &#60;groupId&#62;org.apache.cxf&#60;/groupId&#62; &#60;artifactId&#62;cxf-rt-transports-http&#60;/artifactId&#62; &#60;version&#62;2.1.3&#60;/version&#62; &#60;/dependency&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>edit the pom.xml file:</p>
<p>change the spring version to 2.5.5.<br />
this is below &lt;!&#8211; Framework dependency versions &#8211;&gt;<br />
delete the dependency with the artifactId &#8216;xfire-java5&#8242; and &#8216;xfire-spring&#8217;<br />
insert the cxf dependencies:</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;dependency&gt;
	&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
  	&lt;artifactId&gt;cxf-api&lt;/artifactId&gt;
  	&lt;version&gt;2.1.3&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
  	&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
	&lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
	&lt;version&gt;2.1.3&lt;/version&gt;
        &lt;exclusions&gt;
              &lt;!-- http://www.jroller.com/melix/entry/apache_cxf_maven_javamail_awful --&gt;
              &lt;exclusion&gt;
                   &lt;groupId&gt;org.apache.geronimo.specs&lt;/groupId&gt;
                   &lt;artifactId&gt;geronimo-javamail_1.4_spec&lt;/artifactId&gt;
              &lt;/exclusion&gt;
        &lt;/exclusions&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
	&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
	&lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
	&lt;version&gt;2.1.3&lt;/version&gt;
&lt;/dependency&gt;</pre>
</ul>
<p>exclude also asm and the cglib from the hibernate dependency</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;exclusion&gt;
	&lt;groupId&gt;asm&lt;/groupId&gt;
	&lt;artifactId&gt;asm&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;exclusion&gt;
	&lt;groupId&gt;asm&lt;/groupId&gt;
	&lt;artifactId&gt;asm-attrs&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;exclusion&gt;
	&lt;groupId&gt;cglib&lt;/groupId&gt;
	&lt;artifactId&gt;cglib&lt;/artifactId&gt;
&lt;/exclusion&gt;</pre>
</ul>
<p>add the asm-all and cglib dependencies to the top level &lt;dependencies&gt;:</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;dependency&gt;
    &lt;groupId&gt;asm&lt;/groupId&gt;
    &lt;artifactId&gt;asm-all&lt;/artifactId&gt;
    &lt;version&gt;3.1&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;cglib&lt;/groupId&gt;
    &lt;artifactId&gt;cglib&lt;/artifactId&gt;
    &lt;version&gt;2.2&lt;/version&gt;
&lt;/dependency&gt;</pre>
</ul>
<p>add the spring-core and spring-web dependency:</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;dependency&gt;
     &lt;groupId&gt;org.springframework&lt;/groupId&gt;
     &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
     &lt;version&gt;${spring.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
      &lt;version&gt;${spring.version}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</ul>
<p>edit the web.xml file and change /WEB-INF/xfire-servlet.xml in the &lt;param-value&gt; of the &lt;!&#8211; Context Configuration locations for Spring XML files to /WEB-INF/cxf-servlet.xml</p>
<p>also replace the servlet named xfire to</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;servlet&gt;
      &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.apache.cxf.transport.servlet.CXFServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;</pre>
</ul>
<p>and also the xfire servlet mapping to</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt; </pre>
</ul>
<p>delete WEB-INF/xfire-servlet.xml and make a new file there called cxf-servlet.xml which has this content:</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>&lt;beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:jaxws="http://cxf.apache.org/jaxws"
        xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"&gt;

        &lt;import resource="classpath:cxf/cxf.xml" /&gt;
        &lt;import resource="classpath:cxf/cxf-extension-soap.xml" /&gt;
        &lt;import resource="classpath:cxf/cxf-servlet.xml" /&gt;

        &lt;!-- #errorManager points to my manager(with the @webservice annotation)
             defined in my applicationContext.xml--&gt;
        &lt;jaxws:endpoint
          id="errorService"
          implementor="#errorManager"
          address="/ErrorService" /&gt;
&lt;/beans&gt;</pre>
</ul>
<p>now something i had to do:<br />
download cxf from <a title="here" href="http://www.apache.org/dyn/closer.cgi?path=%2Fcxf%2F2.1.3%2Fapache-cxf-2.1.3.tar.gz" target="_blank">here</a> and copy the cxf folder from META-INF there to your /WEB-INF/classes/ path. otherwise it will not find the cxf/cxf.xml &#8230;</p>
<p>execute:</p>
<ul style="border:1px solid #D8D8D8;background-color:#F8F8F8;overflow:auto;width:100%;">
<pre>mvn jetty:run</pre>
</ul>
<p>and check for your service at <a title="http://127.0.0.1:8080/services" href="http://127.0.0.1:8080/services" target="_blank">http://127.0.0.1:8080/services </a></p>
<p>i see this here:<br />
<img class="alignnone size-full wp-image-207" title="picture-4" src="http://snackycracky.files.wordpress.com/2009/01/picture-4.png" alt="picture-4" width="480" height="264" /></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
supporting REST like services <a href="http://snackycracky.wordpress.com/2009/01/22/rest-soap-for-cxfapache-appfuse/">here</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>references:</p>
<p>http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html</p>
<p>http://forum.springframework.org/showthread.php?p=179390</p>
<p><a href="http://www.jroller.com/melix/entry/apache_cxf_maven_javamail_awful">http://www.jroller.com/melix/entry/apache_cxf_maven_javamail_awful  (</a> <a href="http://maas-frensch.com/peter/">p3t0r</a>)</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d204').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d204" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;submitHeadline=migrate+appfuse+from+xfire+to+cxf&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;title=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;title=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;title=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;bm_description=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;T=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;title=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;title=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+migrate+appfuse+from+xfire+to+cxf+@+http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fblog.srvme.de%2F2009%2F01%2F06%2Fmigrate-appfuse-from-xfire-to-cxf%2F&amp;t=migrate+appfuse+from+xfire+to+cxf" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d204').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d204').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://blog.srvme.de/2009/01/06/migrate-appfuse-from-xfire-to-cxf/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>webservice appfuse flex spring authentication</title>
		<link>http://blog.srvme.de/2008/12/09/webservice-appfuse-flex-spring-authentication/</link>
		<comments>http://blog.srvme.de/2008/12/09/webservice-appfuse-flex-spring-authentication/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:51:16 +0000</pubDate>
		<dc:creator>nils</dc:creator>
				<category><![CDATA[AppFuse]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[basic authentication]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[free flex builder]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vim syntax highlighting]]></category>
		<category><![CDATA[webservice]]></category>
		<category><![CDATA[wsdl import]]></category>

		<guid isPermaLink="false">http://snackycracky.wordpress.com/?p=189</guid>
		<description><![CDATA[get this here to work: http://appfuse.org/display/APF/Web+Services make a flex project with flexbuilder: if you are a student get flexbuilder for free at https://freeriatools.adobe.com/flex/ now edit the mxml file like this in flexbuilder go to DATA-&#62;imort webservices and get everything from http://127.0.0.1:8080/services/PersonService?wsdl start the flex client and see the person object return! for adding security do [...]]]></description>
			<content:encoded><![CDATA[<p>get this here to work:<br />
<a href="http://appfuse.org/display/APF/Web+Services" target="_blank">http://appfuse.org/display/APF/Web+Services</a></p>
<p>make a flex project with flexbuilder: if you are a student get flexbuilder for free at<a href="https://freeriatools.adobe.com/flex/" target="_blank"> https://freeriatools.adobe.com/flex/</a></p>
<p>now edit the mxml file like <a href="http://srvme.de/trac/snackycracky_techblog/browser/snackycrack_techblog/springSecrityBasicAuth/flexClient.mxml">this</a></p>
<p>in flexbuilder go to DATA-&gt;imort webservices and get everything from http://127.0.0.1:8080/services/PersonService?wsdl</p>
<p>start the flex client and see the person object return!</p>
<p>for adding security do this:</p>
<p>cp target/tutorial-service-2.0.2/WEB-INF/security.xml src/main/webapp/WEB-INF/</p>
<p>in case you havent set the syntax highlighting in vim then vim ~/.vimrc with this:<br />
syntax on<br />
set ruler<br />
set number</p>
<p>edit the security.xml file so it looks like <a href="http://srvme.de/trac/snackycracky_techblog/browser/snackycrack_techblog/springSecrityBasicAuth/security.xml" target="_blank">this</a></p>
<p>comment out the init-params for the securityFilter in web.xml</p>
<p>now start the server again with mvn jetty:run-war</p>
<p>in flex open the BasePersonService.as and add the following line to the method &#8220;private function call(operation:WSDLOperat&#8230;&#8221;<br />
after the var inv:AsyncRequest = new AsyncRequest(); is instanciated:<br />
inv.setRemoteCredentials(&#8220;rod1&#8243;,&#8221;vertikal&#8221;);</p>
<p>restart the flex app and see the login dialog enter there &#8220;rod&#8221; and &#8220;vertikal&#8221;</p>
<p>from:</p>
<p>security.xml modified from: <a href="http://raibledesigns.com/rd/entry/upgrading_to_spring_security_2" target="_blank">http://raibledesigns.com/rd/entry/upgrading_to_spring_security_2</a><br />
i added the beans:bean tag and beans:property &#8230;<br />
flex credentials for webservice from <a href="http://www.flexlive.net/?p=79" target="_blank">http://www.flexlive.net/?p=79</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d189').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d189" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;submitHeadline=webservice+appfuse+flex+spring+authentication&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;title=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;title=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;title=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;bm_description=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;T=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;title=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;title=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+webservice+appfuse+flex+spring+authentication+@+http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fblog.srvme.de%2F2008%2F12%2F09%2Fwebservice-appfuse-flex-spring-authentication%2F&amp;t=webservice+appfuse+flex+spring+authentication" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://blog.srvme.de/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d189').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d189').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://blog.srvme.de/2008/12/09/webservice-appfuse-flex-spring-authentication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
