File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes contract first web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "contract first web service" Watch "contract first web service" New topic

contract first web service

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi there,

I am new to the contract first web service creation approach. We have finalized our xsd's and WSDL. We are using Spring 2.5 and Apache CXF 2.2.5.
In Eclipse I could generate all the java code artifacts from from the WSDL and xsd's using WSDL2JAVA tool available within CXF.

We have made all business logic code changes to the generated java code.Now I want to know how to build this application as a war and deploy. We will be using Maven and our build person has a good handle on this. But my question even before this is what other changes I need to generated code. I read in a particular link there are few tweaks required on the annotations (like remove the name annotation) created by CXF.

This is the server annotation I am talking about. In the below should I be commenting the wsdlLocation attribute

I have the web.xml something like this

this is how cxf.xml looks like. I am not having cxf-servlet.xml

Let me know if there is anything more required to be packaged. I am able to see this working running it from the IDE.

I agree. Here's the link:
subject: contract first web service
It's not a secret anymore!