axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Börkel <>
Subject HowTo use an untyped primitive array as parameter (not using proxies)?
Date Thu, 18 Sep 2003 13:01:21 GMT

If I am not using a proxy and I use call.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE) then
Axis sends the parameters untyped like this:
  <parameterTest soapenv:encodingStyle="">

So far, so good. But how about arrays? If I have a primitive array as parameter, Axis always
does typing like this:
  <arrayTest soapenv:encodingStyle="">
   <arg0 soapenc:arrayType="xsd:string[3]" xmlns:soapenc="">

Or like this:
  <arrayTest soapenv:encodingStyle="">
   <arg0 soapenc:arrayType="xsd:anyType[3]" xmlns:soapenc="">
    <item xsi:type="xsd:string">1</item>
    <item xsi:type="xsd:string">2</item>
    <item xsi:type="xsd:string">3</item>

I have tried:
    call.invoke(new String[]{"1", "2", "3.5", "Test", "true"});
    call.invoke(new Object[]{new Object[]{"1", "2", "3"}});

Is there a way to send arrays completely untyped, too? So that the server converts it to the
correct type?



View raw message