{
    "mode": "man",
    "parameter": "stubmaker",
    "section": "1p",
    "url": "https://www.chedong.com/phpMan.php/man/stubmaker/1p/json",
    "generated": "2026-05-30T05:14:48Z",
    "sections": {
        "NAME": {
            "content": "stubmaker - Generates client stubs from a WSDL file.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-d <dirname>",
                    "content": "Specifies the directory you wish to output the files to. The directory must already\nexist.\n\n-v  Turns on \"verbose\" output during the code stub generation process. To be honest, there is\nnot much the program outputs, but if you must see something output to the console, then\nthis fits the bill.\n",
                    "flag": "-d",
                    "arg": "<dirname>"
                },
                {
                    "name": "--help",
                    "content": "Outputs a short help message.\n",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Outputs the current version of stubmaker.\n",
                    "long": "--version"
                }
            ]
        },
        "STUB FILES": {
            "content": "STUB SUBROUTINES\nThe \"class\" or \"package\" created by stubmaker is actually a sub-class of the core SOAP::Lite\nobject. As a result, all methods one can call upon SOAP::Lite one can also call upon\ngenerated stubs.\n\nFor example, suppose you wanted to obtain readable output from the generated stub, then\nsimply call readable(1) on the stub's instance. See the example below.\n\nThe following subroutines are unique to generated stub classes, and help the user control and\nconfigure the stub class.\n\nwantsom(boolean)\nWhen set to 1, SOAP::Lite will return SOAP::SOM objects to the user upon invoking a\nmethod on a remote service. This is very helpful when you need to check to see if the\nreturn value is a SOAP::Fault or not. When set to 0, SOAP::Lite will return the return\nvalue of the method.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "Invoking stubmaker from the command line",
                    "content": "> perl stubmaker http://www.xmethods.net/sd/StockQuoteService.wsdl Or: > perl\n\"-MStockQuoteService qw(:all)\" -le \"print getQuote('MSFT')\"\n"
                },
                {
                    "name": "Working with stub classes",
                    "content": "Command line: > perl stubmaker http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl\n\nFile: echo > use full; > use SOAP::Lite +trace => qw( debug ); > my $f = new full; >\n$f->useprefix(0); > $f->readable(1); > $f->wantsom(1); > $som = $f->echoViaBase64(\"foo\");\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 2000-2005 Paul Kulchenko. All rights reserved.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms\nas Perl itself.\n\n\n\nperl v5.26.2                                 2018-05-18                                STUBMAKER(1p)",
            "subsections": []
        }
    },
    "summary": "stubmaker - Generates client stubs from a WSDL file.",
    "flags": [
        {
            "flag": "-d",
            "long": null,
            "arg": "<dirname>",
            "description": "Specifies the directory you wish to output the files to. The directory must already exist. -v Turns on \"verbose\" output during the code stub generation process. To be honest, there is not much the program outputs, but if you must see something output to the console, then this fits the bill."
        },
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Outputs a short help message."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Outputs the current version of stubmaker."
        }
    ],
    "examples": [
        "> perl stubmaker http://www.xmethods.net/sd/StockQuoteService.wsdl Or: > perl",
        "\"-MStockQuoteService qw(:all)\" -le \"print getQuote('MSFT')\"",
        "Command line: > perl stubmaker http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl",
        "File: echo > use full; > use SOAP::Lite +trace => qw( debug ); > my $f = new full; >",
        "$f->useprefix(0); > $f->readable(1); > $f->wantsom(1); > $som = $f->echoViaBase64(\"foo\");"
    ],
    "see_also": []
}