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

Problem with a generation of client sources #3

Open
4everalone opened this issue Jun 10, 2013 · 5 comments
Open

Problem with a generation of client sources #3

4everalone opened this issue Jun 10, 2013 · 5 comments

Comments

@4everalone
Copy link

When resonse is a boolean type, mwsc generated a code:

.....
import boolean;
.....

    /**
     public method
    */
    public void verify(Data requestObject, SOAPServiceCallback<boolean> serviceCallback) {


        super.invoke(requestObject, serviceCallback, boolean.class);
    }

Generated from:

  <xsd:element name="Verify" nillable="true" type="tns:Data"/>
  <xsd:element name="VerifyResponse" type="xsd:boolean"/>
@bulldog2011
Copy link
Owner

Hi,

MWSC/Pico only supports doc/lit style wsdl, rpc style is not supported, you must wrap the response in a complext type element.

Thx!
-William

@4everalone
Copy link
Author

Does this means that nano will not serialize 'Boolean' object when I change the code to generate 'Boolean' instead of 'boolean'? I mean Boolean object, not primitive

@bulldog2011
Copy link
Owner

in doc/lit style wsdl, you must wrap response in a complext type, something link XXXResponse and it's ok that the wrapper element have only one boolean sub-element.

see details here:
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/

@4everalone
Copy link
Author

I've got what you said, but for some reasons I can't modify wsdl schema. Please understand me. It is a matter of life and death.
I need to make mwsc to work with boolean responses. I thought to make changes on code generation level to generate Boolean instead of boolean. If i will do so, will nano serialize Boolean object? Or it just will throw an exception?

@bulldog2011
Copy link
Owner

Hi,

MWSC is just a light tool targeting mobile platforms, considering the effort and complexity, it is only desiged to support doc/lit style wsdl.

You definitely can do some hacking on the code generator side and the binding framework(nano) side, as long as you can fully underderstand how both sides work internally. Nano can't serialize Boolean object directly, but if you can do some hacking in the Nano source, it may work.

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

2 participants