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

相关推荐