How to send multiple values to an enum field using soapUi
I am testing a webservice request using SoapUI.
I have a string that acts like a bitwise in my request. The field is an enumeration for SoapUI. In XSD, I have all the enum values.
I need to be able to send 2 or more enum values in fields, but SoapUI only accepts text like "All" or "testvalue2". I would like to send testvalue and testvalue2 for example.
thanks for the help
XSD extract:
<xs:enumeration value="None">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Testvalue">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Testvalue2">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="All">
<xs:annotation>
<xs:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">255</EnumerationValue>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
+3
source to share
1 answer
The solution was to duplicate the field instead of typing the entire value into the field.
<tem:RequestExtendedInfo>
<!--Optional:-->
<rxas:ExtendedInfo>testvalue1</rxas:ExtendedInfo>
<rxas:ExtendedInfo>testvalue2</rxas:ExtendedInfo>
</tem:RequestExtendedInfo>
Thanks to Abhishek Asthana for help
+2
source to share