Hi, I am new to webservices in java.I have been using eclipse IDE along with apache tomcat server to create my web services using top-down and bottom-up approaches.Can anyone suggest me a better and efficient way of doing it?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi, I am new to webservices in java.I have been using eclipse IDE along with apache tomcat server to create my web services using top-down and bottom-up approaches.Can anyone suggest me a better and efficient way of doing it?
Hello,
Your question is or description rather is pretty vague. The top-down and bottom-up approaches seem more like overall architectural processes rather than for creating the actual web service. It always important to see the bigger picture and consider as many use cases as you can when building your web service.
I've been involved in writing a few web services and we run these on Jetty. During build/development we use Maven and the Jetty plugin to run integration tests during the actual build. I find this to be pretty good.
I also tend to use JAX-WS (Metro) as my web service stack of choice at the moment but I'm leaning more towards using REST in the future, currently looking into using JAX-RS (Jersey) for this.
I hope this post has some value to you but if you need more precise and exact answers I will need you to elaborate a little bit about your processes in order to be able to analyze them better and provide some constructive criticism.
RAMNATH S (May 12th, 2011)
Hi Json,
Thank you for replying to the query.
I have been using the links below till now. But I'm looking for an efficient way of doing it.
Creating Top Down Web Service
Creating Bottom Up Web Service
It would be really helpful if you can direct me towards some links or tutorials containing some sample codes as I am really new into this.
Hi,
I am new to web services programming. i have a requirement where i need to expose a text file content as web services. Is there any way todo that? Please help me with any sample code. Thanks in advance
Hi sireesha,
Regarding the requirement you mentioned, I would like to know whether you are required to give (i) the content of a text file as a webservice response or (ii)the text file itself as a response.
In case (i),It can be done easily by including a file stream object in your web service class and reading the text file using that.
In case (ii),you will be required to send the text file as an attachment.(Explore on SAAJ api).
Do revert back in case u need further help