Creating web service using JSP

Posted on 2009-12-29
Last Modified: 2012-05-08
I need to create web service using JSP(Java Server Pages).

Need to know what are the requirements, does it require any other software to be installed? Any sample code available?? Any demo is available???

Thank you

Question by:krisrajz
    LVL 40

    Assisted Solution

    You can only access web-service using JSP.
    A web-service needs to be deployed seperately and JSP can act as a client for that web-service.

    For more on web-service and how to deploy it

    For more info on how to consume web-service in JSP

    LVL 3

    Accepted Solution

    If you need to create a webservice, you can do that in a Java file..

    To create a SOAP service...

    1) Get Eclipse in your PC..
    2) Code all your logic and have one entry point for your service which can take your request.. this is called service entry point..
    3) Rightclick this class in Eclipse and select Webservice -> create webservice.. follow the wizard.. your webservice is ready...

    pass the generated WSDL file to the consumer...

    To create a RESTfull service..

    LVL 1

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now