[interchange-cvs] interchange - racke modified lib/Vend/SOAP.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Tue Mar 11 13:57:08 2003


User:      racke
Date:      2003-03-11 18:56:02 GMT
Modified:  lib/Vend SOAP.pm
Log:
* issue error message if tracing function doesn't exist

* new option result for [soap] to store result (which might be a
  hash reference) into the scratch namespace, useful because
  calling $Tag->soap (may) fail due to Safe errors

Revision  Changes    Path
2.7       +5 -2      interchange/lib/Vend/SOAP.pm


rev 2.7, prev_rev 2.6
Index: SOAP.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/SOAP.pm,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -r2.6 -r2.7
--- SOAP.pm	11 Mar 2003 00:59:32 -0000	2.6
+++ SOAP.pm	11 Mar 2003 18:56:01 -0000	2.7
@@ -1,6 +1,6 @@
 # Vend::SOAP - Handle SOAP connections for Interchange
 #
-# $Id: SOAP.pm,v 2.6 2003/03/11 00:59:32 racke Exp $
+# $Id: SOAP.pm,v 2.7 2003/03/11 18:56:01 racke Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -34,7 +34,7 @@
 use strict;
 
 use vars qw($VERSION @ISA $AUTOLOAD);
-$VERSION = substr(q$Revision: 2.6 $, 10);
+$VERSION = substr(q$Revision: 2.7 $, 10);
 @ISA = qw/SOAP::Server/;
 
 my %Allowed_tags;
@@ -129,6 +129,8 @@
 	if($opt->{trace_transport}) {
 		if (exists $Vend::Cfg->{Sub}->{$opt->{trace_transport}}) {
 			SOAP::Trace->import('transport' => $Vend::Cfg->{Sub}->{$opt->{trace_transport}});
+		} else {
+			::logError (qq{no such subroutine "$opt->{trace_transport}" for SOAP transport tracing});
 		}
 	}
 
@@ -161,6 +163,7 @@
 	}
 #::logDebug("after method call, uri=$uri proxy=$proxy call=$method result=$result");
 
+	$::Scratch->{$opt->{result}} = $result if $opt->{result};
 	return '' if $opt->{init};
 	return $result;
 }