用pb9开发短信用Webservice,在开发中运行正常,编译后运行出错。那位高手看看
我是pb9开发的一个发短信功能,在开发中能正常发短信,可编译后运行发短信是就出错"unresolvalbe external soapconnection when linking reference"程序是这样的,我是调用Webservice来发短信的.开发运行中很正常:程序如下:SoapConnection conn 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