我有这个网络服务:
https ://pgws.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl
Web 服务具有bpPayRequest
接受 10 个参数作为 Web 服务提供者的方法,其定义如下:
bpPayRequest(long terminalID, string username, string password, long orderID, long amount, string localDate, string localTime, string additionalData, string callbackURL, long payerID)
我正在使用 ASP Classic,这是我的代码:
<%
RedirectURL = "http://" & Request.ServerVariables("SERVER_NAME") & "/Frontend/epayverify_l2.asp"
set oSOAPay = Server.CreateObject("MSSOAP.SoapClient30")
oSOAPay.ClientProperty("ServerHTTPRequest") = True
on error resume next
oSOAPay.mssoapinit(webServiceAddr)
oSOAPay.ConnectorProperty("UseSSL") = False
if err.number <> 0 Then
if DebugMode Then
rwbr err.description
response.end
Else
epayAction = false
this_error = "banknotresponse"
Exit for
End if
End if
on error goto 0
result = oSOAPay.bpPayRequest(_
CLng(str_terminal), _
CStr(M_ID), _
"password", _
CLng(int_orderID), _
CLng(Amount), _
"20130610", _
"102030", _
"", _
CStr(RedirectURL), _
0)
%>
这是result = oSOAPay.bpPayRequest
具有值的参数:
oSOAPay.bpPayRequest( 709499, "11111", "password", 2, 1000, "20130610", "102030", "", "http://mitranik.com/Frontend/epayverify_l2.asp", 0 )
问题是当我运行这段代码时,我得到了这个错误。
Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect. - Client:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
我在这里错过了什么吗?