4 Replies Latest reply on Oct 17, 2008 7:55 AM by Rupali Favade

    Http Request - Response

    Rupali Favade Newbie

      Hello,

      I am trying to send a message on JBR listener (http://ip:port) and receive response for the same. I am routing the received message on this listener to an action class where I am processing it and forming a response. I return the response as modified message. I tried it without adding any EPR settings and I get a message "can not connect http client invoker".

      I am not sure how to set To EPR here?
      Is there a way to identify client? I tried the From part of message but it comes as null.
      Please help.

      Regards,
      Rupali

        • 1. Re: Http Request - Response
          Scott Dawson Apprentice

          Please post the contents of your jboss-esb.xml file. I think it should look similar to the HTTP configuration in the webservice_producer quickstart.

          Regards,
          Scott

          • 2. Re: Http Request - Response
            Rupali Favade Newbie

            Yes. It is similar but I am not using SOAPProcessor action.
            jboss-esb.xml as below:
            <?xml version = "1.0" encoding = "UTF-8"?>



            <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
            <jms-bus busid="WSGwChannel">
            <jms-message-filter dest-type="QUEUE" dest-name="queue/webservice_producer_gw"/>
            </jms-bus>
            <jms-bus busid="WSEsbChannel">
            <jms-message-filter dest-type="QUEUE" dest-name="queue/webservice_producer_esb"/>
            </jms-bus>
            </jms-provider>

            <jbr-provider name="JBR-Test" protocol="http" host="localhost" >
            <jbr-bus busid="Http-1" port="8765" />
            </jbr-provider>
            <jbr-provider name="JBR-Socket" protocol="socket" host="localhost">
            <jbr-bus busid="Socket-1" port="8888" />
            </jbr-provider>






            <jms-listener name="WS-JMS-Gateway" busidref="WSGwChannel" is-gateway="true"/>
            <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true"/>
            <jbr-listener name="Socket-Gateway" busidref="Socket-1" is-gateway="true"/>
            <jms-listener name="WS-JMS-ESBListener" busidref="WSEsbChannel"/>















            • 3. Re: Http Request - Response
              Rupali Favade Newbie

              Some formating of HTML I guess. Reposting..
              <?xml version = "1.0" encoding = "UTF-8"?>



              <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
              <jms-bus busid="WSGwChannel">
              <jms-message-filter dest-type="QUEUE" dest-name="queue/webservice_producer_gw"/>
              </jms-bus>
              <jms-bus busid="WSEsbChannel">
              <jms-message-filter dest-type="QUEUE" dest-name="queue/webservice_producer_esb"/>
              </jms-bus>
              </jms-provider>

              <jbr-provider name="JBR-Test" protocol="http" host="localhost" >
              <jbr-bus busid="Http-1" port="8765" />
              </jbr-provider>
              <jbr-provider name="JBR-Socket" protocol="socket" host="localhost">
              <jbr-bus busid="Socket-1" port="8888" />
              </jbr-provider>






              <jms-listener name="WS-JMS-Gateway" busidref="WSGwChannel" is-gateway="true"/>
              <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true"/>
              <jbr-listener name="Socket-Gateway" busidref="Socket-1" is-gateway="true"/>
              <jms-listener name="WS-JMS-ESBListener" busidref="WSEsbChannel"/>















              • 4. Re: Http Request - Response
                Rupali Favade Newbie

                I solved the problem. Thanks anyways.

                Reagrds,
                Rupali