search for: xml_in

Displaying 5 results from an estimated 5 matches for "xml_in".

Did you mean: ml_in
2008 Jan 08
1
howto rebuild a object from a received xml hash structure ?
...embership_type, :membership_at], :skip_types => true)} end end my client web app get it : @referee = Referee.new(params[:referee]) url = "http://#{WWW_HOST}/user/membership.xml? email=#{params[:referee][:email]}" result = Net::HTTP.get(URI(url)) data = XmlSimple.xml_in(result) ------------ GOT IT BACK data => {"last-name"=>[{"nil"=>"true"}], "display-name"=>["chane850"], "first-name"=>[{"nil"=>"true"}], "membership- at"=>["2007-03-28T21:25:31Z&quo...
2006 Feb 13
1
hackish error handling
...; @submitted[''address''], :address2 => @submitted[''address2''], :city => @submitted[''city''], :state => @submitted[''state''], :zip => @submitted[''zip'']) verification = XmlSimple::xml_in(@fedex.verify_address) if verification[''Match''] if verification[''Match''][0][''Score''].to_s == ''100'' @fedex.address = verification[''Match''][0][''Line1''].to_s...
2006 May 25
2
Help: How to write tests for a sms service interface
I''m working on a website that integrates sms services. When someone sends an sms to my service number, the sms provider posts an xml doc to an url specified by me. I have implemented the processing method like this: <code> def process_notification xml = XmlSimple.xml_in(@request.raw_post, ''ForceArray'' => false) @params.merge! xml sms_request = SmsboxRequest.new(:phonenumber => @params["sender"], :operator => @params["operator"], :service =&...
2006 May 30
3
RubyODBC bus error under Rails
Hi all, I''ve got a very obscure problem. We''re trying to get Rails to talk to Filemaker. So we''ve setup an ODBC dsn and via RubyODBC we''re talking to it. Excellent. Try it under rails and rails won''t even startup, getting bus errors anytime we require ''odbc''. Environment OSX Tiger 10.4.6 Rails 1.1.2 Ruby 1.8.4 RubyODBC 0.998 via
2006 Apr 28
8
Rails magic for MySQL -> XML file -> MySQL and back again ??
Greetings! My little app collects data from the user, persists it in about a dozen tables during the session, writes out / saves an XML file that''s downloaded to the user''s PC when they''re done, then clears the db of all data entered, and deletes the XML file from the server. Now I need to allow the user to upload the same XML file they created earlier and put it back