Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
726 B

  1. #!/bin/env perl
  2. #!d:\perl\bin\perl.exe
  3. # -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul Kulchenko --
  4. use SOAP::Lite;
  5. print "Accessing...\n";
  6. my $schema = SOAP::Schema
  7. -> schema(shift or die "Usage: $0 <URL with schema description> [<service> [<port>]]\n")
  8. -> parse(@ARGV);
  9. print "Writing...\n";
  10. foreach (keys %{$schema->services}) {
  11. my $file = "./$_.pm";
  12. print("$file exists, skipped...\n"), next if -s $file;
  13. open(F, ">$file") or die $!;
  14. print F $schema->stub($_);
  15. close(F) or die $!;
  16. print "$file done\n";
  17. }
  18. # try
  19. # > perl stubmaker.pl http://www.xmethods.net/sd/StockQuoteService.wsdl
  20. # then
  21. # > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"