Invoke workbench web service from any client - Forum - Technology Partner - Progress Community

Invoke workbench web service from any client

 Forum

Invoke workbench web service from any client

  • I will be out of the office until Thursday 5th April with little email access. If you need to contact someone within the office then please phone reception on 01904 727150, otherwise I will reply to your email as soon as I am able.

    Thanks, Andrew.

    Email Disclaimer

  • Hi William,

    I have sucessfully run the web service using some scenario. So I think it works. But while testing WSDL  using Test with web service explorer option then sometimes it works well but sometimes it throws error as "Unexpected error occured.

    404 not found."

    And while trying to access WSDL using web browser using URL http://localhost:3580/connect/ConsumeNExpose?wsdl sometimes it throws error as 404 not found , that i had mentioned in my previous post.

    I didn't modify the project's any properties.

    Why this problem occured?

    And in addition, can you suggest any step by step video tutorial to define input output parameter for web service using wsdl?

    Thank you,

    Dinesh

  • Dinesh, I suspect your machine has mulitple network interfaces (e.g. multiple network card, VPN connection).  The web service address (http://localhost:3580/connect/ConsumeNExpose) may not be bounded to the network interface that the requests are accepted.   You can try changing the address to http://0.0.0.0:3580/connect/ConsumeNExpose   in the SC editor (see attached screen) and re-upload the project.  Thanks.

  • Hi William,

    When I am going to test the web services using some scenario. Sometimes it works fine but sometimes it throws error like,


        Fault String: HTTP request timed out., Fault Code: {http://schemas.xmlsoap.org/soap/envelope/}Server
        com.sonicsw.xqimpl.invkimpl.wsif.providers.common.UncheckedWSInvocationException
       
            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:929)
        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:326)
        at com.sonicsw.xqimpl.script.Command.execute(Command.java:282)
        at com.sonicsw.xqimpl.script.ScriptEngine.executeCommand(ScriptEngine.java:67)
        at com.sonicsw.xqimpl.service.wsinvk.WSInvocationComponent.service(WSInvocationComponent.java:37)
        at com.sonicsw.xqimpl.service.debug.DebugServiceInterceptor.intercept(DebugServiceInterceptor.java:118)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.intercept(XQServiceChain.java:487)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.service(XQServiceChain.java:476)
        at com.sonicsw.xqimpl.service.XQServiceChain.service(XQServiceChain.java:152)
        at com.sonicsw.xqimpl.service.ServiceMessageHandler.callService(ServiceMessageHandler.java:477)
        at com.sonicsw.xqimpl.service.ServiceMessageHandler.handleMessageImmediate(ServiceMessageHandler.java:422)
        at com.sonicsw.xqimpl.service.XQDispatcher.onMessageImmediate(XQDispatcher.java:866)
        at com.sonicsw.esb.itinerary.model.EsbStepNode.doExecute(EsbStepNode.java:230)
        at com.sonicsw.esb.itinerary.model.EsbStepNode.execute(EsbStepNode.java:144)
        at com.sonicsw.esb.process.model.impl.DefaultActivityNode.offerIncoming(DefaultActivityNode.java:139)
        at com.sonicsw.esb.process.model.impl.DefaultActivityEdge.place(DefaultActivityEdge.java:90)
        at com.sonicsw.esb.process.model.impl.DefaultActivityNode.offerOutgoing(DefaultActivityNode.java:191)
        at com.sonicsw.esb.itinerary.engine.ItineraryEngine.enqueueToken(ItineraryEngine.java:215)
        at com.sonicsw.esb.process.model.impl.DefaultActivityNode.offerIncoming(DefaultActivityNode.java:144)
        at com.sonicsw.esb.process.model.impl.DefaultMainProcess.initiate(DefaultMainProcess.java:80)
        at com.sonicsw.esb.itinerary.engine.ItineraryEngine.initiateProcess(ItineraryEngine.java:268)
        at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToProcess(MessageSendingHelper.java:360)
        at com.sonicsw.xqimpl.service.MessageSendingHelper.sendToAddress(MessageSendingHelper.java:87)
        at com.sonicsw.xqimpl.service.XQDispatchImpl.dispatch(XQDispatchImpl.java:169)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQDispatchWrapper.dispatch(XQServiceChain.java:580)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQDispatchWrapper.dispatch(XQServiceChain.java:558)
        at com.sonicsw.xqimpl.service.debug.DebugServiceInterceptor.dispatch(DebugServiceInterceptor.java:361)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.dispatch(XQServiceChain.java:509)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQDispatchWrapper.dispatch(XQServiceChain.java:588)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQDispatchWrapper.dispatch(XQServiceChain.java:558)
        at com.progress.sonic.esb.camel.DefaultEsbMessageExchange.dispatchMessage(DefaultEsbMessageExchange.java:188)
        at com.progress.sonic.esb.camel.DefaultEsbMessageExchange.send(DefaultEsbMessageExchange.java:91)
        at com.progress.sonic.esb.camel.SonicEsbProducer.process(SonicEsbProducer.java:79)
        at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
        at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
        at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
        at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
        at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
        at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
        at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
        at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
        at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
        at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
        at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:45)
        at com.progress.sonic.esb.camel.DirectSonicEsbProducer.process(DirectSonicEsbProducer.java:81)
        at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:179)
        at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:161)
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:160)
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:98)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:97)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:83)
        at com.progress.sonic.esb.service.connect.ConnectService.sendMessage(ConnectService.java:382)
        at com.progress.sonic.esb.service.connect.ConnectService.service(ConnectService.java:209)
        at com.sonicsw.xqimpl.service.debug.DebugServiceInterceptor.intercept(DebugServiceInterceptor.java:118)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.intercept(XQServiceChain.java:487)
        at com.sonicsw.xqimpl.service.XQServiceChain$XQInterceptorServiceWrapper.service(XQServiceChain.java:476)
        at com.sonicsw.xqimpl.service.XQServiceChain.service(XQServiceChain.java:152)
        at com.sonicsw.xqimpl.service.ServiceMessageHandler.callService(ServiceMessageHandler.java:477)
        at com.sonicsw.xqimpl.service.ServiceMessageHandler.handleMessage(ServiceMessageHandler.java:204)
        at com.sonicsw.xqimpl.service.XQDispatcher.onMessage(XQDispatcher.java:434)
        at com.sonicsw.esb.itinerary.model.EsbStepNode.doExecute(EsbStepNode.java:232)
        at com.sonicsw.esb.itinerary.model.EsbStepNode.execute(EsbStepNode.java:144)
        at com.sonicsw.esb.process.model.impl.DefaultActivityNode.offerIncoming(DefaultActivityNode.java:139)
        at com.sonicsw.esb.itinerary.engine.ItineraryEngine.executeProcess(ItineraryEngine.java:325)
        at com.sonicsw.esb.itinerary.engine.ItineraryEngine.handleToken(ItineraryEngine.java:188)
        at com.sonicsw.esb.itinerary.engine.ItineraryEngine.handleMessage(ItineraryEngine.java:178)
        at com.sonicsw.xqimpl.endpoint.container.EndpointContextContainer.onMessage(EndpointContextContainer.java:94)
        at com.sonicsw.xq.connector.jms.JMSEndpoint$JMSEndpointListener.onMessage(JMSEndpoint.java:577)
        at progress.message.jimpl.Session.deliver(Session.java:3057)
        at progress.message.jimpl.Session.run(Session.java:2463)
        at progress.message.jimpl.Session$SessionThread.run(Session.java:2852)
    ]]>

    What could be the solution?

    Thanks,

    Dinesh

  • It looks like the exposed ESB Process is calling an external Web Service using 7.x WS client but the 7.x WS client receives "HTTP request timed out".  You need to check the called WS and find out why it is timing out.

  • Hi William,

    While I'm going to run the external web services using an application SoapUI then it works fine but from sonic workbench this problem has occured. Is this is due to the problem of sonic workbench version?

    Thanks,

    Dinesh

  • You mentioned that the problem didn't happen all the time.  Is it possible that the server was fine when you ran SOAPUI?  I'd suggest you to log an issue with tech support.  Thanks.

  • Just wondering is there any reason you are using 7.x WS client as opposed to Sonic Connect WS client?