Hi,
I am trying to consume an axis2 web service which receives an array of strings as argument and returns a string. I am doing it using the xosoap package.
There are no problems in the service itself, it works when I construct the array using the ArrayBuilder: This is the code:
###########################################################################
set s4 [SoapGlueObject new \
-endpoint "http://192.168.1.102:8080/WWS-Server/services/ArrayWS" \
-callNamespace "http://server.com" \
]
ProxyObject ArrayWS -glueobject $s4
ArrayWS ad_proc -returns xsString setArray {
-sarr:soapArray(xsString)<2>
} {} {}
set stringArray [ArrayBuilder new -type xsString -size 2]
set i [$stringArray new]
$i 0 hello
$i 1 world
set res [ArrayWS setArray -sarr $i]
###########################################################################
The problem is in the xml request generated. It is like this:
<setArray>
<sarr>
<member>hello</member>
<member>world</member>
</sarr>
</setArray>
While the server needs a xml request like this other:
<setArray>
<sarr>hello</sarr>
<sarr>world</sarr>
</setArray>
I would like to know if there are any different way to configure the GlueObject or construct the array to solve this problem.
Thanks in advance.
Javi.