jhyland87 has asked for the wisdom of the Perl Monks concerning the following question:
Ive been looking through smartermails PDF doc on automating the web services, I know the PW/UN im using is right, but its still not returning anything at all, or adding the user. http://www.smartertools.com/downloads/documents/smartermail/SmarterMail6x_Automation_with_WebServices.pdf Anyone here use soap::wsdl that can see any obvious errors in my above code? I printed result out with data dumper, this is what it returns..#!c:/perl/bin use SOAP::WSDL; use strict; use warnings; my %data = ( 'AuthUserName' => 'xxxxxx@testdomain.com', 'AuthPassword' => 'xxxxxxx', 'NewUsername' => 'johndoe', 'NewPassword' => 'test', 'DomainName' => 'testdomain.com', 'FirstName' => 'john', 'LastName' => 'doe', 'IsDomainAdmin' => 0 ); my $soap = SOAP::WSDL->new( wsdl => 'http://xxxxxxxxxxxxxx.com/services/svcUserAdmin.asmx?WSDL +', ); my $result = $soap->call('AddUser', %data); print $result;
'detail' => '', 'faultcode' => 'soap:Client', 'faultstring' => 'System.Web.Services.Protocols.SoapException: Se rver was unable to read request. ---> System.InvalidOperationException: There is an error in XML document (1 , 205). ---> System.FormatException: The string \'\' is not a valid Boolean value. at System.Xml.XmlConvert.ToBoolean(String s) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read21_AddUser() at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer.Deserialize(XmlSerializationRead er reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeser ializationEvents events) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeser ializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()' }, '{http://schemas.xmlsoap.org/soap/envelope/}Fault',
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::WSDL Module
by Anonymous Monk on Mar 31, 2010 at 01:41 UTC | |
by jhyland87 (Sexton) on Apr 01, 2010 at 18:11 UTC | |
by Anonymous Monk on Apr 01, 2010 at 19:55 UTC |