Creating an ASP.NET Web Form Client
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingwebformclient.asp

解决方案 »

  1.   

    先添加web引用
    using 命名空间
    像使用普通类一样,掉用就行了
      

  2.   

    先添加web引用在地址拦中输入地址就行了
      

  3.   

    <%
    Dim url,xmlhttp,sendXMLurl = "http://terraserver-usa.com/landservice.asmx?wsdl"sendXML="<?xml version='1.0' encoding='utf-8'?>"
    sendXML=sendXML+"<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/'>"
    sendXML=sendXML+"<soap:Body>"
    sendXML=sendXML + "<GetLandTypes xmlns='http://terraserver-usa.com/LandServer/' />"sendXML=sendXML+"</soap:Body>"
    sendXML=sendXML+"</soap:Envelope>"xmlhttp=createobject("microsoft.xmlhttp")
    xmlhttp.open("Post",url,false)
    xmlhttp.SetRequestHeader("Content-Type","text/xml; charset=utf-8")
    xmlhttp.SetRequestHeader("SOAPAction","http://terraserver-usa.com/LandServer/GetLandTypes")
    xmlhttp.send(sendXML)'response.write(xmlhttp.status+"<br>")
    'response.write(xmlhttp.responseText)
    %>在问一下,在asp.net中这样行不行,目前是xmlhttp.send(sendXML)这句出错。