Hi All,
Please help or suggest on this issue.
I convert QDomDocument to QString with following code.
QString xmlRequest = doc.toString();
The got the result as
<TT>100</TT>
<TR>001</TR>
<TE>ACK</TE>
Once convert from QString to QSaopMessage with following code
QtSoapMessage request;
request.setMethod("Post", "http://SomeURL.com/SUB/SUB1");
request.addMethodArgument("SUB_Request", "", xmlRequest);
The result will be like this
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<Post xmlns="http://SomeURL.com/SUB/SUB1">
<SUB_Request>
<TT>100</TT> // <- need "<" instead of "<"
<TR>001</TR>
<TE>RECEIPT</TE>
</Post>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How can I get "<" instead of "<" in body message.
Please help.
Bookmarks