Having read some material and made some small progress I wanted to share
some ideas and see if they make sense.
Basically when users enter the site they will be in the PHP end of the
application. I would need Rails to receive the link the are requesting.
This is step one. Based on that scenario, then I think I need to have Rails
as a web services client with the PHP sending the request.
Secondly, I would send back the data requested in a partial but render the
header and footers from PHP along with the partial in Rails. In this case I
think PHP needs to be a client ?
So far all I''ve got is
layout "application", :except => [:restserver]
def restserver
url = "http://domain.ipaddress/index/"
@result = Net::HTTP.get(URI(url))
end
Then displaying the page.
<%= @result %>
Well it''s a little step. Any ideas or help would be greatly
appreciated.
Stuart
On 11/8/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> On 11/8/06, Dark Ambient
<sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > On 11/7/06, Matthew Isleb
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > wrote:
> > >
> > >
> > > Stuart Fellowes wrote:
> > >
> > > > Matthew that sounds like a good approach. Any performance
or
> > > security
> > > > issues ? I found the XML-RPC page, so I''ll be
reading up.
> > > > And I''m assuming (since this is the first time
I''m hearing) web
> > > services
> > > > scaffoling is part of Rails 1.1.6 ?
> > >
> > > We don''t have a high traffic website, so performance
isn''t an issue.
> > > If
> > > it were, I''d probably implement some caching on the PHP
side.
> > >
> > > I can''t think of any possible security issues. There is
nothing
> > > available through XML-RPC that isn''t public anyway. You
write special
> > > web services "models" (ActionWebService::Struct) which
contain just
> > > enough information for the XML-RPC client.
> >
> >
> > Just to confirm then, the XML-RPC client would be the PHP (in my case)
> > application ?
> >
>
>
> Another question - instead of using XML-RPC , can I use REST ?
>
> Stuart
>
> Stuart
> >
> > So nothing in your app is
> > > directly exposed to the web.
> > >
> > > Web services are standard part of 1.1.6, but I hear they are
moving it
> > > out to its own plugin. Maybe in 1.2?
> > >
> > > Scaffolding just means that you can put a line like this at the
top of
> > >
> > > the controller:
> > >
> > > web_service_scaffold :invoke
> > >
> > > That gives you are URL like:
http://yoursite.com/remote/posts/invoke/api
> > >
> > > where you can manually enter SOAP/XML-RPC requests to test the
results
> > >
> > > before you try to get the PHP to work with it.
> > >
> > > -matthew
> > >
> > > --
> > > Posted via http://www.ruby-forum.com/ .
> > >
> > > > > >
> > >
> >
> >
> > --
> > http://en.wikipedia.org/wiki/Dark_ambient
> >
>
>
>
> --
> http://en.wikipedia.org/wiki/Dark_ambient
>
--
http://en.wikipedia.org/wiki/Dark_ambient
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---