#74 stubmaker.pl using schema() in 65 beta 3

0.65
closed-fixed
Byrne Reese
WSDL (18)
5
2007-10-02
2005-03-07
Medi
No

The stubmaker.pl shipped in .65 Beta 3 is still using
schema()
instea of schema_url(), causing a warning

Also, this program's name is bogus....this is not a
Perl Library
why is it called with a .pl extension.

Why break a culture for those windows users who don't
appreciate
Perl to begin with....you are confusing the rest of us
who understand
.pl to mean a perl library...

I suggest .. in line with rpcgen, call it
soparpcgen(1) and let the windows guys say
perl soaprpcgen

Here is my version of soaprpcgen(1)
#!/usr/bin/perl

BEGIN
{
use strict;
use SOAP::Lite;
use Getopt::Std;
our $Usage = "Usage: $0 -w file.WSDL -s serviceName";
}

# ============ main() =============

die ( "Error: $Usage" ) if ( $#ARGV == -1 );
my %Opts;
die ( "Error: $Usage" ) if ( !getopts('w:s:', \%Opts) ) ;
my $WSDL_URL = $Opts{'w'};
my $serviceName = $Opts{'s'};
print "Parsing WSDL file [$WSDL_URL] ...\n";

my $schema = SOAP::Schema->new( schema_url =>
"$WSDL_URL" )->parse();
if ( $serviceName )
{
print "Generating $serviceName proxy class
[$serviceName.pm] ...\n";
open(OUT, "> $serviceName.pm" ) || die ($!);
my $code = $schema->generate_stub($serviceName);
print OUT $code;
close(OUT);
exit(0);
}

Discussion

  • Byrne Reese
    Byrne Reese
    2005-03-28

    • status: open --> open-fixed
     
  • Byrne Reese
    Byrne Reese
    2005-03-28

    Logged In: YES
    user_id=28043

    Fixed. stubmaker.pl just received several updates. The least
    of which was the removal of calls to deprecated subroutines.

     
  • Martin Kutter
    Martin Kutter
    2007-10-02

    • status: open-fixed --> closed-fixed