1 Reply Latest reply on Aug 18, 2010 10:26 AM by munimanjunath kalapati

    Proxying a Http Basic Secured web Servcie through SOAP Proxy

    Prasad B L V Newbie



                I am having a  http basic secured web service . The web service is proxied using SOAPProxy. I am using Ldap based authentication for proxy service and I need to use different credentials for actual endpoint or web service. I am using Http Gateway and BASIC authentication is enabled for it.


      Below given is the snippet of my jboss-esb.xml.  



      Below given is my httpclient-8080.properties file:


      # Configurators configurators=HttpProtocol,AuthBASIC # AuthBASIC config auth-username=admin auth-password=admin authscope-host=localhost authscope-port=8080 authscope-realm=smsapp_auth


      When I invoke the proxy service, I am getting the below given error and 401 as response.



      INFO  [org.apache.commons.httpclient.HttpMethodDirector] (pool-197-thread-1) No credentials available for BASIC '<ip>':8080'@
      2010-08-05 17:36:31,304 WARN  [org.jboss.soa.esb.actions.routing.http.HttpRouter] (pool-197-thread-1) Received status code '401' on HTTP org.apache.commons.httpclient.methods.PostMethod@1c65445 


      I need to set admin as user name and password for outbound request from SOAPProxy inorder receive the correct response.


      Can anyone help me on this issue?


      Thanks in advance.



      Prasad B L V

        • 1. Re: Proxying a Http Basic Secured web Servcie through SOAP Proxy
          munimanjunath kalapati Newbie

          Please check the below configuration you need to use  file and   credentialsrequired properties in the configuration


          Example of a basic auth + ssl scenario:

           <action name="proxy">
               <property name="wsdl" value="https://localhost:8443/webservice_proxy_security/HelloWorldWS?wsdl"/>
               <property name="endpointUrl" value="https://localhost:8443/webservice_proxy_security/HelloWorldWS"/>
               <property name="file" value="/META-INF/httpclient-8443.properties"/>
               <property name="clientCredentialsRequired" value="true"/>

          httpclient-8443.properties - should have the required credentials for basic authentication