Connecting to web services (Windows Store apps using C#/VB/C++ and XAML)

Language: JavaScript and HTML | VB/C#/C++ and XAML
This topic has not yet been rated - Rate this topic

Purpose

These topics demonstrate how to connect your app to a web service. Note that different APIs are provided for HTTP request operations, depending on which language you are coding with; HTTPClient for C#, and IXHR2 for C++.

In this section

TopicDescription

Quickstart: Connecting using XML HTTP Request (IXHR2)

Use the IXMLHTTPRequest2 interface to send HTTP GET and POST requests to a web service using C++.

Quickstart: Connecting using HttpClient

Use the HttpClient class in the System.Net.Http namespace to send a GET request to a web service and retrieve the response.

How to use HttpClient handlers

Use the HttpClientHandler class with the HttpClient class in the System.Net.Http namespace to send a GET request to a web service and retrieve the response.

How to secure HttpClient connections

Secure HttpClient connections to a web service.

 

Developer audience

Developers using VB/C#/C++ and XAML interested in creating Windows Store apps that connect to a web service

Related topics

Other resources
Adding support for networking
Connecting to a web service (Windows Store apps using JavaScript and HTML)
How to configure network isolation capabilities
How to set background connectivity options
Troubleshoot and debug network connections
Reference
HttpClient
HttpClientHandler
IXMLHTTPRequest2
System.Net.Http
System.Net.Http.Headers
Samples
ControlChannelTrigger HttpClient sample
HttpClient Sample

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.