aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "contract first web service" Watch "contract first web service" New topic
Author

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.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: contract first web service
 
Similar Threads
Apache CXF - ignore setters when marshalling
Accessing HttpServletRequest from Restful webservice
Error with web.xml
How to change jetty binding port number in maven.
CXF-RS throwing No operation matching request path /create is found