当前位置: 代码迷 >> Web前端 >> Ruby透过SOAP调用webservice发送短信
  详细解决方案

Ruby透过SOAP调用webservice发送短信

热度:961   发布时间:2012-09-01 09:33:03.0
Ruby通过SOAP调用webservice发送短信

?

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})
?

?

?

  相关解决方案