Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
actjak
Posts: 33
Registered: ‎05-02-2012
My Device: playbook
Accepted Solution

Qtsoap MethodArgument

Hello,

 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?

 

 

 

 

Developer
mzex
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C

Re: Qtsoap MethodArgument

[ Edited ]

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.

Contributor
actjak
Posts: 33
Registered: ‎05-02-2012
My Device: playbook

Re: Qtsoap MethodArgument

I found the solution :

QtSoapMessage request;
	request.setMethod("GetSupportRequests", "http://xxxxxxxxxx");
QtSoapStruct *myStruct=new QtSoapStruct(QtSoapQName("asGuids"));
	myStruct->insert( new QtSoapSimpleType(QtSoapQName("string"),"46f2c54dfaac404d93"));
  request.addMethodArgument(myStruct);