/[notice-sender]/trunk/soap-client.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/soap-client.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations)
Mon May 16 16:25:14 2005 UTC (18 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 580 byte(s)
SOAP now works, return member ID for add_member_to_list

1 #!/usr/bin/perl -w
2
3 use SOAP::Lite; #+trace => 'debug';
4 my $HOST = "http://localhost/~dpavlin/notice-sender/soap.cgi";
5 my $NS = "http://localhost/Nos/SOAP/";
6 my $soap = SOAP::Lite
7 ->readable(1)
8 ->uri($NS)
9 ->proxy($HOST);
10
11 print "added member ID ",$soap->AddMemberToList({
12 list => 'My list',
13 email => 'dpavlin@rot13.org',
14 name => 'Dobrica Pavlinusic',
15 })->result,"\n";
16
17 print "added message ID ",$soap->AddMessageToList({
18 list => 'My list',
19 message => 'To: member@example.com
20 From: mylist@example.com
21 Subject: text
22
23 This is a dummy test
24 ',
25 })->result,"\n";
26 1;

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26