Here are my xml response data:
<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/1999/XMLSchema" >
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<GetFieldOfViewResponse xmlns="http://www.remotereality.com/HubbleSOAP/binding/viewcontrol">
<HRESULT xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >0</HRESULT>
<d1 xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >6.2831853071795862</d1>
<d2 xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >0</d2>
</GetFieldOfViewResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<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/1999/XMLSchema" >
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<GetFieldOfViewResponse xmlns="http://www.remotereality.com/HubbleSOAP/binding/viewcontrol">
<HRESULT xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >0</HRESULT>
<d1 xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >6.2831853071795862</d1>
<d2 xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" >0</d2>
</GetFieldOfViewResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
To copy to clipboard, switch view to plain text mode
I got the method name, but with no data at all.
Here are my codes:
void MainWindow::getResponse()
{
const QtSoapMessage &message = http.getResponse();
if (message.isFault()) {
return;
}
const QtSoapType &response= message.returnValue();
qDebug("Data are: %s)",
response["HRESULT"].value().toString().toLatin1().constData(),
response["d1"].value().toString().toLatin1().constData(),
response["d2"].value().toString().toLatin1().constData());
}
void MainWindow::getResponse()
{
const QtSoapMessage &message = http.getResponse();
if (message.isFault()) {
return;
}
const QtSoapType &response= message.returnValue();
qDebug("Data are: %s)",
response["HRESULT"].value().toString().toLatin1().constData(),
response["d1"].value().toString().toLatin1().constData(),
response["d2"].value().toString().toLatin1().constData());
}
To copy to clipboard, switch view to plain text mode
Bookmarks