2 Replies Latest reply on Dec 11, 2012 11:42 AM by kconner

    WS-Addressing replyTo support

    gllambi

      Hi guys!

       

      I'm trying to develop an async scenario where a EWS receives a WS-Addressing message, do some logic and then return the response message to the replyTo header. Is this type of scenario supported by jbossesb?? I did some tests and only worked with a RequestResponse mep. Can it be used with a OneWay message?

       

      here's my jboss-esb.xml with RequestResponse mep:

       

      <jbossesb parameterReloadSecs="5"
       xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd">
       <providers>
        <http-provider name="WSEndpoint">
         <http-bus busid="wsEndpointID"/>
        </http-provider>
        <jms-provider connection-factory="ConnectionFactory" name="myJMSProvider">
         <jms-bus busid="myJMSChannelID">
          <jms-message-filter dest-name="queue/myJMSWS" dest-type="QUEUE"/>
         </jms-bus>
        </jms-provider>
       </providers>
       <services>
        <service category="sample" description="ejemplo de ws" name="MyWSSample">
         <listeners>
          <http-gateway busidref="wsEndpointID" name="myWSEndpoint"/>     
          <jms-listener busidref="myJMSChannelID" is-gateway="false" name="myJMSListener"/>
         </listeners>
         <actions addressing="true" faultXsd="/fault.xsd" inXsd="/request.xsd"
          mep="RequestResponse" outXsd="/response.xsd" validate="false" webservice="true">
          <action class="test.EWSPublishSample" name="myWSAction"/>
         </actions>
        </service>
       </services>
      </jbossesb>
      
      

       

      thank you very much!

      Regards

      Guzmán

        • 1. Re: WS-Addressing replyTo support
          gllambi

          Hi!!

           

          I found how to make it async. I had to remove the outXsd attribute.

           

          https://community.jboss.org/thread/144679

           

          Know, I have another problem. The response isn't sent correctly to the reponse address (wsa-replyTo)

           

          1. client sends message to ebws with wsa-replyTo header

          2. ebws responses http 202 with empty message

          3. ebws does some action and generates a new message

          4. when ebws finishes it responds and empty message to wsa-replyTo EPR

           

          in this scenario the message generated in step 3 which is the correct message is never sent to the wsa-replyTo EPR. Instead, the following message is sent:

           

          <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header xmlns:wsa='http://www.w3.org/2005/08/addressing'><wsa:To>http://localhost:8080/WSAddressingServlet/wsaddressing</wsa:To><wsa:Action>http://soa.jboss.org/asynch/ncbi-blast-wsaOpResp</wsa:Action><wsa:RelatesTo>My-MessageID-2012</wsa:RelatesTo></env:Header><env:Body></env:Body></env:Envelope>

           

          how can I sent the message generated at step 3 to the EPR referenced in the wsa-ReplyTo header?

           

          thanks in advance

          • 2. Re: WS-Addressing replyTo support
            kconner

            As far as the ESB services are concerned it should be a RequestResponse mep as you are expecting to send a response via the ebws endpoint.  The WS-A behaviour should be handled independently by the SOAP stack, not directly by ESB, so it would appear to be something in that area that is causing you problems.

             

            Can you attach an example showing the issue?  We can then investigate further.

             

            Kev