QtSoap: Changing the type of a webservice object
I want to add a methodargument with a different type to my request.
My current code adds the version (int) as a string, it's working unless the server is strict with its wsdl:
Code:
request.addMethodArgument("VersionIm", "", version);
The desired type for this is Short, which is not available as a simple type.
I am trying to call it like this, but it is not working:
Code:
QtSoapType* versionTag = new QtSoapType(QtSoapQName("VersionIm", version), QtSoapType::Short);
request.addMethodArgument(versionTag);
Any hints what I am doing wrong?