ADVANCED WEB SERVICES. Three Advanced Web Service Techniques SOAP Extensions Asynchronous calls Custom wire formatting SOAP Extensions Asynchronous calls.

Slides:



Advertisements
Similar presentations
Generalized Requests. The current definition They are defined in MPI 2 under the hood of the chapter 8 (External Interfaces) Page 166 line 16 The objective.
Advertisements

AJAX Development By Gary Mandela December 26,
Asynchronous Web Services Jaliya N. Ekanayake. Basics of Web Services.
WEB SERVICES. FIRST AND FOREMOST - LINKS Tomcat AXIS2 -
Asynchronous Sockets SWE 344 Internet Protocols & Client Server Programming.
Asynchronous I/O in .NET
Lecture 5 Concurrency and Process/Thread Synchronization     Mutual Exclusion         Dekker's Algorithm         Lamport's Bakery Algorithm.
Async Programming WITH ASYNC TASK
Oct Ron McFadyen1 Singleton To guarantee that there is at most one instance of a class we can apply the singleton pattern. Singleton Static.
ASP.Net, web services--- asynchronous and synchronous and AJAX By Thakur Rashmi Singh.
CS 4800 By Brandon Andrews.  Specifications  Goals  Applications  Design Steps  Testing.
Threads Section 2.2. Introduction to threads A thread (of execution) is a light-weight process –Threads reside within processes. –They share one address.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L19 (Chapter 24) Multithreading.
Persistent State Service 1 Performance, Scalability and Management  Topic  Refining the object model  Threading models  Distributed callbacks  Iterators.
INFOSYS 290, Section 3, Fall 2005, Web Services: Concepts, Design and Implementation Adam Blum Lecture 4: Creating Web Services.
Stromchat Extendable, Modable, Multifunction Peer-to-Peer Chat Server/Client.
Performance Management 1 Performance, Scalability and Management  Topic  Refining the object model  Threading models  Distributed callbacks  Iterators.
Ceng Operating Systems Chapter 2.1 : Processes Process concept Process scheduling Interprocess communication Deadlocks Threads.
MSCF/CMU1 More on Web Services Maintaining State Legacy Code Asynchronous Calls.
1 © 2002 Alberto Montresor The Jgroup Project Alberto Montresor Ozalp Babaoglu University of Bologna - Italy Department of Computer Science.
CS 2511 Fall  Abstraction Abstract class Interfaces  Encapsulation Access Specifiers Data Hiding  Inheritance  Polymorphism.
VSP Video Station Protocol Presented by : Mittelman Dana Ben-Hamo Revital Ariel Tal Instructor : Sela Guy Presented by : Mittelman Dana Ben-Hamo Revital.
Winter 2007ACS-3913 Ron McFadyen1 Singleton To guarantee that there is at most one instance of a class we can apply the singleton pattern. Singleton Static.
Asynchronous Web Services Approach Enrique de Andrés Saiz.
Interesting facts about node.js.  Asynchronous I/O  How do they do that?..threads (usually) What do Web Servers do?
Chapter 4: Threads Adapted to COP4610 by Robert van Engelen.
App Windows UI object Windows object App code Windows object.
Modern Concurrency Abstractions for C# by Nick Benton, Luca Cardelli & C´EDRIC FOURNET Microsoft Research.
Classes and Class Members Chapter 3. 3 Public Interface Contract between class and its clients to fulfill certain responsibilities The client is an object.
Sofia, Bulgaria | 9-10 October Asynchronous Programming for ASP.NET 2.0 Developers Julie Lerman The Data Farm Julie Lerman The Data Farm.
MultiThreading in.NET 2.0 Neal S. Buchalter NSB Consulting
Threaded Applications Introducing additional threads in a Delphi application is easy.
Workflow Early Start Pattern and Future's Update Strategies in ProActive Environment E. Zimeo, N. Ranaldo, G. Tretola University of Sannio - Italy.
Concurrent Programming. Concurrency  Concurrency means for a program to have multiple paths of execution running at (almost) the same time. Examples:
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
C# I 1 CSC 298 Threads. C# I 2 Introducing Threads  A thread is a flow of control within a program  A piece of code that runs on its own. The execution.
1 Chapter 2.1 : Processes Process concept Process concept Process scheduling Process scheduling Interprocess communication Interprocess communication Threads.
Introducing BPEL Concepts Oracle BPEL Process Manager.
Client Web Service HTTP Tunnel 1 2 Synchronous Message BLK.
Telerik Software Academy Web Services & Cloud.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
1 ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 25, 2011 Synchronization.ppt Synchronization These notes will introduce: Ways to achieve.
IAsyncResult ar = BeginSomething(…); // Do other work, checking ar.IsCompleted int result = EndSomething(ar);
Server-Side Java Mapping Copyright © ZeroC, Inc. Ice Programming with Java 6. Server-Side Java Mapping.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework part 2 Rob.
Web Services Error Handling and Debugging. Agenda Simple SOAP faults Advanced SOAP faults SOAP headers and faults Error handling From a Service Perspective.
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
DØ Offline Reconstruction and Analysis Control Framework J.Kowalkowski, H.Greenlee, Q.Li, S.Protopopescu, G.Watts, V.White, J.Yu.
Synchronization These notes introduce:
Asynchrony in (ASP).NET Aliaksandr
Presented by Ted Higgins, SQL Server DBA An Introduction to Object – Oriented Programming.
Copyright © 2004, Keith D Swenson, All Rights Reserved. OASIS Asynchronous Service Access Protocol (ASAP) Tutorial Overview, OASIS ASAP TC May 4, 2004.
1.NETDelegates & eventsNOEA / PQC 2007 Delegates & events Observer pattern Delegates –Semantics –Cil – code –Usage Events Asynchronious delegates.
Patterns of Parallel Programming with.NET 4 Stephen Toub Principal Architect Parallel Computing Platform Microsoft Corporation
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
CIS NET Applications1 Chapter 7 – Asynchronous Calls.
Nivo 300 ASP.NET MVC 4 Danijel Malik Artifis Danijel Malik s.p.
VHDL Workshop FSM. FSM-Smart Counter Requirements Receives a start signal. When start signal goes high, starts to count from zero: reset value – 0, first.
Asynchronous Programming Writing Concurrent Code in C# SoftUni Team Technical Trainers Software University
Lecture 6 Threads Erick Pranata
Google Web Toolkit Tutorial
Advanced Topics in Concurrency and Reactive Programming: Asynchronous Programming Majeed Kassis.
Advanced C++ Programming
Pre assessment Questions
Async or Parallel? No they aren’t the same thing!
12 Asynchronous Programming
EXTENSION AND INTEGRATION
Asynchronous Programming
Lesson 7. Events, Delegates, Generics.
Chengyu Sun California State University, Los Angeles
Presentation transcript:

ADVANCED WEB SERVICES

Three Advanced Web Service Techniques SOAP Extensions Asynchronous calls Custom wire formatting SOAP Extensions Asynchronous calls Custom wire formatting

Asynchronous Web Methods Synchronous method calls –Client waits for response before any further processing –This is default behavior in Web service clients Synchronous method calls –Client waits for response before any further processing –This is default behavior in Web service clients

Asynchronous Web Methods (cont’d) Asynchronous method calls –Client continues processing after issuing Web service method call –Web service does not have to be modified for asynchronous calls –Implemented on client Asynchronous method calls –Client continues processing after issuing Web service method call –Web service does not have to be modified for asynchronous calls –Implemented on client

Asynchronous Call Techniques Use a callback delegate Use the WaitHandle object Use a callback delegate Use the WaitHandle object

Callback Delegate Introduced in C++ Delegate is associated with method and with client Delegate is a communication object, linking method source with calling code Introduced in C++ Delegate is associated with method and with client Delegate is a communication object, linking method source with calling code

Create A Delegate // create a delegate to handle the callback AsyncCallback cb = new AsyncCallback(WebServiceCallback); // launch the asynchronous call –... // do some processing while waiting for response –... // create a delegate to handle the callback AsyncCallback cb = new AsyncCallback(WebServiceCallback); // launch the asynchronous call –... // do some processing while waiting for response –...

Method To Handle Response // callback to handle the async return private void WebServiceCallback (IAsyncResult ar) { –... –tbxDescription.AppendText(“response”); } // callback to handle the async return private void WebServiceCallback (IAsyncResult ar) { –... –tbxDescription.AppendText(“response”); }

The WaitHandle Object Allows programmer to convert an asynchronous process into a synchronous process Uses Threading –Using System.Threading; –Threading allows your program to have multiple “threads”, each thread being dispatched separately by the CLR Allows programmer to convert an asynchronous process into a synchronous process Uses Threading –Using System.Threading; –Threading allows your program to have multiple “threads”, each thread being dispatched separately by the CLR

The WaitHandle Object (cont’d) // create a result object to hold the status of the asynchronous call IAsyncResult ar; // launch the async call... // wait for the result to come back WaitHandle wh = ar.AsyncWaitHandle; wh.WaitOne();... // create a result object to hold the status of the asynchronous call IAsyncResult ar; // launch the async call... // wait for the result to come back WaitHandle wh = ar.AsyncWaitHandle; wh.WaitOne();...

Selected WaitHandle Methods WaitOne(); WaitAny(); WaitAll(); WaitOne(); WaitAny(); WaitAll();