Skip to main content

How to pass data from servlet to web services

No replies
Joined: 2010-01-11
Points: 0

I am currently doing a project-Web Services-JAX-WS in Java. And I’m using Servlet as the Web Service Client. In my web service, I need to insert a data to database-which the data should be pass from the user.

For the time being, I hard-coded all the input value. And it works successfully.

My problem is, when I want to have user input data to insert to my database.

I already create a JSP Page, to pass the data to my Servlet (I’m using request.getParameter). But, I don’t know or have no idea, how I’m going to pass the data from servlet to the web service, so when web service receive the information, it can insert the data to the database.

Do you have any idea where I can start to work on how to solve it?