Answers.Body: <p>Craft 2.x includes <a href="https://guzzle3.readthedocs.io/index.html" rel="nofollow">Guzzle 3</a> natively, so you could write a <a href="http://pluginfactory.io" rel="nofollow">Craft plugin</a> that uses it to consume your web service.</p>
  
  <p>There are plenty of examples in the <a href="https://guzzle3.readthedocs.io/docs.html" rel="nofollow">Guzzle 3 docs</a> on how to do that (as well as in Craft itself).</p>
  
  <p>You could also use something like this: <a href="https://straightupcraft.com/craft-plugins/guzzle" rel="nofollow">https://straightupcraft.com/craft-plugins/guzzle</a></p>
  
  <p>Which is a wrapper for Craft's Guzzle 3 you can use from a template.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-30T18:07:50.640Z
Answers.Text: This is super cool, didn't know that someone had exposed Guzzle to the template layer! Brad's suggestion to use a plugin (with controllers + services) is really solid—it's a great architecture. Most any Twig plugin that you might use to make an HTTP request will follow that pattern behind-the-scenes.
Answers.UserDisplayName: August Miller
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-30T18:06:49.720Z
Answers.LastActivityDate: 2016-08-30T18:06:49.720Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a lot of data that sits outside of Craft (the data is in MS SQL Server) and I plan on writing a simple .NET Service which will return JSON. I need to display this data but not sure on how to connect to a service using Craft CMS.</p>
  
  <p>Are there any clients (plugins) which will connect to a service get the JSON data and display it?</p>
  
Tags: <plugins><services>
Title: Need a way to connect to a webservice
ThreadText: # Need a way to connect to a webservice
  
  (Asked by: username_0 on 2016-08-30)
  
  I have a lot of data that sits outside of Craft (the data is in MS SQL Server) and I plan on writing a simple .NET Service which will return JSON. I need to display this data but not sure on how to connect to a service using Craft CMS.
  
  Are there any clients (plugins) which will connect to a service get the JSON data and display it?
  
  **Tags:** plugins, services
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-08-30. Score: 2
  
  Craft 2.x includes [Guzzle 3](https://guzzle3.readthedocs.io/index.html) natively, so you could write a [Craft plugin](http://pluginfactory.io) that uses it to consume your web service.
  
  There are plenty of examples in the [Guzzle 3 docs](https://guzzle3.readthedocs.io/docs.html) on how to do that (as well as in Craft itself).
  
  You could also use something like this: <https://straightupcraft.com/craft-plugins/guzzle>
  
  Which is a wrapper for Craft's Guzzle 3 you can use from a template.
  
  > **Comments:**
  > **username_2**: This is super cool, didn't know that someone had exposed Guzzle to the template layer! username_1's suggestion to use a plugin (with controllers + services) is really solid—it's a great architecture. Most any Twig plugin that you might use to make an HTTP request will follow that pattern behind-the-scenes.  
  
  ---
  
  