Document/literal Soap Message..
Hi all,
I have been using without any problem the RPC/encoding Soap message with Qt..
Here, a code snippet to show you how I use it to send request to a web service:
Code:
//I first create my xml request as follows (is an example..)
doc.appendChild(root);
root.appendChild(tag);
QDomText t
= doc.
createTextNode("first_value");
tag.appendChild(t);
root.appendChild(tag1);
QDomText t1
= doc.
createTextNode(second_value
);
tag1.appendChild(t1);
// I then get the QString...
QString xmlRequest
= doc.
toString();
//I build the soap message as follows:
QtSoapMessage request;
request.setMethod("method_name", "https://service_url");
request.addMethodArgument("message_tag", "", xmlRequest );
//
QString requestMessage
= request.
toXmlString();
//and so on posting this to the web service URL..
The question is..is there an equivalent way of doing that for Document/Literal SOAP messages???
THX
Re: Document/literal Soap Message..
QtSoap module only supports one encoding.