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

Integration Studio SOAP to REST feature cannot handle nested complex types #2028

Closed
GDLMadushanka opened this issue Jul 25, 2023 · 0 comments · Fixed by wso2/soap-to-rest#12 or wso2/integration-studio#1230

Comments

@GDLMadushanka
Copy link

Description

XSD configs with the following nested elements with optional values are not working properly

    <xs:complexType name="FCUBS_HEADERType">
        <xs:sequence>
            <xs:element name="SNAPSHOTID" type="xs:string" minOccurs="0"/>
            <xs:element name="PASSWORD" type="xs:string"/>
            <xs:element name="ADDL" minOccurs="0">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="PARAM" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="NAME" type="xs:string"/>
                                    <xs:element name="VALUE" type="xs:string"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

Steps to Reproduce

Generate a REST API using above configuration. The API getting created in invalid.

Affected Component

IntegrationStudio

Version

8.2.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

GDLMadushanka added a commit to GDLMadushanka/soap-to-rest that referenced this issue Jul 25, 2023
Fix optional value handling in nested complex types
fixes wso2/api-manager/issues/2028
GDLMadushanka added a commit to GDLMadushanka/integration-studio that referenced this issue Jul 25, 2023
Upgrade SOAP to REST jar to fix optional value handling in nested complex types
fixes wso2/api-manager/issues/2028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant