Output:use Modern::Perl; use Frontier::Client; my $server = Frontier::Client->new( 'url' => 'http://my.server.com/RPC +2', debug => 1 ); my $result = $server->call('MyCall', {test1 => "one", test2 => 'two'}) +;
---- request ---- <?xml version="1.0"?> <methodCall> <methodName>MyCall</methodName> <params> <param><value><struct> <member> <name>test1</name> <value><string>one</string></value> </member> <member> <name>test2</name> <value><string>two</string></value> </member> </struct></value></param> </params> </methodCall>
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Frontier::Client and <struct>
by CountZero
in thread Frontier::Client and <struct>
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |