5 Replies Latest reply on Feb 21, 2011 4:14 AM by Claus Ibsen

    Adapted bridge example - http response 500

    Jochen Lauer Apprentice

      Hello,

       

      I try to create a sa to periodically call a external webservice and provide the result to a jms queue.

      I choose the bridge example as starting point.

      First I add a quartz su in front of the http su. The quartz su contains a custom marshaller to provide xml input for the webservice call.

       

      xbean.xml

      <quartz:endpoint service="b:quartz"

              endpoint="endpoint"

              targetService="b:http">

       

       

      After that I changed the http su in the following way.

      xbean.xml

      <http:endpoint

                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"

               service="b:http"

               endpoint="endpoint"

               role="provider"

               locationURI="http://localhost:8088/mockSportsdataSoap"

               soap="true">

           </http:endpoint>

       

       

      The result in the log file:

      22:30:06,802 | WARN  | rint Extender: 1 | XBeanNamespaceHandler            | ?

                                       ? | 52 - org.apache.xbean.blueprint - 3.7 | Cou

      ld not load class: org.apache.servicemix.wsn.spring.PublisherComponent due to or

      g/apache/servicemix/MessageExchangeListener

      22:30:07,140 | ERROR | rovider-thread-1 | HttpComponent                    | ?

                                       ? | 90 - servicemix-common - 2011.01.0.fuse-00-

      00 | Error processing exchange org.apache.servicemix.jbi.runtime.impl.InOnlyImpl

      @778a5d

      java.lang.Exception: Invalid status response: 500

              at org.apache.servicemix.http.processors.ProviderProcessor.process(Provi

      derProcessor.java:192)[157:servicemix-http:2011.01.0.fuse-00-00]

              at org.apache.servicemix.soap.SoapEndpoint.process(SoapEndpoint.java:400

      )[156:servicemix-soap:2011.01.0.fuse-00-00]

              at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi

      feCycle.java:651)[90:servicemix-common:2011.01.0.fuse-00-00]

              at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async

      BaseLifeCycle.java:606)[90:servicemix-common:2011.01.0.fuse-00-00]

              at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(A

      syncBaseLifeCycle.java:501)[90:servicemix-common:2011.01.0.fuse-00-00]

              at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCy

      cle.java:370)[90:servicemix-common:2011.01.0.fuse-00-00]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

       

       

      The configured webservice is available via SoapUI.