Everything is fine, up to the point where the xml-elements are de-serialized and transferred into the corresponding Smalltalk objects. The original base64 binary data stream is stored into the smalltalk object.
On the java side, the binary pdf data stream is automatically converted into base64 binary by the serializer - I strongly suspect by using the xsd information.
I would have expected similar behavior on the Smalltalk side during de-serializing.
So, my question is, whether the automatic deserialization is just not implemented, not supported in VA or I am doing something wrog.
- Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="aprod.ermitteltePdfStreamsFuerRechnungsnummern">
<xs:complexType>
<xs:sequence>
<xs:element name="rechnungsSatz" type="rechnungsSatz" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="rechnungsSatz">
<xs:sequence>
<xs:element name="rechnungsnummer" type="rechnungsnummer"/>
<xs:element name="pdfStream" type="pdfStream"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="rechnungsnummer">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="pdfStream">
<xs:restriction base="xs:base64Binary">
<xs:minLength value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>