<!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;">
Per http-provider security for EBWS - possible?
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/scalaenthusiast">Carvel Baus</a> in <i>JBoss ESB Development</i> - <a href="https://community.jboss.org/message/797141#797141">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span>I am attempting to use an HTTPGateway together with a SOAPProxy action to proxy a webservice. I need to be able to provide multiple endpoints, each with a different security contract, for the proxied web service (the point of the multiple endpoints is to have different security configurations.) After reading this post, where a discussion took place about adding the war-security tag to the ESB, it seems that being able to specify different security configurations for each endpoint (configured here using separate http-bus tags) is not possible: </span><a class="jive-link-external-small" href="https://community.jboss.org/message/349913#349913" target="_blank">https://community.jboss.org/message/349913</a><span> </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What would be nice, is to be able to configure separate security configurations for each http-bus reference.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So my question is: Is what I want to do actually possible (JBoss ESB 4.11) and I am just missing it? If not, should it be a feature? It would make what I am trying to do a whole lot easier. If not, it seems I have to deploy multiple war files to handle each end point with differing security contracts and then get the requests to the ESB to be passed onto the proxied web service. Being able to specify it all here in a single ESB deployment file would be great - makes managing it a whole lot easier.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is what my jboss-esb.xml looks like thus far:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>{code:xml}</p><p><?xml version = "1.0" encoding = "UTF-8"?></p><p><jbossesb</p><p><span>    xmlns="</span><a class="jive-link-external-small" href="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd" rel="nofollow" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd</a><span>"</span></p><p>    parameterReloadSecs="5"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <globals></p><p>    <!-- Security setting for all http-providers and all EBWSs in this jboss-esb.xml file.--></p><p>        <war-security method="BASIC" domain="JBossWS" /></p><p>    </globals></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <providers></p><p>       <http-provider name="http"></p><p>           <http-bus busid="noaSecurity"/></p><p>           <http-bus busid="pkiSecurity"/></p><p>           <http-bus busid="wcfSecurity"/></p><p>       </http-provider></p><p>   </providers></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <services></p><p>        <service category="Stock" name="Quote" description="Stock Quote" invmScope="GLOBAL"></p><p>            <listeners></p><p>                <http-gateway name="GW-NOA" busidref="noaSecurity" urlPattern="noa/*" /></p><p>                <http-gateway name="GW-PKI" busidref="pkiSecurity" urlPattern="pki/*"/></p><p>                <http-gateway name="GW-WCF" busidref="wcfSecurity" urlPattern="wcf/*"/></p><p>            </listeners></p><p>            <actions mep="RequestResponse"></p><p>                <action name="proxy" class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy"></p><p><span>                    <property name="wsdl" value="</span><a class="jive-link-external-small" href="http://www.webservicex.net/stockquote.asmx?WSDL" rel="nofollow" target="_blank">http://www.webservicex.net/stockquote.asmx?WSDL</a><span>"/></span></p><p>                    </action></p><p>            </actions></p><p>        </service></p><p>    </services></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></jbossesb></p><p>{code}</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/797141#797141">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>