Soa request is simple post or get http request...
i use my fast writteln http debugger to create a xml request..
http://www.qt-apps.org/content/show....?content=76432

inside you find a sample soa to get EuroExchangeRate on swiss mony.

After i pack the request on base64 encoded resource
write the method

on this way i update 300 Holiday houses on 7 minutes .... i send 100 group QThread request to other server and i process all response to my mysql database....

Normal soa lib not work on Thread evry single request each time...


Qt Code:
  1. void SoaRequest::Login()
  2. {
  3. qDebug() << "### soa Login ACTION ###################";
  4. QString Stream_0 ="PD94bWwgdm baseencoded xml Vyc2lv";
  5. QString Stream = fromBase64(Stream_0);
  6. Stream = Stream.replace("_PASS_",decodeBase64(setter.value("tijava/pass").toString()));
  7. Stream = Stream.replace("_USER_",decodeBase64(setter.value("tijava/user").toString()));
  8. ResetSession();
  9. Send(Stream,_URLSYSTEM_,1);
  10. }
  11.  
  12. void SoaRequest::Logout()
  13. {
  14. qDebug() << "### soa Logout ACTION ###################";
  15. QString Stream_0 ="PD94bWwgdm baseencoded xml Vyc2lv";
  16. QString Stream = fromBase64(Stream_0);
  17. Stream = Stream.replace("_SESSION_",WebSessionCurrent);
  18. qDebug() << "### soa logout -> " << WebSessionCurrent;
  19. Send(Stream,_URLSYSTEM_,0);
  20. ResetSession();
  21. }
  22. void SoaRequest::Send( QString streams , QUrl url , const int memid )
  23. {
  24. header.setRequest("POST",url.path(),1,1);
  25. header.setValue("Accept-Charset","ISO-8859-1,utf-8;q=0.7,*;q=0.7");
  26. header.setValue("Accept-Encoding","gzip,deflate,qcompress");
  27. header.setValue("Connection","keep-alive");
  28. header.setValue("Content-Type","text/xml; charset=utf-8");
  29. /* other sets
  30.   read response and finish ...
  31.   */
  32. }
To copy to clipboard, switch view to plain text mode