[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] SOAP - login tag issue


Trying to use the code below to prove I can login to my site using SOAP. If I turn on debug in interchange I do see the login reported as successful in the SOAP log. However, the return value from calling the tag is always undefined! I am using IC 4.8.7 and SOAP::Lite 0.68. Any tips on how to debug this? Thanks.

use SOAP::Lite;
my $cat = 'catalog';
my $id = 'ABCDEFGH:soap';

my $Tag = SOAP::Lite
       -> uri('http://10.27.29.148/Vend/SOAP')
       -> proxy("http://10.27.92.148:7780/$cat/$id";);

my $login_opt = {
       username => 'test',
       password => 'test',
       function => 'login'
       };
my $ok = $Tag->userdb( $login_opt );
if (defined($ok)) {
       print "OK defined\n";
} else {
       print "Ok not defined\n";
}
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.