Ruby通过SOAP调用webservice发送短信

PHP昆虫的巢穴 2011-10-06

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

相关推荐

amberom / 0评论 2014-03-02