1STUBMAKER(1)          User Contributed Perl Documentation         STUBMAKER(1)
2
3
4

NAME

6       stubmaker.pl - Generates client stubs from a WSDL file.
7

OPTIONS

9       -d <dirname>
10           Specifies the directory you wish to output the files to. The
11           directory must already exist.
12
13       -v  Turns on "verbose" output during the code stub generation process.
14           To be honest, there is not much the program outputs, but if you
15           must see something output to the console, then this fits the bill.
16
17       --help
18           Outputs a short help message.
19
20       --version
21           Outputs the current version of stubmaker.pl.
22

STUB FILES

24   STUB SUBROUTINES
25       The "class" or "package" created by stubmaker.pl is actually a sub-
26       class of the core SOAP::Lite object. As a result, all methods one can
27       call upon SOAP::Lite one can also call upon generated stubs.
28
29       For example, suppose you wanted to obtain readable output from the
30       generated stub, then simply call readable(1) on the stub's instance.
31       See the example below.
32
33       The following subroutines are unique to generated stub classes, and
34       help the user control and configure the stub class.
35
36       want_som(boolean)
37           When set to 1, SOAP::Lite will return SOAP::SOM objects to the user
38           upon invoking a method on a remote service. This is very helpful
39           when you need to check to see if the return value is a SOAP::Fault
40           or not. When set to 0, SOAP::Lite will return the return value of
41           the method.
42

EXAMPLES

44   Invoking stubmaker.pl from the command line
45       > perl stubmaker.pl http://www.xmethods.net/sd/StockQuoteService.wsdl
46       Or: > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"
47
48   Working with stub classes
49       Command line: > perl stubmaker.pl
50       http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl
51
52       File: echo.pl > use full; > use SOAP::Lite +trace => qw( debug ); > my
53       $f = new full; > $f->use_prefix(0); > $f->readable(1); >
54       $f->want_som(1); > $som = $f->echoViaBase64("foo");
55
57       Copyright (C) 2000-2005 Paul Kulchenko. All rights reserved.
58
59       This library is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.30.1                      2020-01-30                      STUBMAKER(1)
Impressum