Ticket #433 (closed task: invalid)

Opened 3 years ago

Last modified 2 years ago

Find out if we can use Qt's SOAP classes

Reported by: valerio Owned by:
Priority: major Milestone: kmess-3.0
Component: Protocol - core Version: 2.0-beta1
Keywords: soap Cc:

Description (last modified by valerio) (diff)

Qt has an LGPL'ed managed SOAP component:

 http://doc.trolltech.com/solutions/4/qtsoap/qtsoap-overview.html

Can we use it for 2.1 to simplify the SOAP stuff we already have?? After all, almost everything in WLM's SOAP is standard stuff.

 Here you can find some SOAP specs.

Change History

Changed 3 years ago by diederik

I think I can answer this one alreayd for you. I don't think this is feasable, nor will it save time.

Normal SOAP clients are designed to abstract the underlying XML message. In your programming language, you can just instantiate a class, make method calls with parameters (might even be large data structures). This becomes like this:

  • download WSDL in your IDE, it generates the C++ client class with all methods + structs.
  • call the method.
  • (the call transforms the passed data structures to XML structures)
  • (the returned XML structure is transformed to regular class structure)
  • you read the class structure.

In our case, we don't have a WSDL, nor a formal definition of the data structure. Our HttpSoapConnection class is designed for the following use-case:

  • snif some XML from the wire.
  • send that as "xml blob" directly to the server, with values inserted.
  • read the XML response.

If you want to use QtSoap, it likely becomes:

  • reverse engineer WSDL or class data structure from the siffed XML data.
  • generate the proper data structures.
  • make the caller class
  • ...hope it ends up with sending the exact XML blob you already sniffed. ;-)

Changed 2 years ago by valerio

  • status changed from new to closed
  • resolution set to invalid
  • description modified (diff)

Ok. Closing.

Note: See TracTickets for help on using tickets.