KDWSDL2CPP(1)
π kdwsdl2cpp β KDAB's WSDL to C++ compiler π
okay bestie, sit down, hydrate, and let me tell you about kdwsdl2cpp, section 1 of the User Commands manual. it's KDAB's WSDL to C++ compiler and it is literally here to turn your WSDL into C++ so you don't have to hand-write that stuff like some kind of Victorian orphan. π¦
β¨ USAGE β¨
so there's three ways to run this thing and they are NOT interchangeable, okay? pick your fighter:
for just a header file:
kdwsdl2cpp [options] -o <headerfile> <wsdlfile>
for just an implementation file:
kdwsdl2cpp [options] -o <cppfile> -impl <headerfile> <wsdlfile>
or, the icon behaviour, both files at once:
kdwsdl2cpp [options] -both <basefile> <wsdlfile>
π OPTIONS π
every single one, no skips, we do not gatekeep here π
-h,-helpβ shows you this help text and dips out. that's it. that's the whole job.-v,-versionβ tells you the version. cute.-s,-serviceβ the name of the service you want generated.-o <file>β sends the generated file into <file>. the output slot, basically.-impl <headerfile>β generates the implementation (.cpp) file, and#includes <headerfile>. yes, it does the include for you, bestie. you're welcome.-both <basefilename>β generates both the header (.h) and the implementation (.cpp) file in one go. two birds, one run, obsessed.-serverβ generates a server-side base class instead of a client service. so if you were expecting a client, surprise, you got the other one. π«Ά-exportMacro <macroname>β sets the export declaration to use for the generated classes.-namespace <ns>β puts all the generated classes into the given C++ namespace. cosy little namespace home for them. π-namespaceMapping <mapping>β adds theuri=codemapping. and here's the lil trick: if <mapping> begins with@, it reads from a file instead, with one entry per line. this whole thing affects the generated class names, so pay attention. π-optional-element-type <type>β uses <type> as the getter return value for optional elements. <type> can be one ofraw-pointer,boost-optionalorstd-optional. pick one, no third options, that's the menu.-keep-unused-typesβ keeps the wsdl unused types all the way to the cpp generation step. they stay. they're part of the family now. β¨-import-path <importpath>β searches for files in this path first, before downloading them. you can specify it multiple times, so go off. the file needs to be located at:<importpath>/<url-host>/<url-path>. yes, exactly that shape, don't freestyle it.-use-local-files-onlyβ only uses local files instead of downloading them automatically. this is the one you use when you want to force the correct use of the-import-pathoption. no sneaky downloads, periodt.-help-on-missingβ when groups or basic types could not be found, it displays the available types. this genuinely helps with wrong namespaces, so it's giving debugging bestie energy. π-pkcs12fileβ loads a certificate from a PKCS12 file. you can use this option if the WSDL file (or files referring to it) is served from a location which requires certificate based authentication. π-pkcs12passwordβ passes the password for the certificate file if required.
π¨ okay listen. this option is not secure and should be used with caution if other users of the machine are capable of seeing the running processes run by the current user. like, the vibes are bad on this one. be careful. π
πΈ AUTHORS πΈ
kdwsdl2cpp was written by Tobias Koenig <tokoe@kde.org>.
this manual page was written by Thomas Pierson <contact@thomaspierson.fr> for the Debian system (and may be used by others). permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 any later version published by the Free Software Foundation. π
and that's the whole thing, bestie! π this was KDAB's WSDL to C++ compiler, version 2.1, dated October 2020. now go generate some C++ and slay π β¨π¦
π¦ where this page comes from
- debian trixie: libkdsoap-bin 2.2.0+dfsg-3 Β· MIT
- ubuntu questing: libkdsoap-bin 2.2.0+dfsg-3ubuntu3
- ubuntu resolute: libkdsoap-bin 2.2.0+dfsg-4ubuntu1 Β· MIT
- ubuntu stonking: libkdsoap-bin 2.3.0+dfsg-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms