3 Replies Latest reply on Mar 21, 2011 7:07 AM by tfennelly

    How to create Web Service from WSDL in ESB 4.9

    hskruse

      Hi,

       

      I am somewhat new to the ESB world and I am trying to take an existing web service from it's WSDL and create a web service on the ESB.  What are my options?  Can't I just use the existing WSDL/XSD's I have to generate a web service on the ESB?  I hope I am making this harder than it should be.

       

      Thansk,

      Steve

        • 1. How to create Web Service from WSDL in ESB 4.9
          mageshbk

          Steve,

           

          You can extract the request, response and fault schemas from your existing WSDL and then can host them as a WebService in ESB. Checkout the publish_as_webservice quickstart. Of course you will have to write the Action classes to handle these SOAP messages.

          • 2. How to create Web Service from WSDL in ESB 4.9
            hifly81

            Are you sure you don't need to use the ESB only as a proxy for webservices? This is a common usage of ESB with alredy defined webservices.

            There are many ESB out of the box actions for webservices, have a look at them (SoapClient,SoapProxy,SoapProcessor)

            • 3. How to create Web Service from WSDL in ESB 4.9
              tfennelly

              Right... maybe provide a few more details.  You may want:

               

              1. What Magesh is referring to if you want to manually process the SOAP payload in an ESB action, or
              2. The SOAPProxy if you are proxying a WS call through the ESB to a target Webservice endpoint, or
              3. To implement a JSR181 Webservice (bundled into your ESB for deployment) that uses the ServiceInvoker to invoke your WS enpoint.  This approach gives you full control over jax-ws handlers etc, if that's what you need.

               

              Prob more options, but depends on what you're doing.