psendandgetmessage test_ws
long rVal
string str_endpoint,sms_id,sms_pass
string ls_ruent,ls_rund
conn = create SoapConnection
rVal = Conn.CreateInstance(test_ws, "psendandgetmessage")
str_endpoint = "3/%/$/" + ofl_sjh + "/%/$/2/%/$/" + ofl_text + "/r/n"
ls_ruent = test_ws.sendMessages(sms_id,sms_pass,str_endpoint)
DESTROY conn
rval = pos(ls_ruent,'/r/n')
ls_ruent = mid(ls_ruent,rval - 1,1)
choose case ls_ruent
case '0'
ls_rund = '0'
case '1'
ls_rund = '手机号错误'
case '2'
ls_rund = '有敏感字符'
case '3'
ls_rund = '短信过长'
case '4'
ls_rund = '主叫号或密码错误'
case '5'
ls_rund = '短信内有不规字符'
end choose
return ls_rund
3 个解决方案
#1
估计是因为缺少dll引起的,编译后在当前计算机上运行也出这个错误吗?
#2
去pb的shared目录下,找到pbsoapclient90.pbd,把它列入库列表,并且发布时带上它
#3
Conn.CreateInstance(test_ws, "psendandgetmessage") ,在增加一个参数,把webservice 的地址加上
#1
估计是因为缺少dll引起的,编译后在当前计算机上运行也出这个错误吗?
#2
去pb的shared目录下,找到pbsoapclient90.pbd,把它列入库列表,并且发布时带上它
#3
Conn.CreateInstance(test_ws, "psendandgetmessage") ,在增加一个参数,把webservice 的地址加上