Here is a snipit of a perl script I use (provided by Carey) that calls a
Remedy Webservice
use SOAP::Lite;
my @data = (
SOAP::Data->name('Status')->value('Send'),
SOAP::Data->name('Submitter')->value('PerlScript'),
SOAP::Data->name('To')->value($C{email}),
SOAP::Data->name('Subject')->value("Order Detail Report - $C{Order_ID}"),
SOAP::Data->name('Att1_attachmentName')->value("$C{Order_ID}.pdf"),
SOAP::Data->name('Att1_attachmentData')->value($filestring)
);
my $result = $soap->OpCreate(@data);
if ($result->fault){
print "Error calling Webservice\n";
print "Fault :", $result->faultstring, "\n";
print "Faultcode :",$result->faultcode, "\n";
print "Faultdetail :", %{$result->faultdetail}, "\n";
}
You should be able to easily modify this to fit your needs.
_____
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Sean Harrodine
Sent: Monday, May 11, 2009 12:55 PM
To: [email protected]
Subject: Webservice - sample script for a basic Remedy form
**
Hi everyone,
Can anyone assist me with the following please.
I am starting work on our first web service and was wondering if there are
any sample scripts knocking around or have BMC supplied any in the past ?,
for passing some test data through to a test form with the basic fields
mandatory fields to create a ticket, and then to receive the response back ?
If anyone knows of any script (preferably Perl) or was able to share then i
would be more than grateful or alternatively, any other pointers.
Many thanks in advance guys/gals.
rgds,
Sean
_Platinum Sponsor: [email protected] ARSlist: "Where the Answers
Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"