Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 serialization issue #11

Open
ghost opened this issue Dec 2, 2013 · 1 comment
Open

base64 serialization issue #11

ghost opened this issue Dec 2, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 2, 2013

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?

@bulldog2011
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant