<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8806192486267003168</id><updated>2026-07-21T23:40:11.817-07:00</updated><title type='text'>Java, SOA and Cloud</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-5799453960506315833</id><published>2011-08-12T12:00:00.000-07:00</published><updated>2011-08-12T12:00:16.388-07:00</updated><title type='text'>Webservice Spring WS-Security</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;My previous blog I explain some SOA concept. Now&amp;nbsp; In this blog I am jumping to some practical and explaining how to setup some basic web services with Spring framework and how to implement some security with web Services. To run this example&amp;nbsp; you need JDK 1.5+ and spring framework 3.0+&lt;br /&gt;
&lt;br /&gt;
I created some basic configuration. Here are list.&lt;br /&gt;
1. &lt;b&gt;applicationContext-service.xml&lt;/b&gt; -- It has some basic configuration of web service in spring&lt;br /&gt;
2. &lt;b&gt;HelloWorldWS.java&lt;/b&gt; -- This class is exposing webservice&lt;br /&gt;
3.&lt;b&gt; HelloWorldServiceHandler.java &lt;/b&gt;-- This class is monitoring incoming request and outgoing message. Here we implement WS-security.&lt;br /&gt;
4.&lt;b&gt; HelloWorldManager.java&lt;/b&gt; -- This class&amp;nbsp; is interface for business implementation.&lt;br /&gt;
5. &lt;b&gt;HelloWorldManager&lt;/b&gt;&lt;b&gt;Impl&lt;/b&gt;&lt;b&gt;.java&lt;/b&gt; -- This class has business implementation. &lt;br /&gt;
&lt;br /&gt;
Now lets start how I implemented this web service. here are codes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;1. applicationContext-service.xml&lt;/span&gt;&lt;/b&gt; --&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:wss=&quot;http://jax-ws.dev.java.net/spring/servlet&quot;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:ws=&quot;http://jax-ws.dev.java.net/spring/core&quot;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http://jax-ws.dev.java.net/spring/core&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http://jax-ws.dev.java.net/spring/core.xsd&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http://jax-ws.dev.java.net/spring/servlet&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http://jax-ws.dev.java.net/spring/servlet.xsd&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id=&quot;constantMap&quot; class=&quot;java.util.HashMap&quot; /&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ws:service id=&quot;SOAPservice&quot; bean=&quot;#helloWorldWS&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ws:handlers&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean=&quot;helloWorldHandler&quot; /&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ws:handlers&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ws:service&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wss:bindings id=&quot;jaxWs&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wss:bindings&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wss:binding url=&quot;/webservices/HelloWorldService&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wss:service&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean=&quot;SOAPservice&quot;/&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wss:service&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wss:binding&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wss:bindings&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wss:bindings&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id=&quot;helloWorldHandler&quot; class=&quot;com.worldofsoa.service.handler.HelloWorldServiceHandler&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;constantMap&quot; ref=&quot;constantMap&quot; /&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Injecting DAO Object --&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id=&quot;helloWorldManager&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;target&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class=&quot;com.worldofsoa.service.impl.HelloWorldManagerImpl&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;userDAO&quot;&amp;gt;&amp;lt;ref bean=&quot;userDAO&quot;/&amp;gt;&amp;lt;/property&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id=&quot;helloWorldWS&quot; class=&quot;com.worldofsoa.service.impl.HelloWorldWS&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name=&quot;helloWorldManager&quot;&amp;gt;&amp;lt;ref bean=&quot;helloWorldManager&quot;/&amp;gt;&amp;lt;/property&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/div&gt;&lt;div style=&quot;color: #6aa84f;&quot;&gt;&amp;nbsp; &amp;lt;/beans&amp;gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;2. &lt;b&gt;HelloWorldWS.java&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #073763;&quot;&gt;package com.worldofsoa.service;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.annotation.Resource;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.jws.WebMethod;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.jws.WebParam;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.jws.WebResult;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.jws.WebService;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.jws.soap.SOAPBinding;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import javax.xml.ws.WebServiceContext;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import com.worldofsoa.service.HelloWorldManager;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoRequest;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoResponse;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;@WebService (targetNamespace=&quot;http://www.worldofsoa.com/helloWorldService&quot;,serviceName = &quot;HelloWorldService&quot;)&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;public class HelloWorldWS {&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private HelloWorldManager helloWorldManager;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@Resource&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WebServiceContext context;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @WebMethod(exclude=true)&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setHelloWorldManager(HelloWorldManager helloWorldManager) {&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.helloWorldManager = helloWorldManager;&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @WebMethod(operationName = &quot;getPeopleInfo&quot;)&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @WebResult(name = &quot;PeopleInfo&quot;, partName = &quot;PeopleInfo&quot;)&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PeopleInfoResponse getPeopleInfo(@WebParam(name = &quot;PeopleInfoRequest&quot;, partName = &quot;PeopleInfoRequest&quot;,targetNamespace=&quot;http://www.worldofsoa.com/helloWorldService&quot;) PeopleInfoRequest peopleInfoRequest) throws Exception {&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return helloWorldManager.getPeopleInfo(peopleInfoRequest);&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;br style=&quot;color: #073763;&quot; /&gt;&lt;span style=&quot;color: #073763;&quot;&gt;}&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;&lt;b&gt;3. &lt;/b&gt;&lt;b&gt;HelloWorldServiceHandler.java&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;package com.worldofsoa.service.handler;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import java.io.ByteArrayOutputStream;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import java.util.Iterator;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import java.util.Map;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import java.util.Set;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.namespace.QName;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.SOAPElement;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.SOAPEnvelope;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.SOAPHeader;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.SOAPMessage;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.SOAPPart;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.ws.handler.MessageContext;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.ws.handler.soap.SOAPHandler;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.ws.handler.soap.SOAPMessageContext;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import javax.xml.soap.Name;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import org.apache.commons.logging.Log;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;import org.apache.commons.logging.LogFactory;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;public class HelloWorldServiceHandler implements SOAPHandler&amp;lt;SOAPMessageContext&amp;gt; {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final Log log = LogFactory.getLog(HelloWorldServiceHandler.class);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /** The Constant USERNAME_TOKEN_STRING. */&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String USERNAME_TOKEN_STRING = &quot;UsernameToken&quot;;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /** The Constant USERNAME_STRING. */&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String USERNAME_STRING = &quot;Username&quot;;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /** The Constant PASSWORD_STRING. */&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String PASSWORD_STRING = &quot;Password&quot;;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private Map&amp;lt;String, String&amp;gt; constantMap;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Set&amp;lt;QName&amp;gt; getHeaders() {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void close(MessageContext context) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean handleFault(SOAPMessageContext context) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; logToSystemOut(context);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean handleMessage(SOAPMessageContext context) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Boolean outboundProperty = (Boolean) context&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; boolean isSoapRequestHandle = false;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (outboundProperty.booleanValue()) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; isSoapRequestHandle = true;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /* ************************************************************************&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are manupulating outgoing header then you need to add this code&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;**************************************************************************&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* try { SOAPMessage message = context.getMessage();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPPart sp = message.getSOAPPart();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPEnvelope envelope = sp.getEnvelope();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPHeader header = envelope.addHeader();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPElement security = header.addChildElement(&quot;Security&quot;, &quot;wsse&quot;,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* &quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* );&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPElement usernameToken =&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* security.addChildElement(&quot;UsernameToken&quot;, &quot;wsse&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* usernameToken.addAttribute(new QName(&quot;xmlns:wsu&quot;),&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* &quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* );&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPElement username = usernameToken.addChildElement(&quot;Username&quot;,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* &quot;wsse&quot;); username.addTextNode(&quot;TestUser&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* SOAPElement password = usernameToken.addChildElement(&quot;Password&quot;,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* &quot;wsse&quot;); password.setAttribute(&quot;Type&quot;,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* &quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText&quot;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* ); password.addTextNode(&quot;TestPassword&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* //Print out the outbound SOAP message to System.out&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* message.writeTo(System.out); System.out.println(&quot;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* }catch (Exception e) { e.printStackTrace();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPMessage message = context.getMessage();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPPart sp = message.getSOAPPart();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPEnvelope envelope = sp.getEnvelope();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPHeader sh = envelope.getHeader();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; isSoapRequestHandle = processSOAPHeader(sh);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; message.writeTo(System.out);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (!isSoapRequestHandle) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPElement errorMessage = sh.addChildElement(&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;errorMessage&quot;, &quot;error&quot;,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;http://worldofsoa.com/helloService/error&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPElement error = errorMessage.addChildElement(&quot;error&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; error.addTextNode(&quot;Authentication Failed !!!&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; logToSystemOut(context);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return isSoapRequestHandle;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void logToSystemOut(SOAPMessageContext smc) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Boolean outboundProperty = (Boolean) smc&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (outboundProperty.booleanValue()) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.debug(&quot;\nOutgoing message:&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.debug(&quot;\nIncoming message:&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPMessage message = smc.getMessage();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.debug(handleRequestAndResponse(message));&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Exception in handler: &quot; + e);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private String handleRequestAndResponse(SOAPMessage msg) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ByteArrayOutputStream obj = new ByteArrayOutputStream();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; msg.writeTo(obj);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return obj.toString();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception ex) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; obj = null;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ex.printStackTrace();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return &quot;&quot;;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private boolean processSOAPHeader(SOAPHeader sh) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; boolean authenticated = false;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // look for authentication header element inside the HEADER block&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Iterator childElems = sh.getChildElements();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPElement child = extractUserNameInfo(childElems);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (child != null) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // call method to perform authentication&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; authenticated = authenticateRequest(child);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return authenticated;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private SOAPElement extractUserNameInfo(Iterator childElems) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPElement child = null;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Name sName;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // iterate through child elements&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while (childElems.hasNext()) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Object elem = childElems.next();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (elem instanceof SOAPElement) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Get child element and its name&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; child = (SOAPElement) elem;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sName = child.getElementName();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Check whether there is a UserNameToken element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (!USERNAME_TOKEN_STRING.equalsIgnoreCase(sName&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .getLocalName())) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (child.getChildElements().hasNext()) { // TODO check&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // logic&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return extractUserNameInfo(child.getChildElements());&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return child;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private boolean authenticateRequest(SOAPElement element) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; boolean authenticated = false;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // variable for user name and password&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String userName = null;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String password = null;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Name sName;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get an iterator on child elements of SOAP element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Iterator childElems = element.getChildElements();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOAPElement child;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // loop through child elements&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while (childElems.hasNext()) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get next child element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Object elem = childElems.next();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (elem instanceof SOAPElement) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; child = (SOAPElement) elem;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get the name of SOAP element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sName = child.getElementName();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get the value of username element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (USERNAME_STRING.equalsIgnoreCase(sName.getLocalName())) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; userName = child.getValue();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (PASSWORD_STRING.equalsIgnoreCase(sName&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .getLocalName())) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // get the value of password element&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; password = child.getValue();&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (userName != null &amp;amp;&amp;amp; password != null) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // ClientLoginModule.login(&quot;WEBSERVICE&quot; + &quot;^&quot; + userName,&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // password);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // return true;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; authenticated = getUserAuth(userName, password);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (userName == null || password == null) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.warn(&quot;Username or password is empty. userName : [&quot; + userName&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot;], password : [&quot; + password + &quot;]&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return authenticated;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Map&amp;lt;String, String&amp;gt; getConstantMap() {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return constantMap;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setConstantMap(Map&amp;lt;String, String&amp;gt; constantMap) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.constantMap = constantMap;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private boolean getUserAuth(String username, String password) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Constant Map populated with database information&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbUserId = (String) constantMap.get(&quot;useIdFormDatabase&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String dbPassword = (String) constantMap&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; .get(&quot;passwordFormDatabase&quot;);&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (dbUserId.equalsIgnoreCase(username) &amp;amp;&amp;amp; dbPassword.equals(password)) {&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;4. &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;HelloWorldManager.java -&lt;/span&gt;-&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #741b47;&quot;&gt;package com.worldofsoa.service;&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoRequest;&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoResponse;&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;public interface HelloWorldManager {&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PeopleInfoResponse getPeopleInfo(PeopleInfoRequest peopleInfoRequest) throws Exception;&lt;/span&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;br style=&quot;color: #741b47;&quot; /&gt;&lt;span style=&quot;color: #741b47;&quot;&gt;}&lt;/span&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;5. &lt;b&gt;HelloWorldManager&lt;/b&gt;&lt;b&gt;Impl&lt;/b&gt;&lt;b&gt;.java --&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;package com.worldofsoa.service.impl;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import java.math.BigDecimal;&lt;br /&gt;
import java.math.BigInteger;&lt;br /&gt;
import java.util.ArrayList;&lt;br /&gt;
import java.util.Calendar;&lt;br /&gt;
import java.util.Date;&lt;br /&gt;
import java.util.GregorianCalendar;&lt;br /&gt;
import java.util.Iterator;&lt;br /&gt;
import java.util.List;&lt;br /&gt;
import java.util.Map;&lt;br /&gt;
import java.util.Set;&lt;br /&gt;
&lt;br /&gt;
import javax.xml.datatype.DatatypeConfigurationException;&lt;br /&gt;
import javax.xml.datatype.DatatypeConstants;&lt;br /&gt;
import javax.xml.datatype.DatatypeFactory;&lt;br /&gt;
import javax.xml.datatype.XMLGregorianCalendar;&lt;br /&gt;
&lt;br /&gt;
import org.apache.commons.logging.Log;&lt;br /&gt;
import org.apache.commons.logging.LogFactory;&lt;br /&gt;
import org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer;&lt;br /&gt;
&lt;br /&gt;
import com.worldofsoa.dao.UserDAO;&lt;br /&gt;
import com.worldofsoa.model.PeopleVO;&lt;br /&gt;
import com.worldofsoa.service.HelloWorldManager;&lt;/div&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;import com.worldofsoa.xml.schema.ObjectFactory;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;import com.worldofsoa.xml.schema.Person;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoRequest;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;import com.worldofsoa.xml.schema.PeopleInfoResponse;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;public class HelloWorldManagerImpl implements HelloWorldManager {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private UserDAO userDAO;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PeopleInfoResponse getPeopleInfo(PeopleInfoRequest peopleInfoRequest) throws Exception {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectFactory factory = new ObjectFactory();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PeopleInfoResponse peopleInfoResponse = factory.createPeopleInfoResponse();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PeopleVO peopleVO = new PeopleVO();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; peopleVO.setPeopleId(peopleInfoRequest.getPeopleId());&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; peopleVO = userDAO.getPeopleInfo(peopleVO);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Person person = factory.createPerson();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; person.setFirstName(peopleVO.getFirstName());&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; person.setLastName(peopleVO.getLastName());&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; person.setType(peopleVO.getPeopleType());&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; person.setCreateDate(getXmlDate(peopleVO.getCreateDate()));&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; peopleInfoResponse.setPerson(person);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; peopleInfoResponse.setMessage(SUCCESS_MESSAGE);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; peopleInfoResponse.setSuccess(true);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return peopleInfoResponse;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private XMLGregorianCalendar getXmlDate(Date date) {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; GregorianCalendar cal = new GregorianCalendar();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cal.setTime(date);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; XMLGregorianCalendar gc = DatatypeFactory.newInstance().newXMLGregorianCalendar(cal);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; gc.setTimezone(DatatypeConstants.FIELD_UNDEFINED);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; gc.setTime(DatatypeConstants.FIELD_UNDEFINED,&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DatatypeConstants.FIELD_UNDEFINED,&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DatatypeConstants.FIELD_UNDEFINED);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return gc;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (DatatypeConfigurationException e) {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.warn(&quot;Cannot format expxiration date: &quot; + date);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }catch(Exception ex){&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.warn(&quot;Cannot format expxiration date: &quot; + ex);&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setUserDAO(UserDAO userDAO) {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.userDAO = userDAO;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/5799453960506315833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/08/webservice-spring-ws-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/5799453960506315833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/5799453960506315833'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/08/webservice-spring-ws-security.html' title='Webservice Spring WS-Security'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-639160665900760465</id><published>2011-03-13T20:14:00.000-07:00</published><updated>2011-03-13T20:17:55.801-07:00</updated><title type='text'>Cloud Security</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Now most of the company wants to embrace cloud computing but security is one of the main concern for these companies. Still CEO or CTO of the companies are feeling uncomfortable to use cloud computing. As an Architect, I also feel this is the one of the main area that cloud based application should focus. According to Gartner, There are seven risk factors for cloud computing.&lt;br /&gt;
&lt;br /&gt;
1. Privileged user access&lt;br /&gt;
2. Regulatory compliance&lt;br /&gt;
3. Data location&lt;br /&gt;
4. Data segregation&lt;br /&gt;
5. Recovery&lt;br /&gt;
6. Investigative support&lt;br /&gt;
7. Long-term viability&lt;br /&gt;
&lt;br /&gt;
There are different levels of risk for different type of cloud. Public cloud is front runner in risk among all other types of cloud. &lt;br /&gt;
In top of these risks still companies are thinking about cloud implementation in their organization. Companies are saying, risk is everywhere and you should mitigate these risks or overcome these risks. &lt;br /&gt;
Cloud is on demand service by provider to consumer, so there should be good understanding of cloud security between provider and consumer like good service level agreement and contract requirement between provider and consumer.&lt;br /&gt;
Here are few points to mitigate risks on cloud.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #3d85c6;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: white; color: #3d85c6;&quot;&gt; Secure logon&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: #3d85c6;&quot;&gt; &lt;/span&gt;&lt;/b&gt;– In cloud make sure every user has unique user id with proper authorization on cloud. It should be managed properly and it should access directory structure to provide access control.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;2. Encrypted data&lt;/span&gt;&lt;/b&gt; – When you are accessing data on cloud particularly SAAS on public cloud, data should be properly encrypted and it should follow government privacy law (GLBA, DPPA, FCRA, HIPAA, etc.).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;3. Secure Data backup&lt;/span&gt;&lt;/b&gt; – Data backup is one of the key areas where provider and subscriber should focus about security. There should be clear understanding between provider and subscriber in SLA (Service Level Agreement) about data backup security. There should be secure tool to data transfer, backup data and restore data in cloud.&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;4. Virtualization Security&lt;/span&gt;&lt;/b&gt; – Virtualization is back bone of cloud computing. There are multiple risks associated with hardware or software virtualization like VM (Virtual machine) isolation, hypervisor or multi-tenancy. To mitigate risk there should be strong and clear isolation level among different VM. There should be good administrative access and control of VM and also good reporting and logging tool for different VM and administration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #3d85c6;&quot;&gt;5. Application Security&lt;/b&gt; -- There are big challenges of application security in different layers of cloud as SAAS, PAAS or IAAS. Application vulnerability is available in almost all level and layer of cloud. To mitigate application vulnerability in cloud we should focus on some of security point as given below.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-left: 10px;&quot;&gt;&lt;span style=&quot;color: #45818e;&quot;&gt;a)&lt;/span&gt; Secure communication between application host machine and consumer.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;b)&lt;/span&gt; Audit and review the application security on cloud in each level of SDLC (Software&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Development Life Cycle).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;c)&lt;/span&gt; There should be clear security SLA (Service Level Agreement) of application between&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cloud provider and consumer for each layer of clouds (SAAS, PAAS, and IAAS).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #45818e;&quot;&gt;d)&lt;/span&gt; Encrypted Application data should transit over network.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;addthis_toolbox addthis_default_style &quot;&gt;&lt;a class=&quot;addthis_button_compact&quot; href=&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;username=rajnish75&quot;&gt;Share&lt;/a&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
var addthis_config = {&quot;data_track_clickback&quot;:true};
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=rajnish75&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/639160665900760465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/03/cloud-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/639160665900760465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/639160665900760465'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/03/cloud-security.html' title='Cloud Security'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-783767229004840489</id><published>2011-02-06T13:26:00.000-08:00</published><updated>2011-02-06T13:31:09.511-08:00</updated><title type='text'>What is ESB?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Few days back, one of my friends asked me, what is ESB? How does ESB fit in SOA? It was an interesting question.  Let me explain how does ESB work for SOA.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Initially when organization was going to webservice they were getting issue with integration, orchestration, communication, transaction with services etc. Whenever they were making any change in vendor or services, this change was propagating to code and application. It was big change management for any small change in business or vendor services. It was also taking long time and resources to make any change in business or vendor services. There was no clear SLA (Service Level Agreement) between consumer and service provider.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; ESB (Enterprise Service Bus) gave major contribution to overcome all these issues. ESB is back bone of SOA. It provides pluggable architecture which enables easy decoupling of  producer from consumer. It is an extension of EAI (Enterprise Application Integration), an earlier version of middleware, but it adds several other features. ESB is XML based technology. You can define end point, routing rule of message, transaction, or security in xml without doing any line of coding. ESB has clear SLA (Service Level Agreement) between consumer and service provider.  Here are the main features of ESB.&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;1&lt;/span&gt;. &lt;b style=&quot;color: #3d85c6;&quot;&gt;Service Virtualization&lt;/b&gt; – ESB provides loosely couple architecture. You can couple or decouple your services without touching any part of code or services. In ESB you can define end point for each services and their routing rule. You can easily add or remove these services from ESB. Service virtualization gives an ability to define abstract service end point instead of using actual physical address.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;2&lt;/span&gt;.&lt;b style=&quot;color: #3d85c6;&quot;&gt; Service Enablement&lt;/b&gt; – Organization were struggling to enable legacy system as services. ESB adapter such as JDBC adapter, Mainframe adapter etc., gives more flexibility to create SOAP based Webservice of any organization. This functionality reduces your IT investments and you can reuse your existing system. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;3&lt;/span&gt;.&lt;b style=&quot;color: #3d85c6;&quot;&gt; Asynchronous Communication&lt;/b&gt; – ESB is the key infrastructure for message process and rerouting. ESB provides the platform for asynchronous message with intelligent transformation and rerouting to ensure messages are passed reliably. Services participate in the ESB using either Web services messaging standard or the JMS (Java Messaging System).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;4&lt;/span&gt;.&lt;b&gt; &lt;span style=&quot;color: #3d85c6;&quot;&gt;Protocol Bridging&lt;/span&gt;&lt;/b&gt; – ESB provides bridging between inbound message and out bound message. Like ESB gets inbound message as HTTP protocol and send to outbound as JMS protocol in one message flow. Both inbound message and outbound message communicate each other without knowing each other protocols.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc8jjdg_ZBrXzdJ6GBCXgINA1h5zsa2d4Vkc0HTMde6d6ekMwzpyJc0xDvfO3tfkSDbo2t0ekuO7arzLYLpyvqTCfgMSKgGiB45yQWsHUeE6J4tYCAkPYOKPwkeW854OgHWxZ6SRX1DQ0/s1600/esb.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc8jjdg_ZBrXzdJ6GBCXgINA1h5zsa2d4Vkc0HTMde6d6ekMwzpyJc0xDvfO3tfkSDbo2t0ekuO7arzLYLpyvqTCfgMSKgGiB45yQWsHUeE6J4tYCAkPYOKPwkeW854OgHWxZ6SRX1DQ0/s320/esb.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;addthis_toolbox addthis_default_style &quot;&gt;&lt;a class=&quot;addthis_button_compact&quot; href=&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;username=rajnish75&quot;&gt;Share&lt;/a&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
var addthis_config = {&quot;data_track_clickback&quot;:true};
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=rajnish75&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/783767229004840489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/02/what-is-esb.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/783767229004840489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/783767229004840489'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/02/what-is-esb.html' title='What is ESB?'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc8jjdg_ZBrXzdJ6GBCXgINA1h5zsa2d4Vkc0HTMde6d6ekMwzpyJc0xDvfO3tfkSDbo2t0ekuO7arzLYLpyvqTCfgMSKgGiB45yQWsHUeE6J4tYCAkPYOKPwkeW854OgHWxZ6SRX1DQ0/s72-c/esb.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-3440122561782198774</id><published>2011-01-25T20:58:00.000-08:00</published><updated>2011-01-26T16:29:10.856-08:00</updated><title type='text'>What is virtualization?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Virtualization concept came in 1960. It was brought by IBM for the Mainframe server to fully utilize hardware resources by logical partitioning them in virtual machine (VM). In 1980’s and 1990’s era, we almost forgot this technology due to rise of desktop and client server computing.&lt;br /&gt;
After this era we jumped on distributed computing technology. Company started to use multiple servers to execute their application. Each server took extra space and used more power and cooling which gave rise to extra expenditure cost to run application.&lt;br /&gt;
To overcome all this extra expenditure company started to explore virtualization. VM ware is one of the leading companies which provide virtualization. Virtualization is old technology in new box with more powerful resources and options.   &lt;br /&gt;
Virtualization is the partitioning of not only mainframe server but any physical server into multiple virtual servers.  It gives organization maximum utilization of hardware with same CAPEX (ongoing capital expenditure) and OPEX (ongoing Operational expenditure). Each server acts like a real physical server that can run on operating system with just like physical server. Now companies are partitioning their physical server into multiple virtual servers and run their application on virtual servers with same resources and less expenditure.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcj0ybu9ave3DWjN-JWRi-sgrSawT6yEOCZoa_k71ORfIAxX7ULGL5apH1iMdnsZjW7SvaYtp8VRKSjdwTR4ijrCyJjmO0FEyJw0qNEQmt9oePC76KOIB5AyUJrepLxg2Nl99ljgVv78s/s1600/without_virtualization.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcj0ybu9ave3DWjN-JWRi-sgrSawT6yEOCZoa_k71ORfIAxX7ULGL5apH1iMdnsZjW7SvaYtp8VRKSjdwTR4ijrCyJjmO0FEyJw0qNEQmt9oePC76KOIB5AyUJrepLxg2Nl99ljgVv78s/s320/without_virtualization.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8vx6VRg-tmPNaDg_htSYWXv2B7nBqodK7ZuIL_XVT6YQKsxobcyJ_dlsG3zeleUapad-wpxgmMftUc4t8BEXSDtzOcku_ZzV0s5S_gBqfwqzvAW1STb4e-p2PLvmb8ly7AMHbvQ-vD7c/s1600/virtualization.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8vx6VRg-tmPNaDg_htSYWXv2B7nBqodK7ZuIL_XVT6YQKsxobcyJ_dlsG3zeleUapad-wpxgmMftUc4t8BEXSDtzOcku_ZzV0s5S_gBqfwqzvAW1STb4e-p2PLvmb8ly7AMHbvQ-vD7c/s320/virtualization.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;There are three different types of virtualization&lt;/div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Hardware virtualization&lt;/b&gt; – Hardware virtualization allow us to run different OS (Operating Server) and different servers simultaneously on the same hardware.&amp;nbsp; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Desktop virtualization&lt;/b&gt; – Desktop virtualization allow us to run different desktop for different users simultaneously on the same hardware.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Storage virtualization&lt;/b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;– Storage virtualization is the pooling of physical storage from multiple network devices  on the same hardware.&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;addthis_toolbox addthis_default_style &quot;&gt;&lt;a class=&quot;addthis_button_compact&quot; href=&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;username=rajnish75&quot;&gt;Share&lt;/a&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;
var addthis_config = {&quot;data_track_clickback&quot;:true};
&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=rajnish75&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/3440122561782198774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/what-is-virtualization.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/3440122561782198774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/3440122561782198774'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/what-is-virtualization.html' title='What is virtualization?'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcj0ybu9ave3DWjN-JWRi-sgrSawT6yEOCZoa_k71ORfIAxX7ULGL5apH1iMdnsZjW7SvaYtp8VRKSjdwTR4ijrCyJjmO0FEyJw0qNEQmt9oePC76KOIB5AyUJrepLxg2Nl99ljgVv78s/s72-c/without_virtualization.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-9045899157230239220</id><published>2011-01-18T19:41:00.000-08:00</published><updated>2011-01-19T12:53:33.907-08:00</updated><title type='text'>Why SOA?</title><content type='html'>&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal; margin-bottom: 12pt;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;In my last blog, I explained about SOA. Now, I am going to explain why we need SOA in addition to all existing technologies. Why is business embracing this technology?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: normal;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;Our IT industry is around 40 years old. When IT industry had started, most of the applications were running on Mainframe. Most of the applications were available through centralized server (Mainframe server). Now IT industry is maturing and it is growing from a centralized infrastructure to a distributed infrastructure. Organizations are transitioning from bus computing to cloud computing. There are many software applications, software platforms and operating systems in there market. Business models are also changing very fast. IT industry is also changing along with business models. IT industry has to support both legacy systems and new systems.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;SOA is a good solution to make a code work with new system and the legacy system at same time. I am summarizing some of the points, why I feel that an organization should implement SOA.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Modular and loosely coupled&lt;/b&gt;&amp;nbsp; --&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt; SOA cuts big monolithic systems and services into small modular services. SOA not only disengages the process from system but it also makes loose couple among systems. If, for instance, a SOA implemented organization wants to implement a new service (Internal service, External service or Cloud based services), it can just plug that service or remove that service from the organization system without touching any existing system. &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Business Driven&lt;/b&gt;&amp;nbsp; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;Now a days, business changes very fast. Mergers and Acquisitions are very common phenomena. Business needs are also changes frequently.&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt; There are different permutations and combination coming in market. IT also has to synchronize with all these business permutations and combination. SOA gives flexibility to work with all these changes with minimal effort. SOA is very close to business as well as the business people. One can define or change business process to address business needs in very small time with minimal effort. In short, organization business can change quickly along with the fast changing market.&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Platform Independent&lt;/b&gt; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;SOA is completely platform independent. SOA service client or consumer can use SOA service without knowing SOA service provider platform, language or operating system. So, one can write SOA service without worrying about who is going to consume the service.&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Easy Service enablement&lt;/b&gt;&amp;nbsp; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;There was big challenge for any organization to make any change in existing legacy system. SOA provides an easy tool to enable existing monolithic application or legacy mainframe system into a SOA service without knowing anything about those systems. Through SOA tool, one can expose interface(s) from existing system as service and use this service in other applications without touching any existing functionality.&amp;nbsp; &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Low Cost development and maintenance&lt;/b&gt; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;As I stated earlier, SOA is modular and loosely coupled. So one can implement new service or modify existing service(s) without touching any other service or application. As a result, it takes very small effort and time to make any change in application that uses SOA. SOA also provides the flexibility, such that service can be reused in any other application. For example, if an organization is using third party service (SAAS) for an application, it can reuse this service in other applications without investing on license, server space or maintenance. In other words, if organization builds a service for one application, it can reuse this service in multiple applications. &lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Easy learning curve&lt;/b&gt; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;SOA is modular and loosely coupled, as such, it has a very easy learning curve. One can start to work on any service without knowing the whole application. SOA technology is completely based on XML and it is one of the easiest technologies and it is accepted by all applications and software.&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;Increased operational efficiency&lt;/b&gt; -- &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;To reuse existing SOA service, one can create new service by using current system or service. In summary, SOA helps us in creating and delivering a new product quickly.&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-size: small; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div class=&quot;addthis_toolbox addthis_default_style &quot;&gt;&lt;a href=&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;username=rajnish75&quot; class=&quot;addthis_button_compact&quot;&gt;Share&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;var addthis_config = {&quot;data_track_clickback&quot;:true};&lt;/script&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=rajnish75&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;!-- AddThis Button END --&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/9045899157230239220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/why-soa.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/9045899157230239220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/9045899157230239220'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/why-soa.html' title='Why SOA?'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-3124171869056716818</id><published>2011-01-11T20:52:00.000-08:00</published><updated>2011-01-19T12:46:23.669-08:00</updated><title type='text'>Types of Cloud Computing</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In my earlier post, I explained about cloud? Now I am going to explain about different types of cloud computing and layers of cloud computing.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Based on organization’s business, economy and technical need, we divide Cloud in different category.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Cloud computing is define in three major technology layers. These are SAAS (Software As A service), PAAS (Platform As A Service) and IASS (Infrastructure As A Service).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn_hio1btjBcpOZEUSS46y49qzst3P3MDIWH3XyZjrrKtyL3s_S8OoEp73sLGQPIUhylSqmhf8_yslVklCS8bP3EL_xSmlOeVtmF3jP6OVD84FT8Ixs5XnHBBO2zkdQiUpKwJu7YJHsQs/s1600/cloud_types.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn_hio1btjBcpOZEUSS46y49qzst3P3MDIWH3XyZjrrKtyL3s_S8OoEp73sLGQPIUhylSqmhf8_yslVklCS8bP3EL_xSmlOeVtmF3jP6OVD84FT8Ixs5XnHBBO2zkdQiUpKwJu7YJHsQs/s1600/cloud_types.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif; font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif; font-size: small;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;1. SAAS (Software As A Service)&lt;/b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;- This is the top technology layer of Cloud Computing and oldest among these three. Under this layer organization gets fully functional applications on-demand to provide specific services such as email management, CRM, ERP, web conferencing and an increasingly wide range of other applications. These software licenses are managed by Cloud computing company.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;2. PAAS (Platform As A Service)&lt;/b&gt; – Second layer of cloud computing is PAAS (Platform As A Service). In this layer organization gets mostly an operating environment to develop application, to run application or to deploy application. PAAS provides operating environment like Java, J2EE, .Net, Window, Linux etc.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;3. IAAS (Infrastructure AS A Service)&lt;/b&gt; – This layer provides all basic, physical and virtual resources used in application for any organization. This includes virtual platform (space on server) on which required operating environment and application are deployed. It also includes storage and datacenter.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;In other dimension, there are 4 types of cloud computing service available. &amp;nbsp;These are Public, Private, Community and Hybrid computing. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;1. Public cloud (External Cloud)&lt;/b&gt; – Public cloud is offering service by third party vendor over internet. If any vendor provides infrastructure, data center, search or other service to any organization, then it comes in public cloud type. This type of cloud shares &amp;nbsp;some benefit like efficiency, High availability, elastic capacity, Low upfront cost, less or no hardware setup and less or no system management. &amp;nbsp;This type of cloud computing service is provided by Amazon EC2, Microsoft Azure, Sun Microsystem cloud, Salesforce etc. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b style=&quot;color: #0b5394;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;2. Private cloud (Internal cloud)&lt;/b&gt; - Private cloud is set up and managed by an enterprise’s own IT department and run inside the organization firewall. If any organization has large number of user and resources, then organization hosts cloud computing within their own firewall. This type of cloud computing is dedicated to that organization. It does not share any resource outside their organization. Any big organization like AT&amp;amp;T, Verizon or Bank of America open their infrastructure or data center near to low cost area and makes the service &amp;nbsp;available &amp;nbsp;through their own cloud, then it called as private Cloud computing. It shares some benefit like efficiency, High availability, elastic capacity, Lower cost over time, full access and flexibility, direct control over quality, service and security.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b style=&quot;color: #3d85c6;&quot;&gt; &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;3. Community cloud (Semi-private cloud)&lt;/b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;– Community cloud is offering service for similar type of business company. This type of cloud is public cloud but it focuses on same vertical domain companies. Like if any cloud dedicated to government or banking organization and it is serving only those types of organization, then it come as community cloud. It shares some benefit like efficiency, High availability, elastic capacity, expertise in domain knowledge, less cost over time compare to public cloud.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;4. Hybrid cloud (Integrated cloud)&lt;/b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt; &lt;/span&gt;- Hybrid cloud is combination of any or all of the other types of cloud. &amp;nbsp;This type of cloud is &amp;nbsp;gaining lot of popularity among organizations. &amp;nbsp;This type of cloud computing give organization more flexibility to manage and share resource between private and public cloud. Like if &amp;nbsp;any organization host their application in public cloud and during peak sales time they need more server and space to handle this request, they can go for public cloud. In this type of cloud computing Model Company keeps &amp;nbsp;all sensitive data (transaction or credit card data) in private cloud and less sensitive data in public cloud. It shares &amp;nbsp;benefits like efficiency, High availability, elastic capacity, more control over quality, service and security, less cost over time compare to public and community cloud.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;!-- AddThis Button BEGIN --&gt;&lt;br /&gt;
&lt;div class=&quot;addthis_toolbox addthis_default_style &quot;&gt;&lt;a href=&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;username=rajnish75&quot; class=&quot;addthis_button_compact&quot;&gt;Share&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script type=&quot;text/javascript&quot;&gt;var addthis_config = {&quot;data_track_clickback&quot;:true};&lt;/script&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=rajnish75&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;!-- AddThis Button END --&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/3124171869056716818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/types-of-cloud-computing.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/3124171869056716818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/3124171869056716818'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/types-of-cloud-computing.html' title='Types of Cloud Computing'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn_hio1btjBcpOZEUSS46y49qzst3P3MDIWH3XyZjrrKtyL3s_S8OoEp73sLGQPIUhylSqmhf8_yslVklCS8bP3EL_xSmlOeVtmF3jP6OVD84FT8Ixs5XnHBBO2zkdQiUpKwJu7YJHsQs/s72-c/cloud_types.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-4953554696085160697</id><published>2011-01-04T21:18:00.000-08:00</published><updated>2011-01-09T20:26:26.081-08:00</updated><title type='text'>What is cloud computing?</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;There are lot of buzz around cloud computing. Almost all big and small companies are talking about cloud computing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cloud computing is service of IT (Information Technology) infrastructure and managed sharing of IT resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: 115%;&quot;&gt;In network diagram(as shown below) internet icon is displayed like cloud. This typically means an area of the diagram or solution that is some else’s concern. The word Cloud in cloud computing is derived from this diagram. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir-O2I9rU_rhiZaD6fwJc40bZ4RcTreeS7zc67dgeCxkKIogwGpc3px4cNGBQTJ2hf_AmRi8CPH4JSe3HPa_hctYr7-q5ZUy9s3M0BmsH2sqkqVLrPrdGnh7lXN1rzjIGo_8hxup-geDs/s1600/cloud_computing.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir-O2I9rU_rhiZaD6fwJc40bZ4RcTreeS7zc67dgeCxkKIogwGpc3px4cNGBQTJ2hf_AmRi8CPH4JSe3HPa_hctYr7-q5ZUy9s3M0BmsH2sqkqVLrPrdGnh7lXN1rzjIGo_8hxup-geDs/s320/cloud_computing.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small; line-height: 115%;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;To understand more about cloud computing we take a car rent example. User rents a car when he needs. User never worries about car maintenance, insurance or other car expenses, he pays for car rent service only.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&amp;nbsp;Similar to car rent, cloud computing provides service over the internet. &amp;nbsp;The beauty of cloud computing is that other company hosts your application. That means they handle the cost of server, maintenance of server and manage software update as per user’s requirement. User pays less for service only. User can increase or decrease service of server as per application requirement. Like user need more server instances in November and December month due to high volume of traffic. So user can demand more server instances for those months only. There is no need to keep all server instances for the whole year. In this way the company saves a lot of money in maintenance of server.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; In summary, Cloud computing provide rapid access to computing at a lower cost of ownership, enabling companies to perform operation that may have previously been unaffordable or impractical.&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/4953554696085160697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/what-is-cloud-computing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/4953554696085160697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/4953554696085160697'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2011/01/what-is-cloud-computing.html' title='What is cloud computing?'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir-O2I9rU_rhiZaD6fwJc40bZ4RcTreeS7zc67dgeCxkKIogwGpc3px4cNGBQTJ2hf_AmRi8CPH4JSe3HPa_hctYr7-q5ZUy9s3M0BmsH2sqkqVLrPrdGnh7lXN1rzjIGo_8hxup-geDs/s72-c/cloud_computing.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8806192486267003168.post-4145908603632387779</id><published>2010-12-28T21:47:00.000-08:00</published><updated>2011-01-13T19:51:27.852-08:00</updated><title type='text'>What is SOA?</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Before hitting my blog, probably you heard a lot of time about the SOA buzzword.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;SOA is acronym of &lt;b&gt;Service Oriented &lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;Architecture&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;So now the first thing which hits your mind is, what is service? How it is related with Architect? &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Let me explain all these buzzwords and how they are related with each other?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Since I am related with telecommunication world, I am giving simple example how SOA comes in picture when you are activating any phone device.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Like when you buy new phone, you need to activate its number and phone features.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;For activating phone user simply calls the customer care or walks to the shop. But behind the scene it communicates with many systems to activate your phone feature based on your requirement and phone device. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Like some of the features are setting up user information, phone number, email id with phone SMS etc.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;All These features are basically &lt;b&gt;Services&lt;/b&gt; for that user which he selects or by default he gets with activation.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now, this service can communicate with each other by n number of way. These services are not necessary to live in same platform of same system. They could be in different environment, different location or different platform.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now these entire scenarios make your system more complicated. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; To simplify these entire scenarios SOA (Service Oriented Architect) comes in picture.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Web service and Messaging are backbone of SOA. Web service is platform independent, environment independent and location independent.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;SOA (Service Oriented Architect) describes how to communicate (Synchronous or Asynchronous) different service or feature to activate user phone. SOA also gives flexibility when this service need to be invoked and what would be sequence order of these services.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://worldofsoa.blogspot.com/feeds/4145908603632387779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://worldofsoa.blogspot.com/2010/12/what-is-soa.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/4145908603632387779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8806192486267003168/posts/default/4145908603632387779'/><link rel='alternate' type='text/html' href='http://worldofsoa.blogspot.com/2010/12/what-is-soa.html' title='What is SOA?'/><author><name>Rajnish Kumar</name><uri>http://www.blogger.com/profile/06950891645944276006</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>