jhyland87 has asked for the wisdom of the Perl Monks concerning the following question:
And here is my Perl version, which returns "0", and has no effect on the server.<?php try { $client = new SoapClient(http://SMARTERMAIL.com/services/svcUserAdmin. +asmx?WSDL'); $params = array( 'AuthUserName' => 'xxxxxxxxxxxxxx@xxxxxxxx.com', 'AuthPassword' => 'xxxxxxxxxx', 'NewUsername' => 'xxxxxxxx', 'NewPassword' => 'xxxxxxxxxxxx', 'DomainName' => 'xxxxxxxxxxx.com', 'FirstName' => 'john', 'LastName' => 'doe', 'IsDomainAdmin' => 0 ); $addUser = $client->AddUser($params); ?>Email account: <b><?=$emailaddr ?></b> has been added<p><? } catch (Exception $e) { printf("Message = %s ",$e->__toString()); } ?>
Anyone know what these two do differently? Im rather new to the SOAP module, and perl in general, really....#!c:/perl/bin use SOAP::Lite; use strict; use warnings; my %domainArray = ( 'AuthUserName' => 'xxxxxxxxxxxxxx@xxxxxxxx.com', 'AuthPassword' => 'xxxxxxxxxx', 'NewUsername' => 'xxxxxxxx', 'NewPassword' => 'xxxxxxxxxxxx', 'DomainName' => 'xxxxxxxxxxx.com', 'FirstName' => 'john', 'LastName' => 'doe', 'IsDomainAdmin' => 0 ); my $WSDL = 'http://SMARTERMAIL.com/services/svcUserAdmin.asmx?WSDL +'; my $soap = new SOAP::Lite->service($WSDL); my %output = $soap->AddUser(%domainArray); print "Output: ". %output;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: SOAP::Lite Module
by Anonymous Monk on Mar 24, 2010 at 20:11 UTC | |
by jhyland87 (Sexton) on Mar 24, 2010 at 20:31 UTC | |
by Khen1950fx (Canon) on Mar 24, 2010 at 21:15 UTC | |
by jhyland87 (Sexton) on Mar 24, 2010 at 21:20 UTC | |
by Anonymous Monk on Mar 24, 2010 at 22:49 UTC | |
by jhyland87 (Sexton) on Mar 25, 2010 at 17:54 UTC | |
by Krambambuli (Curate) on Mar 24, 2010 at 21:53 UTC | |
by jhyland87 (Sexton) on Mar 25, 2010 at 00:10 UTC | |
by Anonymous Monk on Mar 25, 2010 at 00:44 UTC | |
Re: SOAP::Lite Module
by hominid (Priest) on Mar 24, 2010 at 20:56 UTC | |
by jhyland87 (Sexton) on Mar 24, 2010 at 20:58 UTC |