您的位置:程序门 -> java -> web services / xml



关于httpclient访问自己的web service


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


关于httpclient访问自己的web service[无满意答案结贴]
发表于:2007-11-20 20:01:35 楼主
我用httpclient访问了我自己建立的webservice,返回如下结果:
<?xml   version="1.0"   encoding="utf-8"?> <soapenv:envelope   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"   xmlns:xsd="http://www.w3.org/2001/xmlschema"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
  <soapenv:body>
    <soapenv:fault>
      <faultcode   xmlns:ns1="http://xml.apache.org/axis/"> ns1:client.nosoapaction </faultcode>
      <faultstring> no   soapaction   header! </faultstring>
      <detail>
        <ns2:hostname   xmlns:ns2="http://xml.apache.org/axis/"> ********* </ns2:hostname>
      </detail>
    </soapenv:fault>
  </soapenv:body>
</soapenv:envelope>


如果我用浏览器访问就能看到正常的wsdl,请问这个是怎么回事?


快速检索

最新资讯
热门点击