• λ我爱Aspx >> Asp.Net >> 不用.net和其组件用asp访问webservice
  • 不用.net和其组件用asp访问webservice

  • :未知  Դ:internet  :2007-5-20 16:44:43  ؼ:.net,web,asp,webservice
  • SoapRequest.Open有五个参数,但是只有前两个是必需的,这意味着其他三个是可以随意选择的

    参数解释:

    oServerXMLHTTPRequest.open bstrMethod, bstrUrl, bAsync, bstrUser, bstrPassword

    Parameters

    bstrMethod

    HTTP method used to open the connection, such as PUT or PROPFIND.

    bstrUrl

    Requested URL. This must be an absolute URL, such as "http://Myserver/Mypath/Myfile.asp".

    bAsync (optional)

    Boolean. Indicator as to whether the call is asynchronous. The default is False (the call does not

    return immediately).

    bstrUser (optional)

    Name of the user for authentication.

    bstrPassword (optional)

    Password for authentication. This parameter is ignored if the user parameter is Null or missing

    设置完毕我们用SoapRequest.Send()向服务器发送请求,服务器返回的结果作为文本被存储在SoapRequest.responseXML中。我们要做的就是构析这段文本。

    下面给出i_soapcall.asp的全部代码

    <script language="vbscript" runat="server">

    Ҷƪл˵?
  • һƪ使用ICallbackEventHandler接口实现页面无刷新
    һƪPageTemplate(页模板)