[ic] SOAP - login tag issue

pienihetki pienihetki at gmail.com
Tue Dec 12 07:55:40 EST 2006

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('')
        -> proxy("$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";

More information about the interchange-users mailing list