HTTPS Web Service invocation throws an exception

Posted by amila4000 on 26-Jul-2011 05:33

Hi,

I have a Sonic ESB application which calls a webservice. Previously, the WSDL URL was accessed under http protocol and I was able to invoke it and retrieved the response successfully. Then the WSDL URL was changed and now it has to be accessed through HTTPS protocol. Now, When I invoke the service by sending the request text message through JMS test client, the Response goes to the Fault queue throwing an exception as listed below.

<?xml version="1.0" encoding="UTF-8"?>

<exception xmlns="http://www.sonicsw.com/sonicesb/exception">

    <message>Fault String: Certificate unknown, Fault Code: {http://schemas.xmlsoap.org/soap/envelope/}Server</message>

    <class>com.sonicsw.xqimpl.invkimpl.wsif.providers.common.UncheckedWSInvocationException</class>

    <detail/>

    <stackTrace><![CDATA[com.sonicsw.xqimpl.invkimpl.wsif.providers.common.UncheckedWSInvocationException: Fault String: Certificate unknown, Fault Code: {http://schemas.xmlsoap.org/soap/envelope/}Server

at com.sonicsw.xqimpl.invkimpl.wsif.providers.axissoap.AxisFaultExceptionCreator.createException(AxisFaultExceptionCreator.java:74)

at com.sonicsw.xqimpl.invkimpl.wsif.providers.axissoap.ESBWSIFOperation_ApacheAxis.invokeInvocation(ESBWSIFOperation_ApacheAxis.java:930)

at com.sonicsw.xqimpl.invkimpl.wsif.providers.axissoap.ESBWSIFOperation_ApacheAxis.invokeRequestResponseOperation(ESBWSIFOperation_ApacheAxis.java:302)

at com.sonicsw.xqimpl.invkimpl.wsif.providers.common.BaseEsbWsifOperation.invokeRequestResponseOperation(BaseEsbWsifOperation.java:289)

at com.sonicsw.xqimpl.invkimpl.wsif.providers.common.BaseEsbWsifOperation.executeRequestResponseOperation(BaseEsbWsifOperation.java:338)

at com.sonicsw.xqimpl.invkimpl.ESBOperationImpl.call(ESBOperationImpl.java:195)

at com.sonicsw.xqimpl.service.wsinvk.WSInvocationScriptObject$WSInvocationScriptCommand.execute(WSInvocationScriptObject.java:498)

at com.sonicsw.xqimpl.script.Command.executeScriptCommand(Command.java:319)

at com.sonicsw.xqimpl.script.Command.execute(Command.java:275)

at com.sonicsw.xqimpl.script.ScriptEngine.executeCommand(ScriptEngine.java:66)

at com.sonicsw.xqimpl.service.wsinvk.WSInvocationComponent.service(WSInvocationComponent.java:37)

at com.sonicsw.xqimpl.service.ServiceMessageHandler.callService(ServiceMessageHandler.java:413)

at com.sonicsw.xqimpl.service.ServiceMessageHandler.handleMessage(ServiceMessageHandler.java:182)

at com.sonicsw.xqimpl.service.ProcessMessageHandler.doHandleMessage(ProcessMessageHandler.java:308)

at com.sonicsw.xqimpl.service.ProcessMessageHandler.handleMessage(ProcessMessageHandler.java:90)

at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:422)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToService(MessageSendingHelper.java:328)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:76)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendEnvelopes(MessageSendingHelper.java:951)

at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:493)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToService(MessageSendingHelper.java:328)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:76)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToProcess(MessageSendingHelper.java:827)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToProcess(MessageSendingHelper.java:845)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:80)

at com.sonicsw.xqimpl.service.MessageSendingHelper.sendEnvelopes(MessageSendingHelper.java:951)

at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:493)

at com.sonicsw.xqimpl.endpoint.container.EndpointContextContainer.onMessage(EndpointContextContainer.java:84)

at com.sonicsw.xq.connector.jms.JMSEndpoint$JMSEndpointListener.onMessage(JMSEndpoint.java:570)

at progress.message.jimpl.Session.deliver(Session.java:2998)

at progress.message.jimpl.Session.run(Session.java:2390)

at progress.message.jimpl.Session$SessionThread.run(Session.java:2775)

]]></stackTrace>

</exception>

Can somebody please explain me why it is happening and what should I do to fix it. Appreciate your help so much.
Thank you,
Amila.

All Replies

Posted by amila4000 on 01-Aug-2011 00:00

I solved the issue.

This exception is throwing when Sonic cannot find the correct certificate to access the https resource. Include the client certificate into Sonic Installation Directory\MQ7.6\certs directory and instal the certificate.

This thread is closed