Open shawr opened 10 years ago
example seems to work but is noisy
EXECUTING SEND MESSAGE... /home/m4u-rob/git/messagemedia-ruby/lib/messagemedia/message.rb:52: warning: instance variable @sequence_number not initialized D, [2014-05-19T13:53:29.179726 #31591] DEBUG -- : HTTPI GET request to soap.m4u.com.au (net_http) /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/request.rb:59: warning: instance variable @ssl not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/request.rb:108: warning: instance variable @on_body not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/response.rb:50: warning: instance variable @body not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/wasabi-3.3.0/lib/wasabi/parser.rb:308: warning: instance variable @sections not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/wasabi-3.3.0/lib/wasabi/parser.rb:89:in `parse_url': warning: URI.unescape is obsolete /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/wasabi-3.3.0/lib/wasabi/parser.rb:90:in `parse_url': warning: URI.escape is obsolete /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/savon-2.5.1/lib/savon/builder.rb:147: warning: instance variable @namespace_identifier not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/akami-1.2.2/lib/akami/wsse.rb:58: warning: instance variable @signature not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/akami-1.2.2/lib/akami/wsse.rb:75: warning: instance variable @wsu_timestamp not initialized I, [2014-05-19T13:53:29.371523 #31591] INFO -- : SOAP request: https://soap.m4u.com.au I, [2014-05-19T13:53:29.371655 #31591] INFO -- : SOAPAction: "http://xml.m4u.com.au/2009/sendMessages", Content-Type: text/xml;charset=UTF-8, Content-Length: 832 D, [2014-05-19T13:53:29.371730 #31591] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:api="http://xml.m4u.com.au/2009" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><api:sendMessages><api:authentication><api:userId>MessageUPtyLt587</api:userId><api:password></api:password></api:authentication><api:requestBody><api:messages sendMode="normal"><api:message format="SMS" sequenceNumber=""><api:deliveryReport>true</api:deliveryReport><api:validityPeriod>1</api:validityPeriod><api:content>Test Message</api:content><api:recipients><api:recipient uid="1234567890">+61416755386</api:recipient></api:recipients><api:origin>+61417533586</api:origin></api:message></api:messages></api:requestBody></api:sendMessages></env:Body></env:Envelope> D, [2014-05-19T13:53:29.372079 #31591] DEBUG -- : HTTPI POST request to soap.m4u.com.au (net_http) /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/request.rb:59: warning: instance variable @ssl not initialized /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/request.rb:108: warning: instance variable @on_body not initialized I, [2014-05-19T13:53:29.714598 #31591] INFO -- : SOAP response (status 200) /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/httpi-2.1.0/lib/httpi/response.rb:50: warning: instance variable @body not initialized D, [2014-05-19T13:53:29.714723 #31591] DEBUG -- : <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><sendMessagesResponse xmlns="http://xml.m4u.com.au/2009"> <result sent="1" scheduled="0" failed="0"> <accountDetails type="daily" creditLimit="5000" creditRemaining="4999"/> </result> </sendMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> /home/m4u-rob/.rvm/gems/ruby-1.9.3-p547/gems/savon-2.5.1/lib/savon/response.rb:98: warning: instance variable @nori not initialized Messages sent 1 Messages failed 0 Messages scheduled 0
example seems to work but is noisy