请问我需要用android调用Webservice,但是那个Webservice不是我本人做的,那我需要怎么样才能知道这个Webservice里面的,命名空间(NAMESPACE),地址(url),方法地址(SOAP_ACTION)呢?  求解

解决方案 »

  1.   

    POST /etingguidservice/service1.asmx HTTP/1.1
    Host: 10.38.129.118
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/getAdvListByTermID"<?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>
        <getAdvListByTermID xmlns="http://tempuri.org/">
          <tid>string</tid>
        </getAdvListByTermID>
      </soap:Body>
    </soap:Envelope>
    namespace=<getAdvListByTermID xmlns="http://tempuri.org/">
    url=etingguidservice/service1.asmx
    SOAPAction: "http://tempuri.org/getAdvListByTermID"
      

  2.   

    http://webservice.webxml.com.cn/WebServices/ChinaStockWebService.asmx?wsdl为例
    服务地址:上面url中?之前的都是,例子中为:http://webservice.webxml.com.cn/WebServices/ChinaStockWebService.asmxNAMESPACE:打开上面的wsdl你会找到  targetNamespace="http://WebXml.com.cn/" ,此时NAMESPACE="http://WebXml.com.cn/" SOAP_ACTION = NAMESPACE + METHOD_NAME;METHOD_NAME应该能找到吧
    方法参数是 “name =  “后面的