KDSoap icon indicating copy to clipboard operation
KDSoap copied to clipboard

Support for multiple output parameters in rpc-style operations

Open NeubertT opened this issue 6 years ago • 1 comments

https://github.com/KDAB/KDSoap/blob/e69bb1f6f9a6cda9f33a74afea08cad9d745f1b0/kdwsdl2cpp/src/converter_clientstub.cpp#L671

https://github.com/KDAB/KDSoap/blob/e69bb1f6f9a6cda9f33a74afea08cad9d745f1b0/kdwsdl2cpp/src/converter_serverstub.cpp#L150

Is there any chance that support for multiple output parameters in rpc-style operations is added soon? As far as I can tell, the following message definition for a server response is perfectly valid with respect to the wsdl specification: <message name="ReadResponse"> <part name="Parameters" type="ns1:TParameters"/> <part name="Error" type="xs:unsignedShort"/> <part name="errorText" type="xs:string"/> </message>

Are there any reasons for not implementing it, that I don't see?

Kind regards, Tim

NeubertT avatar Dec 18 '17 08:12 NeubertT

This would require that the generated C++ method is able to return multiple values... which means either a class/struct, or a std::tuple. Feel free to implement it, I'll review the patch.

dfaure-kdab avatar Dec 19 '17 09:12 dfaure-kdab