SOAP request-reply activity does not set the type of elements inside the array when defining a message part as a complex type.

SOAP request-reply activity does not set the type of elements inside the array when defining a message part as a complex type.

book

Article ID: KB0090571

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:

=======


When defining a message part as a complex type, derived from {http://schemas.xmlsoap.org/soap/encoding/} array with items of complex type, TIBCO Businessworks (BW) with SOAP request-reply activity does not set the type of elements inside the array, but the same issue does not happen when using SOAPUI.

Environment:
========
All

Symptoms:
=======

An example of the SOAP body is:


<items xmlns="" xmlns:ns1="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="urn:DEV_dev_storehouseServerAPIwsdl" xmlns:ns0="http://schemas.xmlsoap.org/soap/encoding/" ns0:arrayType="ns:productIn[]" ns1:type="ns:productInItems">
                <item xmlns="">  
                    <productId xmlns="">1</productId>
                    <productQuantity xmlns="">2</productQuantity>
                </item>
</items>


Items and productId and productQuantity are missing the xsi:type attribute when derived from Array.


Cause:
====
Manually add the type attribute for the element in Designer.

Resolution:
=======
Go to your SOAP r/r productId, click on the "!" (Edit statement) button, go to Type and define it as an appropriate type.

Attachments:
========
See the attached WSDL example (Filename: client_wsdl.wsdl).

Issue/Introduction

SOAP request-reply activity does not set the type of elements inside the array when defining a message part as a complex type.

Attachments

SOAP request-reply activity does not set the type of elements inside the array when defining a message part as a complex type. get_app