Last post Nov 30, 2017 12:14 PM by PatriceSc
Nov 21, 2017 10:35 AM|btsAdministrator|LINK
schema has “Documents” element it should contain the “Document” element which should consist of SeqNumber, DocumentId, DocumentType, DocumentContent.
am at the moment able to send a single file, but what I need is to send multiple documents.
do I declare the Documents variable so I’m able to accept more than one document. ?
Nov 22, 2017 02:39 AM|Edward Z|LINK
>> How do I declare the Documents variable so I’m able to accept more than one document. ?
Could you share us which parameter accepts Documents? Is it DocumentContent?
For accepting multiple values, I think you could try List<T>.
Something like below:
public string Test(string UserName, [XmlElement(IsNullable =true)] List<byte> DocumentContent)
Nov 23, 2017 02:10 PM|btsAdministrator|LINK
Forgive me but I don't understand.
The XSD shows that the Parent element is called "Documents" (shouldn't I name the List "Documents" then? List<byte>
The XSD shows that the child elements are SeqNumber, DocumentId, DocumentType, DocumentContent
Now One "Documents" element may contain multiple "Document" element which consists of SeqNumber, DocumentId, DocumentType, DocumentContent
How do I receive 100 documents in one batch and not lose control on which is which ? How do I creacte a variable that will allow to accept 1 or more Documents ?
Nov 24, 2017 08:48 AM|TonyHelp|LINK
Could you share us how you upload one file in your original scenario?
A simple project with client ans asmx service would be much helpful.
We will try to modify your current code to achieve your requirement.
Nov 30, 2017 12:14 PM|PatriceSc|LINK
My understanding is that you transmit only a single DocumentContent so it should be a list or a an array of byte. Name this
I assume you would then use this content all along with other data to create each document (make sure to not confuse the document and its content)...