Before the send mediator. <syn:property name="Autherization" value="(base64 encoded username and password)" scope="transport"/> <syn:send><syn:endpoint.... /></syn:send>
Thanks, Ruwan On Mon, Mar 8, 2010 at 1:37 PM, Angel Tcholtchev < [email protected]> wrote: > Hi, > I need it for a demo, so hardcoded property work for me now. Where do I put > this property. > > > Thanks, > Angel > > On Sat, Mar 6, 2010 at 6:10 PM, Ruwan Linton <[email protected]> > wrote: > > > Hi Angel, > > > > It is just a matter of setting the basic auth header via a property > > mediator > > into the HTTP transport headers. > > > > <property name="Autherization" value="(base64 encoded username and > > password)" scope="transport"/> > > > > You probably will need to write a custom mediator to generate the base64 > > encoded username and password string. > > > > I think it is good to have a built in mediator to support basic > > authentication as well, and we will try to get a one for the next > release. > > > > Thanks, > > Ruwan > > > > On Fri, Mar 5, 2010 at 3:29 PM, Angel Tcholtchev < > > [email protected]> wrote: > > > > > Hi Ruwan, > > > thanks for the help. And how do I send the http basic auth header with > my > > > user and pass? > > > > > > Regards, > > > Angel > > > > > > On Fri, Mar 5, 2010 at 11:47 AM, Ruwan Linton <[email protected] > > > >wrote: > > > > > > > Hi Angel, > > > > > > > > Please use the following parameters in the http transport sender > > > > configuration in the axis2.xml; > > > > > > > > <transportSender name="http" > > > > class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender"> > > > > <parameter name="non-blocking" locked="false">true</parameter> > > > > <parameter name="http.proxyHost" > > locked="false">$host</parameter> > > > > <parameter name="http.proxyPort" > > locked="false">$port</parameter> > > > > <parameter name="http.proxyUser" > > locked="false">$user</parameter> > > > > <parameter name="http.proxyPassword" > > > locked="false">$pwd</parameter> > > > > > > > > </transportSender> > > > > > > > > Thanks, > > > > Ruwan > > > > > > > > On Fri, Mar 5, 2010 at 1:26 PM, Angel Tcholtchev < > > > > [email protected]> wrote: > > > > > > > > > Hi, > > > > > I'm using synapse as proxy service. The actual back-end requires > http > > > > basic > > > > > authentication. The endpoint is also not directly reachable from my > > > > > network, > > > > > so I have to set a http proxy to successfully call it. > > > > > I searched through the synapse documentation but I could not find > how > > > to > > > > > set > > > > > "out of the box" these properties to the axis2 http transport. Can > > you > > > > > please help me? > > > > > > > > > > > > > > > Regards, > > > > > Angel > > > > > > > > > > > > > > > > > > > > > -- > > > > Ruwan Linton > > > > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb > > > > WSO2 <http://wso2.org/esb%0AWSO2> Inc.; http://wso2.org > > > > email: [email protected]; cell: +94 77 341 3097 > > > > blog: http://ruwansblog.blogspot.com > > > > > > > > > > > > > > > -- > > Ruwan Linton > > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb > > WSO2 <http://wso2.org/esb%0AWSO2> Inc.; http://wso2.org > > email: [email protected]; cell: +94 77 341 3097 > > blog: http://ruwansblog.blogspot.com > > > -- Ruwan Linton Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.org email: [email protected]; cell: +94 77 341 3097 blog: http://ruwansblog.blogspot.com
