Hello everyone,
I'm trying to setup a transaction which needs to receive a list of objects. It has to process these parameters in a webservice then. Please check these code snippets:
Webservice soap request:
<dem:sfcList> <dem:sfc>?</dem:sfc> <!--Optional:--> <dem:oldSfc>?</dem:oldSfc> <com:qty>?</com:qty> <!--Zero or more repetitions:--> <dem:dataTypeDataList> <com:dataField>?</com:dataField> <!--Optional:--> <dem:dataValue>?</dem:dataValue> <dem:validationType>?</dem:validationType> <dem:required>?</dem:required> <dem:sequence>?</dem:sequence> </dem:dataTypeDataList> </dem:sfcList>
XSD file in the project's web folder:
<?xmlversion="1.0"encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="epm"> <xs:element name="sfc"> <xs:complexType> <xs:sequence maxOccurs="100" minOccurs="1"> <xs:element type="xs:string" name="site"/> <xs:element type="xs:string" name="sfc"/> <xs:element type="xs:int" name="qty"/> </xs:sequence> </xs:complexType> </xs:element></xs:schema>
I've created a xml transaction property (input) called sfclist configured with the path to the XSD file.
Now I'm stuck. What do I have to do now? How can I fit a list of "sfc" objects in the webservice request xml?
Thanks and regards,
Kai