Re: Sending an Empty Integer Array
> I have a perl soap::lite client that communicates with a javaI haven't tested this, but I suspect something like
> web service. The java web service is expecting an array of integers
> (int) as an argument. However, for my purposes, I do not have
> anything to place in the argument. Therefore, I wish to send an
> empty or null array.
> The problem is that perl does not type variables or arrays
> unless something is in them. If I send a blank array:
> $soap->function(); - soap::lite encodes the array as
> an "anytype" array. Since this does not match the java prototype, an
> exception is thrown. If I place anything in the array,
> $soap->function(); , then it sends and array of integers, but with
> one item. I cannot have any items sent. The array must be an
> integer array of size 0.
> I have tried many different approaches to this, but nothing has
> worked. Can someone please tell me how to send an empty integer
> array in soap::lite?
$soap->function(SOAP::Data->type(integer => ));
should work. The type might need to be "integer" (in quotes) instead.