tags:

views:

19

answers:

0

I have a WSDL of a Java webservice that has two types. This is the first:

<xs:complexType name="attachImageToOrder">
    <xs:sequence>
        <xs:element minOccurs="0" name="image" type="xs:base64Binary"/>
        <xs:element minOccurs="0" name="orderId" type="xs:long"/>
    </xs:sequence>
</xs:complexType>

This is the second type:

<xs:complexType name="scannedDocumentUpload">
    <xs:sequence>
        <xs:element minOccurs="0" name="scannedDocuments">
            <xs:simpleType>
                <xs:list itemType="xs:base64Binary"/>
            </xs:simpleType>
        </xs:element>
    </xs:sequence>
</xs:complexType>

Now, in .Net, the first binary is serialized into a byte array, byte[]. The second one, though is serialized as a string. What's the deal? How do I get the field to show up as a byte[][] or a List<byte[]>? I'm supposed to be throwing multiple images into this method, and a single string field is... uh.