search for: xmlsimpl

Displaying 20 results from an estimated 22 matches for "xmlsimpl".

Did you mean: xmlsimple
2006 Feb 07
3
Problems with flickr gem: already initialized constant
...flickr plugin. trying to follow the video as a starter, and keep hitting the following problem when I require ''flickr'' in the environment.rb file testbed:/srv/www/htdocs/carstuff # ruby script/server => Booting WEBrick... /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274: warning: already initialized constant KNOWN_OPTIONS /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:279: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:280: warning: already initialized con...
2006 Jul 11
1
error when ''Booting WEBrick''
...build the MVC files for ''abc'', included abc.rb in /lib, appended environment.rb with ''require abc'' and the service worked fine. And then I did the same for ''xyz'' and ran the server but it failed. both abc.rb and xyz.rb contains ''require xmlsimple'' and this is what I get when I run, / ruby script\sever- ------------------------- => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.9/lib/xmlsim...
2006 Jan 19
5
RoR still not working on SuSE 9.0 - incomplete headers received
...Allow from all Order allow,deny </Directory> </VirtualHost> Please help me!! :) I would be so happy, if I could use RoR on this server too. Webrick is working, when I try to run dispatch.fcgi I get: /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274: warning: already initialized constant KNOWN_OPTIONS /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:279: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:280: warning: already initialized constant DEF_ROOT_...
2006 May 17
0
Problem with ''require xmlsimple'' in vendor code
Hi there I''m trying to "require ''xmlsimple''" in some code that lives in vendor/ I''ve installed the xml-simple gem, and can confirm this at the command line with ''gem list --local'' which shows I have v.1.0.8 of the gem. However, when I start up lighttpd I get this: /usr/lib/ruby/site_ruby/1.8/rub...
2010 Jun 13
1
Using XmlSimple to parse XML strings
I am using XmlSimple to parse an XML string received from a remote host. I am getting the error message, "File does not exist: .". I am fairly well convinced that the problem is that XmlSimple is not recognizing the received XML string as being valid XML and is therefore looking for a file by that name (wh...
2006 Jul 10
3
WEBrick start problem
Following is the error I get when I run ''\root\ ruby script\server'' The server does not starts. Any help !?! ------------------------------ => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:281: warning: already initialized constant DEF...
2006 Jun 26
0
error while booting WEBrick server
getting the following when trying to run the WEBrick server: c:\root\ ruby script\server error msg: ---------------------- => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:281: warning: already initialized constant...
2006 Mar 29
4
xmlsimple not found
...it was time to submit the form, I got an error with the message "uninitialized constant Flickr". I did some poking around at the gem repository, and ran ''ruby test_flickr.rb'' to test, and got the message: ./flickr.rb:49:in `require'': no such file to load -- xmlsimple (LoadError). This is of course the place in flickr.rb where "require ''xmlsimple''" is called. Ran a similar test in a test.rb file that simply says "require ''xmlsimple''", and it chokes in a similar fashion. The system says I have xml-simp...
2006 Feb 12
3
Flickr demo screencast
...er webrick'' to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach (requires absolute paths in config/lighttpd.conf) => Ctrl-C to shutdown server (see config/lighttpd.conf for options) /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274: warning: already initialized constant KNOWN_OPTIONS /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:279: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:280: warning: already initialized con...
2006 Feb 04
0
XmlSimple vs XML::Simplel?
...he RoR app. (consideration driven by maintenance considerations: two vs one). I already know that XML::Simple is not going to give me all the capabilities I need in the long run (the file structures / contents vary), but it got me started. I''m wondering how close a port Ruby''s XmlSimple is to Perl''s XML::Simple (i.e., how much work is this going to turn out to be?) I''m also wondering how Ruby''s support for processing of complex XML compares to Perl''s. My next step in processing these files is likely to require I jump into the deep end. I...
2006 Jul 10
7
problem with starting WEBrick
Following is the error I get when I run ''\root\ ruby script\server'' The server does not starts. Any help !?! ------------------------------ => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:281: warning: already initialized constant DEF...
2005 Dec 21
8
Incomplete headers
...econds too. I''ve also downgraded vom fcgi 0.8.6 to 0.8.5, because I read, that there is a bug in the current version. When running the dispatcher manually, I get this: chicago110:/srv/www/htdocs/web4/html/rails/public # ruby dispatch.fcgi /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274: warning: already initialized constant KNOWN_OPTIONS /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:279: warning: already initialized constant DEF_KEY_ATTRIBUTES /usr/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:280: warning: already initialized constant DEF_ROOT_...
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and I''m wondering if anyone knows of such a class for Ruby. Nothing fancy, just perhaps a simple way of converting arbitrary XML to a Ruby object. Maybe this has been implemented somewhere already? Thanks, Raymond
2006 Feb 13
1
hackish error handling
...p. But I''ve got an extra day now and would really love it if someone could point me in the right direction to fixing these mistakes. Everything i''m trying only seems to make the code uglier and uglier. def label require ''fileutils'' require ''xmlsimple'' @submitted = params[:FedExOrder] go = FedExOrder.new(params[:FedExOrder]) go.save @fedex = Shipping::FedEx.new( :name => @submitted[''name''], :company => @submitted[''company''], :phone => @submitted[''p...
2008 Jan 08
1
howto rebuild a object from a received xml hash structure ?
...y_name, :membership_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...
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 May 10
0
using Rails 1.1 param parsers
...1.1 to process POST''ed xml form data (at the moment I manually parse request.raw_post using REXML). As per Scott Raymond: *"Pluggable parameter parsers* make writable REST web services a cinch. By default, posts submitted with the application/xml content type is handled by creating a XmlSimple hash with the same name as the root element of the submitted XML" so it sounds like I''m just duplicating parsing that Rails is already doing. My question is: how do I access the parsed data ? What''s the variable name ? I can''t find anything in the ActionController...
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"], :servic...
2006 May 26
1
GET from remote sites and parsing RESPONSE xml
For example, this url returns some xml: http://www.mysite.com/xml What is the correct way to perform a GET on this url, and then parse the RESPONSE xml? Could someone shine some light on a poor soul? :) -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
3
Problem in posting xml content.
When I post the XML data as the message content to my rails website, I can see the exception info in the log file. The error message is "can''t typecast" the element name in my xml document. The first line in backtrace is: "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb:111:in`typecast_xml_value''" Please give