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

EXAMPLES

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