POWERSHELL AND THE WEB PowerShell Summit 2014 Trond Hindenes, Crayon AS

Slides:



Advertisements
Similar presentations
What Is Microsoft Marketplace DataMarket What Is Microsoft Marketplace DataMarket? Michael Stiefel
Advertisements

Overview Environment for Internet database connectivity
12 October 2011 Andrew Brown IMu Technology EMu Global Users Group 12 October 2011 IMu Technology.
Introduction to Web Services
Server Access The REST of the Story David Cleary
WHO AM I? REST? Dissertation by Roy Fielding 2000 Architectural Styles and the Design of Network-based Software Architectures ReST = Representational.
Michael S. Chan xLM Solutions, LLC
Session 6 Module 2 Calling a Web Service from an ASP.NET Web Page.
GETTING STARTED WITH WINDOWS COMMUNICATION FOUNDATION 4.5 Ed Jones & Grey Guindon.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Solution Architect,Microsoft.
Software Testing with Visual Studio 2013 & Team Foundation Server 2013 Benjamin Day.
Change the Rules Distributed data apps with.NET Zlatko Knezevic Developer Evangelist Microsoft
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Web Services Ellen Pearlman Eileen Mullin Programming the Web Using XML.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
#spsevents #spsphx SPS EVENTS PHX Know REST for the Query AN INTRODUCTION TO REST FOR SHAREPOINT 2013 ERIC J OSZAKIEWSKI, MCTS, MS, MCPS.
The DataFlex Web Framework Changing the Game Stephen W. Meeley Development Team Data Access Worldwide
ADVANTAGE WEBAPI PETER FUNK SOFTWARE ENGINEER, ADVANTAGE R&D MAY 20, 2011.
LHCbPR V2 Sasha Mazurov, Amine Ben Hammou, Ben Couturier 5th LHCb Computing Workshop
Hennie Laubscher K2 Brian Farnhill Independent Consultant.
Service Oriented Architecture Bryan Ollendyke.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control Maarten
Lightning Talk Fred Rodriguez Nguyen Do CPSC 473 May 6, 2012.
Building Data Driven Applications Using WinRT and XAML Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant Level: Intermediate.
ASP. Net is a rich web framework that leverages well known patterns and JavaScript frameworks to build great web experiences quickly.
Silverlight 2 has rich networking support SOAP/XML Web services via WCF proxies Untyped HTTP services (REST, RSS, ATOM) via HttpWebRequest and WebClient.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
What’s New? – BCS 2013 Brett Lonsdale.  Co-founder of Lightning Tools  One of the hosts on the SharePoint Pod Show  Co-organizer of SharePoint Saturday.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Copyright 2007 Adobe Systems Incorporated. 1 ColdFusion 8 : Advanced AJAX Development Rakshith N Computer Scientist Jan 02, 2008.
CSCI 6962: Server-side Design and Programming Web Services.
Python and REST Kevin Hibma. What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a.
ASP.NET Web API. ASP.NET Members MS Open Source ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source ASP.NET MVC 4, ASP.NET.
Nadir Saghar, Tony Pan, Ashish Sharma REST for Data Services.
Copyright © Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. Drupal Web Services 1 Authored by: Chaitanya Anil Kulkarni Presented.
2008 Summer Road Trip Welcome! Summer Roadtrip Overview Showcase of 2008 Launch Wave offerings End to end application build with Visual Studio 2008.
Introduction to Web Services
Using OData Data Sources in SharePoint 2013 Solutions Hunter
CSCE 315 – Programming Studio Spring Goal: Reuse and Sharing Many times we would like to reuse the same process or data for different purpose Want.
06 | HTTP Services with Web API Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
Really Useful Web Services
Janakiram MSV Developer Evangelist Microsoft Corporation.
Feeling RESTful? Well, first we’ll define a Web Service –A web page meant to be consumed by a computer via an autonomous program as opposed to a web browser.
WebApi: What is it? How can I use it? Guy In Front of the Whittaker.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
Wes Hackett Principal Solutions Architect Chris O’Brien Head of Development.
Building Azure Mobile Apps
Introducing the Microsoft® .NET Framework
Migrating SharePoint Add-ins from Azure ACS to Azure AD
To the Command Line and Beyond Jeremy Sublett Composable Systems, LLC
Unit – 5 JAVA Web Services
An introduction to REST for SharePoint 2013
Azure AD Line Of Business Application Integration
WEB API.
Office 365 Development July 2014.
API Application Services
Office 365 Development July 2014.
$, $$, $$$ API testing Edition
Middleware, Services, etc.
Integrating REST API and SQL Server JSON Functions
Maxim Lukiyanov Program Manager Microsoft Corporation
Building production-ready APIs with ASP.NET Core 2.2
Python and REST Kevin Hibma.
04 | Apps and SharePoint Chris Johnson | SharePoint Guru
WCF Data Services and Silverlight
Introduction to ASP.NET Parts 1 & 2
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Chengyu Sun California State University, Los Angeles
Presentation transcript:

POWERSHELL AND THE WEB PowerShell Summit 2014 Trond Hindenes, Crayon AS

THE IT AUTOMATION PYRAMID IntegrationOrchestration Automation

POWERSHELL INTEGRATION MATURITY HTTP API (rest).Net wrapper (dll) PS Module

WHY STEP TO THE LEFT? Low quality vendor-supplied CmdLets Lack of functionality

TYPES OF WEB SERVICES Generation 1: XML Web Services (SOAP) Stateful (or, acting like they are stateful) Generation 2: RESTful services (JSON/XML) Stateless Good overview at: services-overview/ services-overview/

TYPES OF WEB SERVICES (2) SOAP: Access api through methods on the proxy object $citynames = $proxy.LatLonListCityNames(1) REST: Each operation has a URL: HTTP DELETE to

AUTHENTICATION GOTCHAS The life of a http request Authentication types: Unauthenticated or IP based Basic/NTLM Token based

VISUAL STUDIO LIGHTSWITCH Rapid development of Data-driven applications Can be self-hosted or built as a Sharepoint 2013 app The backend data is served using WCF OData

PATTERNS FOR LIGHTSWITCH + POWERSHELL Develop the app Deploy it somewhere Generate proxy dll Use the proxy to interact with the service endpoint

EXAMINING THE PROXY DLL Use the VS Object Browser to inspect the dll Or use Ilspy (

POWERSHELL AND RESTFUL SERVICES WITH JSON AKA INVOKE-RESTMETHOD JSON – Javascript Object Notation Human readable objects Similar to XML, but lighter weight (XML is wire-heavy) Construct Object Convert to Json Send to server Get stuff back

REST GOTCHAS Everything is a PsCustomObject No.gettype() Each request is atomic No state API examples often use curl Important differences between PowerShell and curl (authentication) Be mindful of JSON syntax You'll often end up with lots of "nested" objects

GENERATING PROPER OBJECTS New-Struct to the rescue (

ASP.NET MVC/WEB API General-purpose web app framework for building stuff Scott Guthries brainchild Web API is a flexible framework for building (among others) RESTful web services Natively supports both JSON and xml

CASE: HOSTED MAIL FLOW MONITORING

FUN WITH WEB SpamTitan (super-simple XML/Rest) Geckoboard (complex json) PagerDuty (simple json)

THANK YOU!