SOAP
The Qt SOAP project provides basic web service support with version 1.1 of the SOAP protocol.
The SOAP (Simple Object Access Protocol) component recognizes the XML standard for describing how to exchange messages. Its primary usage is to invoke web services and get responses from Qt-based applications.
These classes make it easy to construct, send, receive and process SOAP messages on the client side.
Required Libraries:
QtCore, QtXml, QtNetwork
Please refer to the Qt Editions Comparison Chart for which Qt products include these libraries.
Documentation:
General:Classes:- QtSoapMessage
- QtSoapQName
- QtSoapType
- QtSoapArray
- QtSoapArrayIterator
- QtSoapStruct
- QtSoapStructIterator
- QtSoapSimpleType
- QtSoapHttpTransport
Tested on:
- Qt 4.3, 4.4 / Windows XP, Vista / MSVC.NET 2005
- Qt 4.3, 4.4 / Linux / gcc
- Qt 4.3, 4.4 / MacOS X / gcc
Unsupported platforms:
Only the tested platforms are supported, however the classes should be platform independent and are likely to work on the platforms supported by Qt.
Download Commercial Edition:
Only available for Qt Solutions license holders with a valid Support and Maintenance agreement (authentication required).Changes:
- 2.5: Allow the transport to be set to https mode.
- 2.5: Added: support operator[] for structs.
- 2.5: Fixes: copying structs and arrays.
- 2.5: Fixes: arrayiterator bug, and wrong indices in array example code in doc.
- 2.5: Fixes: node parsing bug.
- 2.5: Fixes: Error handling. responseReady signal would sometimes not be emitted in error situations. Now, always emitted, and the error is recorded in the response.
- 2.4: Fix: Possible memory leak when copying QtSoapStructs and -Arrays.
- 2.4: Fix: Allow header items to be added before body items, so the output will have the correct order (header before body), as per the standard.
- 2.4: Fix: Use UTF8 encoding, as the standard recommends, instead of Latin1. Indicate the charset in the header.
- 2.3: Handle fault code of type (in addition to type String)
- 2.3: Allow Array types to not have the "type" attribute set, as per the Soap 1.1 spec
- 2.3: Fix memory leak for QtSoapArray
- 2.3: Handle (but don't preserve) comments in structs/arrays
- 2.2: Bugfix, and fix for Qt 4.2.
- 2.1: Fix memory leak, and fix for Qt 4.1.
- 2.0: Version 1.3 ported to Qt 4.
- 1.3: Documentation fixes
- 1.2: QtSoapArray::count() returns correct count
- 1.1: Have setContent() always skip first entry if it's not an element