Link to paste bin http://pastie.org/617651
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jesus M. Rodriguez Sent: Tuesday, September 15, 2009 9:09 AM To: [email protected] Subject: Re: [Spacewalk-list] Creating perl script to use Spacewalk API butgetting error Could not find method create On Tue, Sep 15, 2009 at 8:09 AM, Frey, Evan <[email protected]> wrote: > Actually, even with a hash I get the same error: > > Fault returned from XML RPC Server, fault code -1: > redstone.xmlrpc.XmlRpcFault: Could not find method create in class > class com.redhat.rhn.frontend.xmlrpc.errata.ErrataHandler > > It appears like it can't find the create method in the errata class Hrm ok, it's trying to find a match by method name AND parameter types. For some reason it can't find a match for one of the types. We need to put your client into debug mode so we can see the XML-RPC that it is sending to the Spacewalk server. If you are using Frontier::RPC then you can just turn on the debug flag when you create the client: my $conn = new Frontier::Client(url => $host, debug => 1); that will output the XML-RPC for the errata.create call. Then paste the output to http://pastie.org/ and send the link to the list. > > Code looks like this: > > my $RHNSynopsis = $RHNDetails{errata_synopsis}; > my $RHNType = $RHNDetails{errata_type}; > my $RHNTopic = $RHNDetails{errata_topic}; > my $RHNDescription = $RHNDetails{errata_description}; > my $RHNReferences = $RHNDetails{errata_references}; > my $RHNNotes = $RHNDetails{errata_notes}; > my $SWRelease = 1; > my $SWProduct = "Red Hat"; > my $SWSolution = "Upgrade where applicable"; > my @RHNBugs = []; > my @RHNKeywords = []; > my $SWPublish = 1; > > my %Errata_Info = ("synopsis" => $RHNSynopsis, > "advisory_name" => $ERRATA_NAME, > "advisory_release" => $SWRelease, > "advisory_type" => $RHNType, > "product" => $SWProduct, > "topic" => $RHNTopic, > "description" => $RHNDescription, > "references" => $RHNReferences, > "notes" => $RHNNotes, > "solution" => $SWSolution); > > > $SWclient->call('errata.create',$SWsession,%Errata_Info,@RHNBugs,@RHNK > eywords > ,@Packages,$SWPublish,@Channels); jesus _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are confidential. It is neither an offer to buy or sell, nor a solicitation of an offer to buy or sell, any securities or any related financial instruments mentioned in it. If you are not the named recipient please notify the sender and immediately delete it. You may not disseminate, distribute, or forward this e-mail message or disclose its contents to anybody else. Unless otherwise indicated, copyright and any other intellectual property rights in its contents are the sole property of Mizuho Securities USA Inc. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Although we routinely screen for viruses, addressees should check this e-mail and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from our server(s). ##################################################################################### _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
