1 / 8

SOA

SOA. 605.702 Service Oriented Architecture Johns-Hopkins University Montgomery County Center, Fall 2007 Session 8, Mid Term and Lecture 7: October 30, 2007 Instructor: T. Pole. Session #8 Agenda. Mid Term Hand in hard copy of mid term take home exercise 50 minute, in class exam.

abie
Télécharger la présentation

SOA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SOA 605.702 Service Oriented ArchitectureJohns-Hopkins University Montgomery County Center, Fall 2007 Session 8, Mid Term and Lecture 7: October 30, 2007 Instructor: T. Pole

  2. Session #8 Agenda • Mid Term • Hand in hard copy of mid term take home exercise • 50 minute, in class exam. • Required Reading for This Week • Hassan Chapter 3 and 4 • Using WSE 3.0 to Manipulate SOAP Envelopes • Erl Chapter 9 and 10 • Lecture • Erl Chapters 9 and 10: Service Layers and SOA Delivery Strategies • Hassan Chapters 3 and 4: design patterns for message oriented and service oriented web services. • Time Permitting: Posting services to class site

  3. Hassan Chapters 3 & 4: • CH 3: Design Patterns for Building Message-Oriented Web Services • Ch 4: Design Patterns for Building Service-Oriented Web Services • Ch 5: Installing WSE 3.0

  4. Setting up WSE 3.0 • Download from: http://www.microsoft.com/downloads/details.aspx?familyid=018a09fd-3a74-43c5-8ec1-8d789091255d&displaylang=en • For each project, you must configure WSE support for both requestor and receiver services.

  5. Configuring a Project to Use WSE 3.0 • WSE 3.0 MUST BE CONFIGURED on your build machine, and the target machine hosting your web services. • For each project using WSE 3.0 • Click right in the Solution Explorer on the project on which WSE is to be enabled. • Select WSE 3.0 Settings.. • In the dialog that appears, in the General tab, click “Enable this project for Web Services Enhancements” • ASP.Net (services) select both “Enable this project for Web Service Enhancements” and “Enable Microsoft Web Services Enhancements Soap Protocol Factory” • Otherwise just the first of the two selections above

  6. Accessing the SOAP Context from C# Code in the Requestor • Note: WSE will NOT be required for the class project, but there will be homework exercise and probably a final exam question(s) on using WSE. • In the service reqestor, use the [service name] Wse class instead of the [service name] class when instantiating the service. • localhost.ServiceWse Service = new WS_ADDR_102707_Requestor.localhost.ServiceWse(); • Use the RequestSoapContext attribute to access the SOAP envelope • SoapContext MyContext = Service.RequestSoapContext; • Use the URI type to read the addresses from a SOAP envelope by using the context’s addressing objects’, destination, replyto, etc. values • Uri MyUri = MyContext.Addressing.Destination.Address.Value;

  7. Erl Chapters 9 & 10 • Chapter 9 Service Layers • Chapter 10 SOA Delivery Strategies

  8. Posting Services to Class Web Site • ftp upload • Passive mode • Activate application • Web application tool • Left click on the folder • Click the “Install Application” link to the right • Do not post WSE services to the student web site • The Class Project will not require WSE

More Related