I am invoking web service exposed by sonic.I have enabled Basic authentication for this web service.
When I try to call this web Service from another process it is giving error.
com.sonicsw.xq.XQServiceException: (null (WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'http://localhost:2580/resources/TransformWebService?wsdl'.)) (null (WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'http://localhost:2580/resources/TransformWebService?wsdl'.) (WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'http://localhost:2580/resources/TransformWebService?wsdl'.))
at com.sonicsw.xqimpl.service.wsinvk.WSInvocationComponent.service(WSInvocationComponent.java:70)
at com.sonicsw.xqimpl.service.debug.DebugServiceInterceptor.intercept(DebugServiceInterceptor.java:118)
at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.intercept(XQServiceChain.java:481)
at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.service(XQServiceChain.java:470)
at com.sonicsw.xqimpl.service.XQServiceChain.service(XQServiceChain.java:151)
at com.sonicsw.xqimpl.service.ServiceMessageHandler.callService(ServiceMessageHandler.java:429)
at com.sonicsw.xqimpl.service.ServiceMessageHandler.handleMessage(ServiceMessageHandler.java:190)
at com.sonicsw.xqimpl.service.ProcessMessageHandler.doHandleMessage(ProcessMessageHandler.java:317)
at com.sonicsw.xqimpl.service.ProcessMessageHandler.handleMessage(ProcessMessageHandler.java:94)
at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:422)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToService(MessageSendingHelper.java:330)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:78)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToProcess(MessageSendingHelper.java:829)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToProcess(MessageSendingHelper.java:847)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:82)
at com.sonicsw.xqimpl.service.MessageSendingHelper.sendEnvelopes(MessageSendingHelper.java:926)
at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:499)
at com.sonicsw.xqimpl.endpoint.container.EndpointContextContainer.onMessage(EndpointContextContainer.java:90)
at com.sonicsw.xq.connector.jms.JMSEndpoint$JMSEndpointListener.onMessage(JMSEndpoint.java:575)
at progress.message.jimpl.Session.deliver(Session.java:3006)
at progress.message.jimpl.Session.run(Session.java:2397)
at progress.message.jimpl.Session$SessionThread.run(Session.java:2782)
Caused by: com.sonicsw.xqimpl.invk.ESBException: null (WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'http://localhost:2580/resources/TransformWebService?wsdl'.) (WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'http://localhost:2580/resources/TransformWebService?wsdl'.)
at com.sonicsw.xqimpl.invkimpl.ESBServiceImpl.getEndpoint(ESBServiceImpl.java:366)
at com.sonicsw.xqimpl.service.wsinvk.WSInvocationScriptObject$WSInvocationScriptCommand.execute(WSInvocationScriptObject.java:377)
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)
May be this is occuring because of basic authentication.
So for that I have X-HTTP-Authuser and X-HTTP-Authpassword from Command Parameters of Web Service Invocation.
Still I am getting this problem.
if i try to call same web service from another client it works fine with Basic Authentication.
Can you please help me to provide Basic Authentication while invoking web service?