ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 58 forks source link

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

Open AzeemMuzammil opened 1 month ago

AzeemMuzammil commented 1 month ago

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

hasithaa commented 1 month ago

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

AzeemMuzammil commented 1 month ago

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.