Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement WSDL Tool to Convert WSDL Files to Ballerina Clients and Types #6717

Open
AzeemMuzammil opened this issue Jul 10, 2024 · 2 comments · May be fixed by ballerina-platform/wsdl-tools#17

Comments

@AzeemMuzammil
Copy link
Member

AzeemMuzammil commented Jul 10, 2024

Description

A tool is to be developed that processes WSDL files and converts them into Ballerina clients and the corresponding Ballerina types. This tool will be designed as a CLI tool.

Objective

The main objective of this tool is the streamlined generation of Ballerina code from WSDL files. Ballerina clients and types for specific operations defined in the WSDL are to be automatically generated, enhancing the ability to integrate with SOAP web services by automating the setup process and reducing manual coding requirements.

Initial Implementation Scope

In the initial version of this tool, Ballerina types for the operations specified in the WSDL file will be generated. The WSDL content will be parsed, and corresponding Ballerina records, which can be used to interact with the SOAP services described by the WSDL, will be produced.

Command Line Interface Specification

The tool will be supported as a CLI tool with the following usage syntax and options:

$ bal wsdl -i <FILE_NAME> [--operations <COMMA_SEPARATED_OPERATION_NAMES>]

Parameters

  • -i, --input <FILE_NAME>: The input WSDL file from which Ballerina types are to be generated is specified by this required parameter.

  • --operations <COMMA_SEPARATED_OPERATION_NAMES>: This optional parameter allows the user to specify a list of operations for which Ballerina types are to be generated. If not provided, types for all operations in the WSDL will be generated.

@AzeemMuzammil AzeemMuzammil self-assigned this Jul 10, 2024
@AzeemMuzammil AzeemMuzammil changed the title Implement WSDL tool to convert WSDL file to Ballerina clients and records Implement WSDL Tool to Convert WSDL Files to Ballerina Clients and Types Jul 10, 2024
@hasithaa
Copy link

Make xsd to record generation as a separate tool as part of the effort.

@AzeemMuzammil
Copy link
Member Author

This tool's development will be carried out by a separate developer in the future, In the future version of this tool, we will decide on how to separate the xsd to type generator and other things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants