[ Download ] | [ Documentation Home ] | [ Release Note ]

WSDL2Code - Generate Code Starting with a WSDL Document

The aim of this document is to explain briefly how the WSDL2Code code generation tool works.

Content

Introduction

WSDL2Code is a handy tool available with WSO2 Web Services Application Server that allows the user to generate Java source code for a Web Service or a Web Service client from a given WSDL.

Usage

Using WSDL2Code is quite straightforward. In fact, as with the other tools provided on the WSO2 Web Services Application Server front page, you don't even need to sign in. Click on WSDL2Code and you will be taken to the following screen.

Figure:WSDL2Code Options Screen

On this screen, you can customize the code generation process to your liking. The description given against each configuration option should give you an idea of what it does. Some of the more importants options are described below.

For the options that you leave unchanged, the default values will be used in the generation process. Click on Generate . If everything is in order, i.e. the given WSDL is correct, the generation should happen smoothly and produce the java code. WSO2 Web Services Application Server will pack up the generated code into a jar file which will be presented out to be downloaded or saved to your local computer. if the ss option was checked, the generated jar will include the service skeleton which you can flesh out to execute your desired business logic. If not, only the client stubs will be generated, using which you can inboke the service, assuming it has already been deployed. Figure:WSDL2Code Code Generated

Conclusion

WSDL2Code provides an easy to configure and easy to use method of producing service and client code from a given WSDL document.