1 Reply Latest reply on May 30, 2013 3:53 PM by tcunning

    Base64Encoding http properties

    abhijitpassi

      Hi

       

      I am trying to integrate with a webservice using SOAPProxy Action. For authentication we have to pass username/ password in http request properties, hence I included the the properties using httpclient.properties file.

      Now I realize that I also need to do base64encoding for username and pasword before sending it. I have no idea how I can do that in jboss esb.

       

      I keep getting "Not Authorised" error from the service.

       

      Below is my ESB action and properties file.

       

      ESB:

      <action class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy" name="HPSMProxy">
           <property name="wsdl" value="classpath:///META-INF/IncidentManagement.wsdl"/>
           <property name="file" value="/META-INF/httpclient.properties"/>
           <property name="unwrap" value="false"></property>
           <property name="Content-Type" value="text/xml;charset=UTF-8"/>    
           <property name="endpointUrl" value="http://10.168.16.17:13080/SM/7/ws"/>

      </action>

       

      Properties:

      # AuthBASIC config

      configurators=HttpProtocol,AuthBASIC

      auth-username=siuser

      auth-password=Password1

      authscope-host=localhost

      authscope-port=8080

      authscope-realm=CASM

       

      Regards,

      Abhijit