[Laszlo-user] Boolean variables
María Legorburu
maria at legorburu.eu
Sun Apr 1 04:34:59 PDT 2007
Hi! I'm experiencing problems when using a SOAP Web Service which
returns classes with boolean variables. I've made a class called
WebServices.java, which returns an instance of a class called "Foo", and
this class is composed by a boolean variable called "bar".
Once deployed the Web Service in my tomcat 5.5 with axis 1, it seems to
work correctly (you can see the WSDL in the attached file
"WebServices.wsdl", and the XML result of the petition in the file
"Response.xml", and I've consumed the service without problems with
SOAPpy of Python).
The problem is that, whenever I consume this SOAP Web Service from
OpenLaszlo 3.3.3, the result of Debug.inspect(value) is:
Loaded; invoke...
correct
«¡Foo#1!#0| {bar: [object Object]}» {
bar: {}
}
And when I consume it from OpenLaszlo 4.0, I get:
Loaded; invoke...
rpc.lzx _handler {status: ok, message: ok, data: [object
Object], opinfo: [object Object], seqnum: 1}
correct
«¡Object!#1| {bar: [object Object]}» {
bar: {}
}
I attach the .lzx file (example.lzx).
What am I missing? Why can't I use the value of the boolean "bar"
variable? Thank you in advance,
--
María Legorburu Mardaras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Foo.java
Type: text/x-java
Size: 44 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070401/b2ca6de6/Foo.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WebServices.java
Type: text/x-java
Size: 137 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070401/b2ca6de6/WebServices.bin
-------------- next part --------------
<canvas debug="true" width="500" height="500">
<debug y="0" width="400" height="240" />
<text>Hello Laszlo!</text>
<soap name="myexample" wsdl="http://zisplanet.deusto.es:8080/axis/services/ExampleWS?wsdl">
<handler name="onload">
Debug.write("Loaded; invoke...");
myexample.example.invoke();
</handler>
<remotecall funcname="example">
<handler name="ondata" args="value">
Debug.write("correct");
Debug.inspect(value);
if(value.bar == true){
Debug.write("WOOOOWWW");
}
</handler>
<handler name="onerror" args="value">
Debug.write("incorrect");
Debug.inspect(value);
</handler>
</remotecall>
</soap>
</canvas>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WebServices.wsdl
Type: application/xml
Size: 2404 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070401/b2ca6de6/WebServices.rdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Response.xml
Type: application/xml
Size: 819 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070401/b2ca6de6/Response.rdf
More information about the Laszlo-user
mailing list