`
wuhuizhong
  • 浏览: 668491 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

Ruby通过SOAP调用webservice发送短信

    博客分类:
  • ROR
 
阅读更多

 

url = 'http://lxt.esms360.com/ws/LinkWS.asmx?WSDL'
soap_client = SOAP::WSDLDriverFactory.new(url).create_rpc_driver
# send 是 短信网管提供的接口
soap_client.Send({:CorpID => "user_name", : Pwd => "passwod", :Mobile => phone, :Content => msg, :Cell => nil, :SendTime => nil})
 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics