• 3958阅读
  • 5回复

这个是我在网上看见的代码,希望哪位高手,能帮忙解决下。谢谢 [复制链接]

上一主题 下一主题
离线yijavakevin
 

只看楼主 正序阅读 楼主  发表于: 2009-03-18
webServices
[ 此帖被yijavakevin在2009-03-18 09:56重新编辑 ]
离线shiroki

只看该作者 5楼 发表于: 2009-07-08
谓语是解决,宾语是代码。。。代码有什么可解决的呢?
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线qindq

只看该作者 4楼 发表于: 2009-07-08
有什么不对么?
离线5706046

只看该作者 3楼 发表于: 2009-07-08
真是太可惜了,没人讨论啊!
离线yijavakevin

只看该作者 2楼 发表于: 2009-03-18
  QUrl url(urlLineEdit->text());
    QHttpRequestHeader header("POST", url.path() );
    header.setValue("Host", url.host() );
    header.setContentType("text/xml; charset=utf-8");
    header.setValue("SOAPAction", ""http://tempuri.org/HelloWorld"");

    QString content("<?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>"
                    );
    //header.setValue("Content-Length", tr("%1").arg(11) );
    http->setHost( url.host() );

    httpRequestAborted = false;
     httpGetId = http->request( header, content.toUtf8 (), buffer);
这个是我在网上看见的代码,希望哪位高手,能帮忙解决下。谢谢
离线yijavakevin

只看该作者 1楼 发表于: 2009-03-18
高手,高手出来啦!
快速回复
限100 字节
 
上一个 下一个