07-25-2012 04:16 AM
I use qtsoap to make a Web service,
my body is:
<soap:Body> <GetSupportRequests xmlns="http://xxxxxxxxxxxxxxxxxxxx/"> <asGuids> <string>string</string> <string>string</string> </asGuids> </GetSupportRequests> </soap:Body>
the arguments of the method is asGuids with a list of string, I can not find a method to add this argument.
its not working with addMethodArgument.
Does someone have an idea?
Solved! Go to Solution.
07-25-2012 05:16 PM - edited 07-25-2012 05:16 PM
Did not tried with SOAP, and i cant help you with that. I can only give you advice that if you are making web service which will be consumed with mobile clients, make it via REST api.
07-27-2012 09:07 AM
I found the solution :
QtSoapMessage request; request.setMethod("GetSupportRequests", "http://xxxxxxxxxx"); QtSoapStruct *myStruct=new QtSoapStruct(QtSoapQName("asGuids")); myStruct->insert( new QtSoapSimpleType(QtSoapQName("string"),"46f2c54dfa