Announcement Announcement Module
Collapse
No announcement yet.
generating client with cxf through spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • generating client with cxf through spring

    Hi Folks,

    I have got wsdl and I have to generate the client from that and for this I need to generate the stubs, so I planned to use cxf 2 and I generte the required stubs , I have followed the approach as ashown in this url..http://www.javatips.net/blog/2012/09...l2java-example ,below is the class..

    Code:
    package com.tool;
    
    import org.apache.cxf.tools.wsdlto.WSDLToJava;
    
    public class WSDLToJavaCodeGenerator {
      public static void main(String[] args) {
        try {
          //you can also specify WSDL directly like http://localhost:8080/CXFTutorial/ChangeStudent?wsdl
          WSDLToJava.main(new String[] { "-d", "src", "ChangeStudent.wsdl" });
          System.out.println("finished %%%%%%%%%%");
        } catch (Exception e) {
          e.printStackTrace();
        }
    
      }
    
    }
    Now my query is that can we achieve the same thing through spring also, that is generating client with cxf through spring framework , Please advise
Working...
X