3 Replies Latest reply on Feb 12, 2008 11:33 AM by hloehnert

    SopaClient with variable wsdl's

    hloehnert

      Hello !
      I'm quite new to jboss-esb. My first approach is to read a file (xml) and call a external web service with the file-content.
      I'm using fs-listener together with SOAPClient action.
      So far so good - everything works fine.

      But I would like to invoke different web-services depending on the file-content. So since the "wsdl" is a parameter in the SOAPClient action I could not find a possibility to pass the wsdl-parameter during run-time (process-method).
      What would be the best practice to solve this problem. Do I have to write my own SOAPClient ?

      Thanks for any help.
      Harald.

        • 1. Re: SopaClient with variable wsdl's
          burrsutter

          Hello Harald,

          You might consider the following:
          ServiceA uses file listener and CBR/custom action for routing pointing at ServiceB & ServiceC

          ServiceB uses SOAPClient for WS Endpoint 1
          ServiceC uses SOAPClient for WS Endpoint 2

          I like having my ESB Services typically "wrap" or "proxy" 1 external WS so it is more reusable in the ESB context.

          Burr

          • 2. Re: SopaClient with variable wsdl's
            kurtstam

            Maybe you can use the Content Based Router for this? -K

            • 3. Re: SopaClient with variable wsdl's
              hloehnert

              Ok thanks.
              I implemeted a CBR and use 1 ESB-Service per Web-Service.

              The only thing now I'm not sure about is, that I have quite a lot of external Web-Services (CRUD-Services for different kind of entities) and for each one I have to provide an ESB-Service with its JMS-Queue-listener.

              Is there a possibility to "extend" a kind of "super-service" ?

              Thanks
              Harald.