Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am new to Web-Services, I am looking to create and integrate web service in my existing project, but I don't want to use Maven; I am using eclipse, Spring Framework, Hibernate to create my web application. Please suggest me which web service should I use, which jars/files must be included in project. Also can any one give me reference link for more study for this scenario.

Thank You.

share|improve this question
1  
Any particular reasons why you don't want to use maven? – TheLQ Jul 9 '11 at 23:07
@TheLQ I am working on existing project which build without using maven hence Im looking for that...Can I integrate maven now in my project if yes please give me simple example how to do that... – Balasaheb Jul 11 '11 at 5:21
First, read the maven docs at maven.apache.org/guides/getting-started/index.html . Then configure your POM with dependencies, move all sources to /src/main/java and tests to /src/test/java, and resources to /src/main/resources. That list isn't exhaustive, but should get you started. If you need more help, ask a new question – TheLQ Jul 11 '11 at 5:59
1  
@Balasaheb All your questions except this one have been migrated to Stack Overflow. Please read about the difference between Programmers and Stack Overflow and post your implementation questions on Stack Overflow from now on. Thanks. – Anna Lear Sep 14 '11 at 20:57

3 Answers

up vote 0 down vote accepted

First of all I want to say that Maven has nothing to do with web-services. Also it is not consequential if you use eclipse, or not. The only case where such tools have something to do with web-services is when you use their plug-ins to generate web-service specific code files. For example there is a plug-in for Maven when you decide to use the JAX-WS stack for your web-service implementation (see jaxws-maven-plugin). If you would prefer an axis implementation (hopefully not) then you would use the axistools plug-in.

The answer to your question is dependent on your JDK version. When you use JDK 6 or above then the simplest way is using the JAX-WS (Java API for XML Web Services) stack as it is already included in standard JDK since Version 6. So you don't have to include additional jars to your project.

As you are already using the Spring Framework you should really follow 4bu3li's link to the Spring Web Service documentation and read it all, but especially capital 19.5. Be warned that if you only make experience with web-services in combination with spring you will probably never learn how it really works as the spring framework makes everything for you. I would complete a helloworld web-servce like this too.

share|improve this answer
Thanks for replaying, Hi, I build web service by eclipse but when I invoke it; it gives exception like: exception: The AXIS engine could not find a target service to invoke! targetService is SecurityDepositServiceImpl. So can any one tell me what will be the solution for that... – Balasaheb Jul 11 '11 at 5:22

Have you checked Spring documentation? Remoting and web services using Spring

share|improve this answer

Maven has nothing to do with WebServices, it is project management, dependency management, build and release system, and it is very widely adopted. Very well documented and supported via the internet community. It is also a very power force multiplier, when used correctly it can increase your teams productivity exponentially.

If you are going to pollute your application with hibernate and spring, then Maven will make dealing with the dependencies and building that monstrosity easier if anything.

Why would you not want to use something that makes your life easier? What have you got against Maven?

share|improve this answer
Thanks Jarrod, I am working on existing project; just new added requirement is integrating web-services. And that project is not build using Maven hence I am asking for without Maven. Ok I'll try for that but can I integrate Maven in my project easily? – Balasaheb Jul 11 '11 at 5:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.