2 Replies Latest reply on Apr 20, 2011 8:13 AM by skumarraju

    webservice consumption over https(ssl)

    skumarraju

      Dear Experts,

       

      Can someone help me using SoapClient for consuming webservices running on https with basic authentication.

       

      method-1:

      <config SOAPAction="addSubscriberAccountXML"

              get-payload-location="SOAP_BODY"

              set-payload-location="addSubscriberAccountXMLResponse"

              wsdl="https://10.18.67.45:8443/NPM_API-6.1.5.4/user_mgmt?WSDL">

              <http-client-property file="D:\Profiles\DJC867\Desktop\HTTPSAuthentication.properties"/>

      </config>

       

      method-2:

      <config SOAPAction="addSubscriberAccountXML"

              get-payloa-location="SOAP_BODY"

              set-payload-location="addSubscriberAccountXMLResponse"

              wsdl="https://10.18.67.45:8443/NPM_API-6.1.5.4/user_mgmt?WSDL">

                  <http-client-property keystore="/TestKeyStore.keystore"

                                        keystore-passw="changeit"

                                        password="npmadmin"

                                        truststor="/TestKeyStore.keystore"

                                        truststore-passw="changeit"

                                        username="npmadmin"/>

      </config>

       

       

      always got to see the below exception

       

      An exception occured while doing SOAP request

      org.jboss.soa.esb.ConfigurationException: Failed to locate keystore '/keystore'.

              at org.jboss.soa.esb.http.configurators.HttpProtocol.getKeyMaterial(HttpProtocol.java:200)

              at org.jboss.soa.esb.http.configurators.HttpProtocol.configure(HttpProtocol.java:94)

              at org.jboss.soa.esb.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:85)

              at org.jboss.soa.esb.actions.soap.SOAPClient.<init>(SOAPClient.java:325)

       

       

       

      Regards,

      -Shravan