[ic] Using Interchange as a SOAP server - process

Chris Sendall cjs2 at admin.cam.ac.uk
Fri Apr 15 12:51:00 EDT 2005


I am trying 
my $process_opt = {
    credit_card_number => '4111111111111111',
    };
$ok = $Tag->checkout( $process_opt )->result;

if($ok) {
    print "Successful process.\n";
}

calling catalog.cfg defined

SOAP_Action checkout <<EOR
sub {
       my $opt = shift;
       $CGI->{mv_credit_card_number} = $opt->{credit_card_number};
       $CGI->{mv_order_profile} = 'credit card';
       $CGI->{mv_doit} = 'submit';
       return $Tag->update( { function => 'process' });
}
EOR
SOAP_Control Action/checkout always

/etc/log_transaction MV_PAYMENT_MODE is not defined
Doing 
foreach my $key (sort keys%$::Variable) {
  ::logDebug("$key $::Variable->{$key}");
}

displays the variables from a different catalog. 
Setting MV_PAYMENT_MODE in the catalog.cfg file for the other catalog works.

Where does interchange load the variables from when called from SOAP::Lite
interface?

Thanks
Chris
 
      
Where does interchange load $::Variables from
 

--

Chris Sendall 
MISD, First Floor, Greenwich House, Madingley Rise, Madingley Road, Cambridge,
CB3 0TX.
Telephone: +44 1223 339653    Fax: +44 1223 339003
e-mail:cjs2 at admin.cam.ac.uk







More information about the interchange-users mailing list