bulldog2011/nano

base64 serialization issue

Opened this issue · 1 comments

I have in the wsdl file next line:

 s:element minOccurs="0" maxOccurs="unbounded" name="base64Binary" nillable="true" type="s:base64Binary"

And Nano library throws exception when i try to parse the response from server:

 Caused by: com.leansoft.nano.exception.MappingException: Can't get parameterized type of a List field, Nano framework only supports collection field of List<T> type, and T must be a Nano bindable type, field = base64Binary, type = java.util.List
        at com.leansoft.nano.impl.MappingSchema.handleList(MappingSchema.java:282)

can you please advice me how can i handle base 64 serialization?

Hi,

Current nano does not support a list of binary data, as a workaround, you may ecode base64binary as string or some kind of wrapper object on service provider side, and decode it at consumer side, or vice versa.

Thx!
-William