Perl modules w/SOAP...why is argv[0] program name and not first parm?

Perl modules w/SOAP...why is argv[0] program name and not first parm?

Post by Mike Klei » Mon, 20 Oct 2003 16:15:40


Of course, my thinking may be muddled here.

I thought the whole point of SOAP was that implementations/services that
are called were SOAP-unaware. That you just needed soap-awareness in
some server glue (say a perl cgi script) and of course in calling client
application (perl, python, php, java, whatever).

Yet every SOAP::Lite example I've seen has the soap service defined as a
Perl module, and that module cannot be called by local code.

This is because when Perl module is soap-invoked, it appears first
parameter to invoked module method is program name (ala C)...yet when I
invoke Perl module via local perl program the first parameter is the
parameter passed to method.

What am I missing/confused about here? This doesn't seem to be happening
with Java programs I call via soap. Alas...I'm no perl whiz and am at a
loss as to the answer.
 
 
 

1. sys.argv[0] - 'module' object has no attribute 'argv'

2. Perl, why does the below perl module for Windows 2003, SMTP mail doesnt work?

Hi, this is the testemail.pl code with the mail server name and email
address hidden, I don't see this script working online in Windows 2003
server Can someone please help.

Strange is, it doesnt give any error at all.



---------------------------------------------------------------------------?----------------------------------------------

#!/usr/bin/perl -w


print "Content-type: text/html\n\n";


use strict;


use CGI;


print "
<html>\n
<head>\n
<title>Simple e-mail testing program</title>\n
</head>\n
<body>\n
";


use Net::SMTP;
my $smtp = Net::SMTP->new('mail_server', HELLO=>'domain_name') or die
print "<br>Unable to open mailhost";


my $from='info@domain_name';
my $to='to_address';
my $subject="Vineyard Homes Online Enquiry";


$smtp->mail($from);


$smtp->data();


$smtp->datasend("From: ", $from, "\r\n");
$smtp->datasend("To: ", $to, "\r\n");
$smtp->datasend("Subject: ", $subject, "\r\n");
$smtp->datasend("\n");
$smtp->datasend("A simple test message\r\n");
$smtp->dataend();
$smtp->quit;


print "<br>Mail testing completed... with $smtp as
smtp host";


print "
</body>\n
</html>
";


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.yqcomputer.com/

3. w'S ***Hot stuff - check this out !!! w'S

4. Perl drops first argv[0] parameter when being called via execv()

5. Clarification: Perl drops first argv[0] parameter when being called via execv()

6. Why argv[i][j] modifiable?, argv[0] = something, again

7. Using CallManager AXL interface with perl and SOAP::Lite module

8. creating last name first, first name last from a column of first name last name data

9. Error when pass multi value parms in matrix when not ALL or 1 parm

10. Query working with on parm but not another parm

11. Why 'import module' will not import module.py but the directory module?

12. executing perl script (as char*, not file) in C and evaluating @ARGV

13. how do I reveerse name order last name, first name to first name, last name

14. Why are the "contacts" sorted by first name & not last name in

15. Why does Outlook (2003) sort by first name not last name?