views:

15

answers:

0

Consider the following in Qt using QtSoap lib:

 QtSoapHttpTransport http;
 http.setHost("XXXX",3333);
 connect(&http, SIGNAL(responseReady()), this, SLOT(getResponse()));

now there is a method i want to call which is:

QtSoapMessage request;
request.setMethod("test");
request.addMethodArgument("xxx","zzzz",xxx);
request.addMethodArgument("xx","xx",xx);
http.submitRequest(Request, "/api/soap");

now i want to have something like this :

QString GetTest(){
while(http.isBusy);   // no such a thing as isbusy 
return http.getResponse().returnValue().toString();}

or any technique i can use to get the return value or wait for it and get it..

Thanks in advance...