Thursday 6 February 2014

Introduction to ASP.NET Web Services– Part 1

 

 

Introduction To ASP.NET Web Services

 

image

 

 

 

image

 

 

 

 

image

image

 

 

 

 

image

 

 

 

Technologies related to Web Services

 

image

 

 

 

 

HTTP Technology

image

 

 

 

 

Looking at the HTTP

 

image

 

 

Note: Fiddler is excellent tool which can be used to trace the HTTP communication over the network.

 

 

 

XML Technology

 

image

 

Note: XML is basic format medium to communicate over the network to other systems

 

 

 

 

SOAP Technology

image

 

 

 

Looking at the SOAP

 

image

 

 

Note:  This is common Request and Response format for SOAP request.

 

 

 

WSDL Technology

 

image

 

 

 

 

Looking at the WSDL

 

image

 

 

Note: This WSDL file is kind of MENU for our web services to work with.  Basically it defines all the methods and communication mechanism for your clients who calls this services.

 

 

 

How it works

 

image

 

 

 

 

Hello World for Web Services

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Creating A Simple Web Service

 

image

 

 

 

 

Creating the Projects

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Creating Add Protein method

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Web Method parameters

 

image

 

 

image

 

 

 

Enabling Session

image

 

 

image

 

 

 
Add User

 

image

 

 

 

Creating Add User

 

image

 

 

image

 

 

 

image

 

 

 

 

Adding List Users

image

 

 

image

 

 

Fixing Add protein

image

 

 

 

The Repository Pattern

 

image

image

 

 

 

 

Using the Repository Pattern

 

image

 

 

 

image

 

 

 

 

Testing Our Web Services

image

 

 

image

 

 

 

 

Consuming Web Services

 

image

 

 

 

Creating Project for Web Service Client

 

image

 

 

 

Creating UI

 

image

 

 

 

image

 

 

 

 

Adding a Service Reference

 

image

 

 

 

image

 

 

 

Calling List Users

 

image

 

 

 

image

 

 

 

Adding a User

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Updating total and Goal

 

image

 

 

 

image

 

 

 

Calling Add Protein

 

image

 

 

 

 

Adding Delay and use New Async in Web Services

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

Note:  If you use Async and Await keyword then Web services call will not block the UI thread.

 

 

 

Old Async Pattern

 

image

 

 

image

 

 

 

 

Exceptions in Web Services

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

 

Custom SOAP header

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Manually Generating Proxy Classes

 

image

 

 

 

image

 

 

 

 

image

 

 

Note:  This WSDL tool will generate the proxy classes for our Web services Client call.

 

 

 

Web Services and AJAX

 

image

 

 

 

 

Setting up the project

 

image

 

 

 

image

 

 

 

 

Creating Select UI

 

image

 

 

image

 

 

 

 

How AJAX Works

 

image

 

 

 

 

Getting ready to call web Services

image

 

 

 

image

 

 

 

image

 

 

 

Populating Select List

image

 

 

 

 

Testing the UI dummy Services

 

image

 

 

image

 

 

 

image

 

 

 

Using Real Web Services

 

image

 

 

 

 

image

 

 

 

 

Adding New User UI

 

image

 

 

 

image

 

 

 

Implementing Add New User

 

image

 

 

 

image

 

 

 

 

Using Page Methods

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Using JQuery for Web Services Call

 

image

 

 

 

image

 

 

 

 

Migrating to Newer Technologies

 

 

image

 

 

 

 

Technology Choices

 

image

 

 

 

 

Preparing for WCF

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Creating WCF Services

 

image

 

 

 

image

 

 

image

 

 

 

 

Running WCF

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Creating the WEB API Project

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

 

Creating USER Controller

 

image

 

 

 

image

 

 

 

 

Adding Methods

 

image

 

 

 

Adding GET and POST

 

GET

image

 

 

POST

image

 

 

 

Testing the API

image

 

 

 

image

 

 

 

Implementing PUT

 

image

 

 

 

image

 

 

 

 

Blogger Labels: Introduction,Services,Online,Course,Developers,Mozilla,Firefox,Technologies,Technology,Note,Fiddler,tool,communication,systems,SOAP,Request,Response,WSDL,MENU,mechanism,clients,Hello,World,Simple,Service,Projects,Protein,method,parameters,Session,User,List,Users,Repository,Pattern,Project,Client,Reference,Goal,Delay,Async,Await,Exceptions,Custom,header,Proxy,Classes,AJAX,Select,Works,Real,Page,Methods,JQuery,Call,Newer,Choices,Controller,POST

No comments:

Post a Comment