<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Unable to publish Apache CXF STS issue in EAP 6.1
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/mpag1980">Anu Raj</a> in <i>JBoss Web Services Development</i> - <a href="https://community.jboss.org/message/827116#827116">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi Alessio, Thanks for your response. Please find my complete deployment contents below.</p><p><a href="https://community.jboss.org/servlet/JiveServlet/showImage/2-827116-21113/Deployment+structure+of+STS.PNG"><span> https://community.jboss.org/servlet/JiveServlet/downloadImage/2-827116-21113/295-457/Deployment+structure+of+STS.PNG </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>SampleSTS.java</p><p>_____________________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>/*</p><p> * JBoss, Home of Professional Open Source.</p><p> * Copyright 2012, Red Hat Middleware LLC, and individual contributors</p><p> * as indicated by the @author tags. See the copyright.txt file in the</p><p> * distribution for a full listing of individual contributors.</p><p> *</p><p> * This is free software; you can redistribute it and/or modify it</p><p> * under the terms of the GNU Lesser General Public License as</p><p> * published by the Free Software Foundation; either version 2.1 of</p><p> * the License, or (at your option) any later version.</p><p> *</p><p> * This software is distributed in the hope that it will be useful,</p><p> * but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</p><p> * Lesser General Public License for more details.</p><p> *</p><p> * You should have received a copy of the GNU Lesser General Public</p><p> * License along with this software; if not, write to the Free</p><p> * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</p><p><span> * 02110-1301 USA, or see the FSF site: </span><a class="jive-link-external-small" href="http://www.fsf.org" rel="nofollow" target="_blank">http://www.fsf.org</a><span>.</span></p><p> */</p><p>package STS;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import java.util.Arrays;</p><p>import java.util.LinkedList;</p><p>import java.util.List;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import javax.servlet.annotation.WebServlet;</p><p>import javax.xml.ws.WebServiceProvider;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import org.apache.cxf.annotations.EndpointProperties;</p><p>import org.apache.cxf.annotations.EndpointProperty;</p><p>import org.apache.cxf.interceptor.InInterceptors;</p><p>import org.apache.cxf.sts.StaticSTSProperties;</p><p>import org.apache.cxf.sts.operation.TokenIssueOperation;</p><p>import org.apache.cxf.sts.operation.TokenValidateOperation;</p><p>import org.apache.cxf.sts.service.ServiceMBean;</p><p>import org.apache.cxf.sts.service.StaticService;</p><p>import org.apache.cxf.sts.token.provider.SAMLTokenProvider;</p><p>import org.apache.cxf.sts.token.validator.SAMLTokenValidator;</p><p>import org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider;</p><p>import org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@WebServiceProvider(serviceName = "SecurityTokenService",</p><p>&#160;&#160;&#160;&#160;&#160; portName = "UT_Port",</p><p><span>&#160;&#160;&#160;&#160;&#160; targetNamespace = "</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>",</span></p><p>&#160;&#160;&#160;&#160;&#160; wsdlLocation = "WEB-INF/wsdl/ws-trust-1.4-service.wsdl")</p><p>@EndpointProperties(value = {</p><p>&#160;&#160;&#160;&#160;&#160; @EndpointProperty(key = "ws-security.signature.username", value = "mystskey"),</p><p>&#160;&#160;&#160;&#160;&#160; @EndpointProperty(key = "ws-security.signature.properties", value = "stsKeystore.properties"),</p><p>&#160;&#160;&#160;&#160;&#160; @EndpointProperty(key = "ws-security.callback-handler", value = "STSCallbackHandler"),</p><p>&#160;&#160;&#160;&#160;&#160; @EndpointProperty(key = "ws-security.validate.token", value = "false") //to let the JAAS integration deal with validation through the interceptor below</p><p>})</p><p>@InInterceptors(interceptors = {"org.jboss.wsf.stack.cxf.security.authentication.SubjectCreatingPolicyInterceptor"})</p><p>@WebServlet(name = "TestSecurityTokenService", urlPatterns = "/*")</p><p>public class SampleSTS extends SecurityTokenServiceProvider</p><p>{</p><p>&#160;&#160; @SuppressWarnings("deprecation")</p><p>public SampleSTS() throws Exception</p><p>&#160;&#160; {</p><p>&#160;&#160;&#160;&#160;&#160; super();</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; StaticSTSProperties props = new StaticSTSProperties();</p><p>&#160;&#160;&#160;&#160;&#160; props.setSignaturePropertiesFile("stsKeystore.properties");</p><p>&#160;&#160;&#160;&#160;&#160; props.setSignatureUsername("mystskey");</p><p>&#160;&#160;&#160;&#160;&#160; props.setCallbackHandlerClass(STSCallbackHandler.class.getName());</p><p>&#160;&#160;&#160;&#160;&#160; props.setIssuer("DoubleItSTSIssuer");</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; List&lt;ServiceMBean&gt; services = new LinkedList&lt;ServiceMBean&gt;();</p><p>&#160;&#160;&#160;&#160;&#160; StaticService service = new StaticService();</p><p><span>&#160;&#160;&#160;&#160;&#160; service.setEndpoints(Arrays.asList("</span><a class="jive-link-external-small" href="http://localhost:(\\d)*/PalmUtilServices/services/PalmUtilityService" rel="nofollow" target="_blank">http://localhost:(\\d)*/PalmUtilServices/services/PalmUtilityService</a><span>", "</span><a class="jive-link-external-small" href="http://" rel="nofollow" target="_blank">http://</a><span>\\[::1\\]:(\\d)*/PalmUtilServices/services/PalmUtilityService"));</span></p><p>&#160;&#160;&#160;&#160;&#160; services.add(service);</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; TokenIssueOperation issueOperation = new TokenIssueOperation();</p><p>&#160;&#160;&#160;&#160;&#160; issueOperation.setServices(services);</p><p>&#160;&#160;&#160;&#160;&#160; issueOperation.getTokenProviders().add(new SAMLTokenProvider());</p><p>&#160;&#160;&#160;&#160;&#160; issueOperation.setStsProperties(props);</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; TokenValidateOperation validateOperation = new TokenValidateOperation();</p><p>&#160;&#160;&#160;&#160;&#160; validateOperation.getTokenValidators().add(new SAMLTokenValidator());</p><p>&#160;&#160;&#160;&#160;&#160; validateOperation.setStsProperties(props);</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; this.setIssueOperation(issueOperation);</p><p>&#160;&#160;&#160;&#160;&#160; this.setValidateOperation(validateOperation);</p><p>&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>STSCallbackHandler.java</p><p>_________________________</p><p>/**</p><p> * Licensed to the Apache Software Foundation (ASF) under one</p><p> * or more contributor license agreements. See the NOTICE file</p><p> * distributed with this work for additional information</p><p> * regarding copyright ownership. The ASF licenses this file</p><p> * to you under the Apache License, Version 2.0 (the</p><p> * "License"); you may not use this file except in compliance</p><p> * with the License. You may obtain a copy of the License at</p><p> *</p><p><span> * </span><a class="jive-link-external-small" href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></p><p> *</p><p> * Unless required by applicable law or agreed to in writing,</p><p> * software distributed under the License is distributed on an</p><p> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</p><p> * KIND, either express or implied. See the License for the</p><p> * specific language governing permissions and limitations</p><p> * under the License.</p><p> */</p><p>package STS;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import java.io.IOException;</p><p>import javax.security.auth.callback.Callback;</p><p>import javax.security.auth.callback.CallbackHandler;</p><p>import javax.security.auth.callback.UnsupportedCallbackException;</p><p>import org.apache.ws.security.WSPasswordCallback;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>public class STSCallbackHandler implements CallbackHandler {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; public void handle(Callback[] callbacks) throws IOException,</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; UnsupportedCallbackException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (int i = 0; i &lt; callbacks.length; i++) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (callbacks[i] instanceof WSPasswordCallback) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ("mystskey".equals(pc.getIdentifier())) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pc.setPassword("stskpass");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else if ("alice".equals(pc.getIdentifier())) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pc.setPassword("clarinet");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160; }</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>MANIFEST.MF</p><p>_________________</p><p>Manifest-Version: 1.0</p><p>Dependencies: org.apache.ws.security,org.apache.cxf.impl</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>StsKeystore.properties</p><p>_________________________</p><p>#</p><p># Licensed to the Apache Software Foundation (ASF) under one</p><p># or more contributor license agreements. See the NOTICE file</p><p># distributed with this work for additional information</p><p># regarding copyright ownership. The ASF licenses this file</p><p># to you under the Apache License, Version 2.0 (the</p><p># "License"); you may not use this file except in compliance</p><p># with the License. You may obtain a copy of the License at</p><p>#</p><p><span># </span><a class="jive-link-external-small" href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></p><p>#</p><p># Unless required by applicable law or agreed to in writing,</p><p># software distributed under the License is distributed on an</p><p># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</p><p># KIND, either express or implied. See the License for the</p><p># specific language governing permissions and limitations</p><p># under the License.</p><p>#</p><p>org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin</p><p>org.apache.ws.security.crypto.merlin.keystore.type=jks</p><p>org.apache.ws.security.crypto.merlin.keystore.password=stsspass</p><p>org.apache.ws.security.crypto.merlin.keystore.file=stsstore.jks</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>stsstore.jks</p><p>_____________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>ws-trust-1.4-service.wsdl</p><p>________________________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;wsdl:definitions targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:wsp="</span><a class="jive-link-external-small" href="http://www.w3.org/ns/ws-policy" rel="nofollow" target="_blank">http://www.w3.org/ns/ws-policy</a><span>" xmlns:wstrust="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:wsdl="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/wsdl/</a><span>" xmlns:tns="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/</a><span>" xmlns:xs="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema</a><span>" xmlns:wsap10="</span><a class="jive-link-external-small" href="http://www.w3.org/2006/05/addressing/wsdl" rel="nofollow" target="_blank">http://www.w3.org/2006/05/addressing/wsdl</a><span>" xmlns:soap="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/wsdl/soap/" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/wsdl/soap/</a><span>" xmlns:wst="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512</a><span>" xmlns:wsu="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" rel="nofollow" target="_blank">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</a><span>" xmlns:wsam="</span><a class="jive-link-external-small" href="http://www.w3.org/2007/05/addressing/metadata" rel="nofollow" target="_blank">http://www.w3.org/2007/05/addressing/metadata</a><span>"&gt;</span></p><p>&#160; &lt;wsdl:types&gt;</p><p><span>&#160;&#160;&#160; &lt;xs:schema elementFormDefault="qualified" targetNamespace="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512</a><span>"&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:element name="RequestSecurityToken" type="wst:AbstractRequestSecurityTokenType"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:element name="RequestSecurityTokenResponse" type="wst:AbstractRequestSecurityTokenType"/&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:complexType name="AbstractRequestSecurityTokenType"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="lax"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:attribute name="Context" type="xs:anyURI" use="optional"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:anyAttribute namespace="##other" processContents="lax"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/xs:complexType&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:element name="RequestSecurityTokenCollection" type="wst:RequestSecurityTokenCollectionType"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:complexType name="RequestSecurityTokenCollectionType"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:element maxOccurs="unbounded" minOccurs="2" name="RequestSecurityToken" type="wst:AbstractRequestSecurityTokenType"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/xs:complexType&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:element name="RequestSecurityTokenResponseCollection" type="wst:RequestSecurityTokenResponseCollectionType"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;xs:complexType name="RequestSecurityTokenResponseCollectionType"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:element maxOccurs="unbounded" minOccurs="1" ref="wst:RequestSecurityTokenResponse"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/xs:sequence&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;xs:anyAttribute namespace="##other" processContents="lax"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/xs:complexType&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;/xs:schema&gt;</p><p>&#160; &lt;/wsdl:types&gt;</p><p>&#160; &lt;wsdl:message name="RequestSecurityTokenResponseCollectionMsg"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:part name="responseCollection" element="wst:RequestSecurityTokenResponseCollection"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:part&gt;</p><p>&#160; &lt;/wsdl:message&gt;</p><p>&#160; &lt;wsdl:message name="RequestSecurityTokenCollectionMsg"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:part name="requestCollection" element="wst:RequestSecurityTokenCollection"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:part&gt;</p><p>&#160; &lt;/wsdl:message&gt;</p><p>&#160; &lt;wsdl:message name="RequestSecurityTokenResponseMsg"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:part name="response" element="wst:RequestSecurityTokenResponse"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:part&gt;</p><p>&#160; &lt;/wsdl:message&gt;</p><p>&#160; &lt;wsdl:message name="RequestSecurityTokenMsg"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:part name="request" element="wst:RequestSecurityToken"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:part&gt;</p><p>&#160; &lt;/wsdl:message&gt;</p><p>&#160; &lt;wsdl:portType name="SecurityTokenResponseService"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="RequestSecurityTokenResponse"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenResponseMsg"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160; &lt;/wsdl:portType&gt;</p><p>&#160; &lt;wsdl:portType name="STS"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Cancel"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/CancelFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/CancelFinal</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Issue"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseCollectionMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Renew"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/RenewFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/RenewFinal</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Validate"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/ValidateFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/ValidateFinal</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="KeyExchangeToken"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KET" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KET</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseMsg" wsam:Action="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/KETFinal" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/KETFinal</a><span>"&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="RequestCollection"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenCollectionMsg"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseCollectionMsg"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160; &lt;/wsdl:portType&gt;</p><p>&#160; &lt;wsdl:portType name="WSSecurityRequestor"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Challenge"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input message="wstrust:RequestSecurityTokenResponseMsg"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output message="wstrust:RequestSecurityTokenResponseMsg"&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160; &lt;/wsdl:portType&gt;</p><p>&#160; &lt;wsdl:binding name="UT_Binding" type="wstrust:STS"&gt;</p><p>&#160;&#160;&#160; &lt;wsp:PolicyReference URI="#UT_policy"/&gt;</p><p><span>&#160;&#160;&#160; &lt;soap:binding style="document" transport="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/http" rel="nofollow" target="_blank">http://schemas.xmlsoap.org/soap/http</a><span>"/&gt;</span></p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Issue"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160; &lt;wsp:PolicyReference URI="#Input_policy"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;wsp:PolicyReference URI="#Output_policy"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Validate"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160; &lt;wsp:PolicyReference URI="#Input_policy"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;wsp:PolicyReference URI="#Output_policy"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Cancel"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="Renew"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Renew</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="KeyExchangeToken"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KeyExchangeToken" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/KeyExchangeToken</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:operation name="RequestCollection"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:operation soapAction="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/RequestCollection" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/RequestCollection</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:input&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsdl:output&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;soap:body use="literal"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsdl:output&gt;</p><p>&#160;&#160;&#160; &lt;/wsdl:operation&gt;</p><p>&#160; &lt;/wsdl:binding&gt;</p><p>&#160; &lt;wsdl:service name="SecurityTokenService"&gt;</p><p>&#160;&#160;&#160; &lt;wsdl:port name="UT_Port" binding="wstrust:UT_Binding"&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160; &lt;soap:address location="</span><a class="jive-link-external-small" href="http://localhost:8080/CXFworking/services/UT_Port" rel="nofollow" target="_blank">http://localhost:8080/CXFworking/services/UT_Port</a><span>"/&gt;</span></p><p>&#160;&#160;&#160; &lt;/wsdl:port&gt;</p><p>&#160; &lt;/wsdl:service&gt;</p><p>&#160;&#160;&#160; &lt;wsp:Policy wsu:Id="UT_policy"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsp:ExactlyOne&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:All&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsap10:UsingAddressing/&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:SymmetricBinding xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:ProtectionToken&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:X509Token sp:IncludeToken="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:RequireDerivedKeys/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:RequireThumbprintReference/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:WssX509V3Token10/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:X509Token&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:ProtectionToken&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:AlgorithmSuite&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Basic256/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:AlgorithmSuite&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Layout&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Lax/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:Layout&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:IncludeTimestamp/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:EncryptSignature/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:OnlySignEntireHeadersAndBody/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:SymmetricBinding&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:SignedSupportingTokens xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:UsernameToken sp:IncludeToken="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:WssUsernameToken10/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:UsernameToken&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:SignedSupportingTokens&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Wss11 xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:MustSupportRefKeyIdentifier/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:MustSupportRefIssuerSerial/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:MustSupportRefThumbprint/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:MustSupportRefEncryptedKey/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:Wss11&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Trust13 xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:MustSupportIssuedTokens/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:RequireClientEntropy/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:RequireServerEntropy/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:Trust13&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:All&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsp:ExactlyOne&gt;</p><p>&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160; &lt;wsp:Policy wsu:Id="Input_policy"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsp:ExactlyOne&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:All&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:SignedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Body/&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="To" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="From" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="FaultTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="ReplyTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="MessageID" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="RelatesTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="Action" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:SignedParts&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:EncryptedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Body/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:EncryptedParts&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:All&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsp:ExactlyOne&gt;</p><p>&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&#160;&#160;&#160; &lt;wsp:Policy wsu:Id="Output_policy"&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;wsp:ExactlyOne&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;wsp:All&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:SignedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Body/&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="To" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="From" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="FaultTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="ReplyTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="MessageID" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="RelatesTo" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Header Name="Action" Namespace="</span><a class="jive-link-external-small" href="http://www.w3.org/2005/08/addressing" rel="nofollow" target="_blank">http://www.w3.org/2005/08/addressing</a><span>"/&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:SignedParts&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:EncryptedParts xmlns:sp="</span><a class="jive-link-external-small" href="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" rel="nofollow" target="_blank">http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;sp:Body/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/sp:EncryptedParts&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/wsp:All&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/wsp:ExactlyOne&gt;</p><p>&#160;&#160; &lt;/wsp:Policy&gt;</p><p>&lt;/wsdl:definitions&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jboss-web.xml</p><p>_______________</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&lt;!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "</span><a class="jive-link-external-small" href="http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd" target="_blank">http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd</a><span>"&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;jboss-web&gt;</p><p>&#160;&#160; &lt;security-domain&gt;java:/jaas/JBossWS-trust-sts&lt;/security-domain&gt;</p><p>&lt;/jboss-web&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jboss-wsse-server.xml (This file is not included in the above link.But I just tried to include it because it was provided as part of picketlink secure token service)</p><p>______________________</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&lt;jboss-ws-security xmlns="</span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/config" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/config</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>&#160; xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/config" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/config</a><span> </span><a class="jive-link-external-small" href="http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd" rel="nofollow" target="_blank">http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd</a><span>"&gt;</span></p><p>&#160;&#160; &lt;config&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;requires/&gt;</p><p>&#160;&#160; &lt;/config&gt;</p><p>&lt;/jboss-ws-security&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>web.xml</p><p>_____________</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p>&lt;web-app</p><p><span>&#160;&#160; version="2.5" xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee</a><span>"</span></p><p><span>&#160;&#160; xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>&#160;&#160; xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a><span>"&gt;</span></p><p>&#160;&#160; &lt;servlet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;servlet-name&gt;TestSecurityTokenService&lt;/servlet-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;servlet-class&gt;STS.SampleSTS&lt;/servlet-class&gt;</p><p>&#160;&#160; &lt;/servlet&gt;</p><p>&#160;&#160; &lt;servlet-mapping&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;servlet-name&gt;TestSecurityTokenService&lt;/servlet-name&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;url-pattern&gt;/SecurityTokenService/&lt;/url-pattern&gt;</p><p>&#160;&#160; &lt;/servlet-mapping&gt;</p><p>&lt;/web-app&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am sure I am missing something here in web.xml.Thatswhy I could not publish this as a service.</p><p>Please help me out.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>Abarna</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/827116#827116">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>