2 Replies Latest reply on Apr 18, 2012 1:22 AM by werrenmi

    How to generate WSDL from a bean-service

    werrenmi

      Hi together

       

      I have started to develop a bean-service. To start with Switchyard i take look on the examples. In all this examples are already WSDL files available, also in the bean-service. In the documentation i found how to refer the wsdl in the switchyard.xml and also how to get the switchyard.xml. But never how i can generate the wsdl from the bean-service source files. Is there a way to generate the wsdl / xsd for this services or i have to implement them self?

       

      Regards

       

      Michel

        • 1. Re: How to generate WSDL from a bean-service
          kcbabo

          Hey Michel,

           

          I find wsprovide (located in the AS7 bin/ directory) to be pretty useful in this type of situation.  Using bean-service as an example:

           

          cd bean-service
          $AS_HOME/bin/wsprovide.sh -w --classpath target/classes org.switchyard.quickstarts.bean.service.OrderService
          

           

          Run that and check the output directory for the generated WSDL and XSD.  Let me know if that doesn't satisfy your need.

           

          cheers,

          keith

          • 2. Re: How to generate WSDL from a bean-service
            werrenmi

            Hello Keith

             

            Thank you very much! This is a good entry point to generate the resources i need. After a little bit work by hand (correct namespaces and adding the service in the composite tag in the switchyard.xml), my service runs know and seems to work correctly.

             

            Greets

            Michel