tumblr counter

CXF wsdl2java Example

CXF wsdl2java Example explains about Generating Java Code From WSDL Document (WSDL) Using CXF wsdl2java Tool.

You can also use this tool for creating client proxy and invoking the web service

I am showing here, an example of generating annotated java code from WSDL document using WSDL To Java tool.

You can also generate server side and client side code using this tool, you can go to below reference

You can see how to generate java codes by following wsdl2java sample

Reference -> http://cxf.apache.org/docs/wsdl-to-java.html

Required Libraries

You need to download

  1. JDK 6
  2. Eclipse 3.7
  3. CXF-2.7.3

Following jar must be in ClassPath

  1. commons-collections-3.2.1.jar
  2. commons-lang-2.6.jar
  3. commons-logging-1.1.1.jar
  4. cxf-2.7.3.jar
  5. httpasyncclient-4.0-beta3.jar
  6. httpclient-4.2.1.jar
  7. httpcore-4.2.2.jar
  8. httpcore-nio-4.2.2.jar
  9. jaxb-impl-2.2.6.jar
  10. jaxb-xjc-2.2.6.jar
  11. neethi-3.0.2.jar
  12. velocity-1.7.jar
  13. wsdl4j-1.6.2.jar
  14. xmlschema-core-2.0.3.jar

For generating WSDL you can either deploy CXF Web Service Tutorial or you can copy WSDL and Schema files from CXF java2wsdl Example

If you gone for first option, then you can directly provide WSDL "http://localhost:8080/CXFTutorial/ChangeStudent?wsdl", if you are opted for second, ie; copying WSDL & Schema then you need to add this WSDL & Schema on root folder of the project as ChangeStudent.wsdl

We are going through the second approach ie; copying WSDL & Schema (see the project structure)

please see the below project structure

wsdl2java Example

1 2 Next

6 Responses to “CXF wsdl2java Example”
  1. alkiviadis 21.08.2013 09:57:53
  1. alkiviadis 21.08.2013 10:26:02
  1. admin 22.08.2013 08:48:26
  1. alkiviadis 23.08.2013 06:54:07
  1. Redmond 03.01.2014 04:17:55
  1. 12.01.2014 22:32:53

Your email address will not be published. Required fields are marked *