When using CRM Online - your plugins run inside a sandboxed environment to prevent access to anything that might effect others in the shared environment (file system, registry, etc...) Plug-in Isolation, Trusts, and Statistics
Nothing with a call to a REST based service but a couple other examples that might point you in the right direction: