简体   繁体   中英

WSDL to java code approach generating extra classes

Initially I have used bottom-up approach (Code to WSDL) to generate a wsdl file using three classes.

Now using the generated wsdl file I am trying to create the code ie top down approach using eclipse and its creating lot of classes than what I have used initially to create a wsdl file. How do I get rid of unnecessary classes and get the original classes which I have written?

You will most likely never get the precise original code if you go with code -> generate WSDL from code (eg jax-ws) -> generate code from WSDL (eg wsimport) and that is fine because WSDL-driven development and it's counterpart are two different approaches.

With WSDL-driven approach your specify your WSDL contract first and then usually would generate you server/client code from the contract.

With code-first approach you define the service and it's operations in Java and would usually rely on a framework to generate the final WSDL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM