RHN XML-RPC system.setChildChannels issue



I'm trying to use the RHN XML-RPC API (yes, that was 4 TLAs in a row)
to automatically subscribe my systems to a set of channels. Here's
the request I send (with added whitespace for legibility) with Perl's
RPC::XML::Client:

<?xml version="1.0" encoding="us-ascii"?>
<methodCall>
<methodName>system.setChildChannels</methodName>
<params>
<param><value><string>3543551944xec1c4bd26c181f4f045f65b33d2f0cda</string></value></param>
<param><value><int>1234567890</int></value></param>
<param><value><array><data>
<value><int>6958</int></value>
<value><int>6962</int></value>
</data></array></value></param>
</params>
</methodCall>

(SystemID and session string have both been changed, but format
retained.)

The error I get back is:

unhandled internal exception: java.lang.Integer (-2)

I've looked over the API, and it's expecting three arguments of
string, int, and array type, respectively. The array appears to be an
array of ints, as far as I can tell.

At this point in the script, I've logged in and gotten a list of the
child channels, both of which requests work just dandy.

What am I doing wrong?

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: 3310 RAID1 (mirror) Question
    ... connect another host to the array, or even the same host more than ... I select 5 drives ... I understand that the array will configure ... both channels as described in this short Sun Doc: ...
    (comp.unix.solaris)
  • Re: Move mailbox option from Exch5.5 to Exch2k3
    ... A cost issue will be the number of separate ... channels and the RAID adapter. ... either impossible or prohibitively expensive to get a RAID adapter with more ... add a kit to convert the external drive bays into another array. ...
    (microsoft.public.exchange.admin)
  • Re: New Server Setup...Drive configurations
    ... databases on the same drive. ... The 2x36 array should be RAID-1 ... channels can be costly and a RAID-10 array will require at least 4 drives ... > a) They are wanting to give me a single R10, is this the best way to go? ...
    (microsoft.public.sqlserver.setup)
  • How do I output voltage using nidaqmx-base for linux
    ... I have Labview 7.1 running on Red Hat and am using a ... number of channels of task does not match number of channels in data. ... tried using both a 1D array and a 2D array for my data wire leading to ...
    (comp.lang.labview)