请教各位大牛们,
req.setUrl(QUrl("http://10.158.173.122:8080/axis2/services/YzxfDelegator?wsdl"));
req.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded");
QNetworkReply *rtn = manager->post(req,QByteArray(
QString("<?xml version="1.0" encoding="utf-8"?>" "<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">" " <soap:Body>" " <HelloWorld xmlns="http://tempuri.org/">sdafwer</HelloWorld>"
" </soap:Body>" "</soap:Envelope>" ));
能用Qnetwork直接post发送
XML字符串到这个
http://10.158.173.122:8080/axis2/services/YzxfDelegator?wsdl 吗?还是说必须要有什么soap啊?小弟真得不太懂,给摸一个网址比如百度和给这么一个webservice发有什么不同?不能都用上面的方法发送吗?