You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Olivier Ziller <ol...@gmail.com> on 2008/06/04 22:07:10 UTC

roleBasedRouting

hello,

i'm new to synapse and i've the following example on this list but i 
cannot find anywhere a documentation relating to the roleBasedRouting 
mediator.

what do i miss?

best regards

<syn:proxy name="GooglemapsProxy" transports="https http" 
startOnLoad="true" statistics="enable" trace="enable" 
onError="myFaultHandler">
        <syn:target>
            <syn:inSequence>
                    <syn:log level="full" separator=","/>
                    <syn:roleBasedRouting>
                            <!-- possible values are: http-header, 
ws-security -->
                            <syn:authentificationType>
                                ws-security
                            </syn:authentificationType>
                            <!-- possible values are: jdbc, ldap, 
acegi-security !!!ONLY IMPLEMENTED JDBC!!!-->
                            <syn:realm type="jdbc">
                                <syn:driverurl>
                                    jdbc:derby:UserDatabase;create=true
                                </syn:driverurl>
                                <syn:drivername>
                                    org.apache.derby.jdbc.EmbeddedDriver
                                </syn:drivername>
                                <syn:username>wso2esb</syn:username>
                                <syn:password>wso2esb</syn:password>
                            </syn:realm>
                    </syn:roleBasedRouting>
                <syn:header name="wsse:Security" action="remove"
                
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
                <syn:log level="full" separator=","/>
                <syn:send>
                    <syn:endpoint key="endpoints/googlemaps_endpoint.xml"/>
                </syn:send>
            </syn:inSequence>
            <syn:outSequence>
                <syn:log level="full" separator=","/>
                <syn:send/>
            </syn:outSequence>
        </syn:target>
        <syn:publishWSDL key="WSDL/GoogleMapsService.wsdl"/>
        <syn:policy key="policy/policy_1.xml"/>
        <syn:enableSec/>
    </syn:proxy>



Re: roleBasedRouting

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Oliver

> ... i've the following example on this list but i cannot find anywhere 
> a documentation relating to the roleBasedRouting mediator.
This looks like a custom mediator developed by one of the users Jens 
Goldhammer.. so he has to reply to this mail and let you know if he is 
willing to share that code or donate it to the project for inclusion..

asankha
> <syn:proxy name="GooglemapsProxy" transports="https http" 
> startOnLoad="true" statistics="enable" trace="enable" 
> onError="myFaultHandler">
>        <syn:target>
>            <syn:inSequence>
>                    <syn:log level="full" separator=","/>
>                    <syn:roleBasedRouting>
>                            <!-- possible values are: http-header, 
> ws-security -->
>                            <syn:authentificationType>
>                                ws-security
>                            </syn:authentificationType>
>                            <!-- possible values are: jdbc, ldap, 
> acegi-security !!!ONLY IMPLEMENTED JDBC!!!-->
>                            <syn:realm type="jdbc">
>                                <syn:driverurl>
>                                    jdbc:derby:UserDatabase;create=true
>                                </syn:driverurl>
>                                <syn:drivername>
>                                    org.apache.derby.jdbc.EmbeddedDriver
>                                </syn:drivername>
>                                <syn:username>wso2esb</syn:username>
>                                <syn:password>wso2esb</syn:password>
>                            </syn:realm>
>                    </syn:roleBasedRouting>
>                <syn:header name="wsse:Security" action="remove"
>                
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/> 
>
>                <syn:log level="full" separator=","/>
>                <syn:send>
>                    <syn:endpoint 
> key="endpoints/googlemaps_endpoint.xml"/>
>                </syn:send>
>            </syn:inSequence>
>            <syn:outSequence>
>                <syn:log level="full" separator=","/>
>                <syn:send/>
>            </syn:outSequence>
>        </syn:target>
>        <syn:publishWSDL key="WSDL/GoogleMapsService.wsdl"/>
>        <syn:policy key="policy/policy_1.xml"/>
>        <syn:enableSec/>
>    </syn:proxy>
>
>
>