Announcement Announcement Module
Collapse
No announcement yet.
Spring roo application using Web Services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring roo application using Web Services

    Hi,

    I want to use Spring roo for developing new project.
    All the operations in the application will be using Web Services we don't have any database.
    i. e. We have all web services ready with us, only we have to
    call all the services on specific actions and display the XML response
    on the jspx.

    So, any one have any idea about this.

    Thanks & Regards,
    Rohit

  • #2
    From gvNIX group, we are developed a services add-on with web service import/export support:

    Web services for human beings (a.k.a. Services Management)

    It's now possible to reverse engineer existing WSDLs and automatically create Java classes to invoke corresponding remote services.

    This classes act as "service proxy", invoke them in your code as normal classes and they will route your request to related target remote service.

    service import ws --wsdl http://api.bing.net/search.wsdl --class ~.service.SearchService

    Can I develop Web Services inside the application in the same fashion way? Yes, absolutely. Just create your services and expose them as WS, gvNIX will generate the needed artifacts to let remote clients invoke your local services via !WebService API.

    service export operation --class org.gvnix.clinic.service.PetService --method findPetByWeight --resultName pets

    gvNIX includes commands for easy services creation. Do we need a "Service Layer"? Not always, but enterprise applications usually require services layer:

    * Remote clients access
    * Invoke remote services
    * Integrate with business processes
    * Business logic that does not belong in a specific entity

    service class --class org.gvnix.clinic.service.PetService
    service operation --name findPetByWeight --service org.gvnix.clinic.service.PetService
    --return java.util.List --paramTypes java.lang.Float --paramNames weight

    What does it happen with entities, can I expose them? Yes, export-as-WS can be applied both entities and services in your project. Note that for remote client access is more convenient to simply expose the methods that provide the service, so consider a good practice to put these "service methods" in the "Service Layer".

    gvNIX lets you to use a pure *contract-first* approach, just generate your local services from the WSDL you want.

    service export ws --wsdl https://ws.xwebservices.com/XWebEmai...tion.asmx?wsdl

    Note that this command provides you an easy way to migrate your current WS to Roo-based project. Use current WSDLs to generate WS artifacts automatically, then copy-paste the service logic.

    This add-on includes the script _service.roo_ for testing purpouses. Run gvNIX and execute the command `script service.roo`. Quit and run your Tomcat. Open _http://localhost:8080/petclinic/services_ to get the list of available services.

    More info at: http://gvnix.googlecode.com/

    Comment


    • #3
      Thank you very much for response.
      I will try it and let you know if any issue.
      Thanks again.

      Comment


      • #4
        Hi,

        I have tried gvNIX distribution 0.7.0 with Spring roo 1.1.4.RELEASE,
        But it is not working properly it stops at "Generating sources ...",
        So I need to use Spring roo 1.1.2 or, is there another solution for that.

        Thanks & Regards,
        Rohit

        Comment


        • #5
          Originally posted by rohit_virbhadre View Post
          Hi,

          I have tried gvNIX distribution 0.7.0 with Spring roo 1.1.4.RELEASE,
          But it is not working properly it stops at "Generating sources ...",
          So I need to use Spring roo 1.1.2 or, is there another solution for that.

          Thanks & Regards,
          Rohit
          Hi rohit_virbhadre !

          Can you create an issue with more details at http://gvnix.googlecode.com/ ?

          Thanks !

          Comment


          • #6
            Hi,

            Just give me some time, I am busy with some other stuff.
            I will create an issue with more details ASAP.

            Thanks & Regards,
            Rohit

            Comment

            Working...
            X