prism
2008-Jan-24 22:07 UTC
ActiveResource or Ajax/XHR + REXML or similar for calling ashx webservice
Hi!
I''m making an application to display logs that are returned from an
external resource as XML.
I''d like to use ActiveResource, but from what I understand it
can''t be
done out of the box,
because the WS I''m calling doesn''t conform to the URI
conventions.
To log on to the service, I''ll have to call something like
http://server.com/Admin/logon.ashx?username={#username}&password={#password}
which then returns either the user''s passkey + other info, or an
error.
The service itself is made with .NET.
Then, when that is done and the user-name is retrieved, I need to call
http://server.com/Admin/log1.ashx?ID={@user.passkey}&timeframe={#timeframe}&sorting={#sorting}
http://server.com/Admin/log2.ashx?ID={@user.passkey}&status={#status}
and have that return the log XML.
I don''t want to have to write, modify or even use an XML parser if I
can help it, and
would rather use ActiveResource.
Apart from the URL, the XML that is returned is not in english either,
which means
it doesn''t follow the pluralisation rules in Rails.
Is there some way I can get ARes to relate to the web service? Some
way to interface them...
Or what is the best way to send requests + get and parse returned XML
in a case like this?
Thanks for any insight!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
