Carvel Baus [
https://community.jboss.org/people/scalaenthusiast] created the discussion
"Per http-provider security for EBWS - possible?"
To view the discussion, visit:
https://community.jboss.org/message/797141#797141
--------------------------------------------------------------
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:
https://community.jboss.org/message/349913#349913
https://community.jboss.org/message/349913
What would be nice, is to be able to configure separate security configurations for each
http-bus reference.
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.
Here is what my jboss-esb.xml looks like thus far:
{code:xml}
<?xml version = "1.0" encoding = "UTF-8"?>
<jbossesb
xmlns="
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
parameterReloadSecs="5">
<globals>
<!-- Security setting for all http-providers and all EBWSs in this jboss-esb.xml
file.-->
<war-security method="BASIC" domain="JBossWS" />
</globals>
<providers>
<http-provider name="http">
<http-bus busid="noaSecurity"/>
<http-bus busid="pkiSecurity"/>
<http-bus busid="wcfSecurity"/>
</http-provider>
</providers>
<services>
<service category="Stock" name="Quote"
description="Stock Quote" invmScope="GLOBAL">
<listeners>
<http-gateway name="GW-NOA" busidref="noaSecurity"
urlPattern="noa/*" />
<http-gateway name="GW-PKI" busidref="pkiSecurity"
urlPattern="pki/*"/>
<http-gateway name="GW-WCF" busidref="wcfSecurity"
urlPattern="wcf/*"/>
</listeners>
<actions mep="RequestResponse">
<action name="proxy"
class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">
<property name="wsdl" value="
http://www.webservicex.net/stockquote.asmx?WSDL
http://www.webservicex.net/stockquote.asmx?WSDL"/>
</action>
</actions>
</service>
</services>
</jbossesb>
{code}
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/797141#797141]
Start a new discussion in JBoss ESB Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]