STUBMAKER(1)
π NAME π
okay bestie, this is STUBMAKER(1) from User Contributed Perl Documentation β the manual moment for stubmaker.pl, and it Generates client stubs from a WSDL file. Thatβs the whole name-and-purpose vibe, no cap. π
π OPTIONS π
okay so, hereβs the flag menu, and yes every single one is invited to the group chat:
-d <dirname>β tellsstubmaker.plthe directory you want the files written to. The directory must already exist β yep, it has to already be there before you run this. π«Ά-vβ turns on βverboseβ output during the code stub generation process. ngl, thereβs not much the program outputs, but if you absolutely must see something output to the console, then this fits the bill. π£οΈ--helpβ outputs a short help message. π--versionβ outputs the current version ofstubmaker.pl. π·οΈ
π¦ STUB FILES π¦
real talk: the class or package created by stubmaker.pl is actually a sub-class of the core SOAP::Lite object. As a result, all methods one can call upon SOAP::Lite one can also call upon generated stubs. slay β¨
For example, suppose you wanted to obtain readable output from the generated stub β then simply call readable(1) on the stubβs instance. See the example below. π
πΈ STUB SUBROUTINES πΈ
The following subroutines are unique to generated stub classes, and they help the user control and configure the stub class. π
want_som(boolean)β when set to1,SOAP::Litewill returnSOAP::SOMobjects to you upon invoking a method on a remote service. This is very helpful when you need to check to see if the return value is aSOAP::Faultor not. When set to0,SOAP::Litewill return the return value of the method. π₯
π EXAMPLES π
β¨ Invoking stubmaker.pl from the command line β¨
group-chat demo time β hereβs the exact command-line moment:
> perl stubmaker.pl http://www.xmethods.net/sd/StockQuoteService.wsdl
Or: > perl "-MStockQuoteService qw(:all)" -le "print getQuote('MSFT')"
π§ Working with stub classes π§
Command line: hereβs the stubmaker.pl call that targets http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl:
perl stubmaker.pl http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl
File: echo.pl
use full;
use SOAP::Lite +trace => qw( debug );
my $f = new full;
$f->use_prefix(0);
$f->readable(1);
$f->want_som(1);
$som = $f->echoViaBase64("foo");
π COPYRIGHT π
Copyright (C) 2000-2005 Paul Kulchenko. All rights reserved. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π«Ά
source/version + date check: perl v5.42.0, dated 2024-03-04, page STUBMAKER(1) β mwah π
π¦ where this page comes from
- opensuse-leap 16.0: perl-SOAP-Lite 1.27-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND CC-BY-ND-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms