Web n Web Service Web Application Web Document

  • Slides: 43
Download presentation

基于Web的应用程序概念及其演变 n Web的演变 Service Web Application Web Document Web ◈ Web Services ◈ Generate

基于Web的应用程序概念及其演变 n Web的演变 Service Web Application Web Document Web ◈ Web Services ◈ Generate XML ◈ SOAP, WSDL, UDDI ◈ Transactions initiated by program ◈ Application Servers ◈ Business Logic ◈ Generate HTML ◈ Transactions ◈ Distributed process ◈ WAP, WML ◈ Web Server ◈ HTTP协议 ◈ HTML文档

XML n n n n XML介绍 XML语法规则 DTD Schema XSL (XSLT, XSL-FO, xpath) XLL

XML n n n n XML介绍 XML语法规则 DTD Schema XSL (XSLT, XSL-FO, xpath) XLL (XPointer) XML 具 XML应用(RSS)

XML-DTD n n DTD简介 文档类型声明 n 私有 DTDs n n 公用 DTDs n n

XML-DTD n n DTD简介 文档类型声明 n 私有 DTDs n n 公用 DTDs n n <!DOCTYPE root_element_name PUBLIC FPI URL > DTD声明-ELEMENT n n <!DOCTYPE root_element_name SYSTEM “DTD_URL”> <!ELEMENT name content_category> <!ELEMENT name (content_model) cardinality> DTD声明- ATTLIST n <!ATTLIST element. Name attr. Name 1 atrr. Type 1 attr. Default 1 default. Value 1 attr. Name 2 atrr. Type 2 attr. Default 2 default. Value 2 … attr. Name. N atrr. Type. N attr. Default. N default. Value. N > n atrr. Type : 属性类型, 十类合法的类型

XML-JAVA&XML n XML-Java n DOM n n SAX n n n 基于树的。遍历、编辑 基于事件 DOM与SAX应用场合选择

XML-JAVA&XML n XML-Java n DOM n n SAX n n n 基于树的。遍历、编辑 基于事件 DOM与SAX应用场合选择 St. Ax JDOM XSLT

J 2 EE n n n n J 2 EE Overview:构件,服务,通讯;容器 J 2 EE

J 2 EE n n n n J 2 EE Overview:构件,服务,通讯;容器 J 2 EE Application Components J 2 EE Services: Service API J 2 EE Services: Run-time Services Communications J 2 EE应用程序 基于角色的开发

J 2 EE

J 2 EE

J 2 EE n n n Servlet and JSP Overview Introduction to Servlets n

J 2 EE n n n Servlet and JSP Overview Introduction to Servlets n Request n Response n Session Tracking Introduction to Java. Server Pages n Static template text. n Dynamic content: n Scripting elements. n n n Declarations: Scriptlets Expressions Directives. Standard actions. Custom tags.

J 2 EE n n n Java. Bean Javamail 自定义标签 JDBC JSP模式 n n

J 2 EE n n n Java. Bean Javamail 自定义标签 JDBC JSP模式 n n MODEL 1 MODEL 2(MVC设计模式)

J 2 EE n EJB体系结构中的构件 n n n n Enterprise Bean:三种bean Home Interface Remote

J 2 EE n EJB体系结构中的构件 n n n n Enterprise Bean:三种bean Home Interface Remote Interface EJB Container EJB Server EJB Client EJB容器服务 EJB开发角色

J 2 EE n 创建Session Bean n n 创建Entity Bean n 创建 Remote Interface

J 2 EE n 创建Session Bean n n 创建Entity Bean n 创建 Remote Interface 创建 Home Interface 创建 Enterprise Bean Class Entity Bean 1. 1 Entity Bean 2. 0 客户程序 n 创建客户程序 n n 5种J 2 EE客户端 访问EJB的步骤 运行客户程序中的异常处理

J 2 EE n 部署EJB应用 n n n n 资源管理与EJB环境 EJB事务处理 n n n

J 2 EE n 部署EJB应用 n n n n 资源管理与EJB环境 EJB事务处理 n n n 创建J 2 EE应用 创建EJB JAR 配置JNDI名 查错 部署应用 Container Managed Transaction Bean Managed Transaction 安全性控制

J 2 EE n Java. Mail n n n Java. Mail简介 相关协议介绍 Java. Mail

J 2 EE n Java. Mail n n n Java. Mail简介 相关协议介绍 Java. Mail 的核心类 n n 会话管理session 消息管理message 邮件存储和检索store 传送transport

J 2 EE n J 2 EE中的模式 n n MVC J 2 EE框架 n

J 2 EE n J 2 EE中的模式 n n MVC J 2 EE框架 n n Struts Spring n n n IOC AOP Hibernate

web services n web services概述 n Web Service的分类 n n n Business-Oriented Web Service

web services n web services概述 n Web Service的分类 n n n Business-Oriented Web Service Customer-Oriented Web Service Device-Oriented Web Service System-Oriented Web Service与 作流 n Web服务流语言(WSFL, Web Service Flow Language) n BEPL 4 WS Web Service与EAI

绑定到HTTP的SOAP POST http: //www. Smart. Hello. com/Hello. Application HTTP/1. 0 Content-Type: text/xml; charset="utf-8" Content-Length:

绑定到HTTP的SOAP POST http: //www. Smart. Hello. com/Hello. Application HTTP/1. 0 Content-Type: text/xml; charset="utf-8" Content-Length: 587 SOAPAction: "http: //www. Smart. Hello. com/Hello. Application#say. Hello. To" <SOAP-ENV: Envelope xmlns: SOAP-ENV=" http: //schemas. xmlsoap. org/soap/envelope/" xmlns: xsi="http: //www. w 3. org/1999/XMLSchema-instance" xmlns: xsd="http: //www. w 3. org/1999/XMLSchema"> <SOAP-ENV: Header> </SOAP-ENV: Header> <SOAP-ENV: Body> <ns 1: say. Hello. To xmlns: ns 1="Hello“ SOAP-ENV: encoding. Style="http: // schemas. xmlsoap. org/soap/encoding/"> <name xsi: type="xsd: string"> Tarak </name> </ns 1: say. Hello. To> </SOAP-ENV: Body> </SOAP-ENV: Envelope>

web services n SOAP n n RPC vs. Messaging SOAP请求和响应

web services n SOAP n n RPC vs. Messaging SOAP请求和响应

web services n WSDL n 基本的服务描述分成了两部分 n 服务接口 n n n types : message

web services n WSDL n 基本的服务描述分成了两部分 n 服务接口 n n n types : message : operations port. Type: 服务实现 n n n binding: Service: Port: Service Implementation Port Definition Binding Service Port. Type Interface Definition Opertions Message Types

web services n WSDL文档结构

web services n WSDL文档结构

web services n UDDI n n UDDI商业注册所提供的信息包含三部分 基本 UDDI 数据结构 n business. Entity n

web services n UDDI n n UDDI商业注册所提供的信息包含三部分 基本 UDDI 数据结构 n business. Entity n business. Service n binding. Template n t. Model UDDI 作原理 服务发现

web services Web Service Invocation

web services Web Service Invocation

Web services n BPEL n n n What is and Why BPEL? Orchestration vs.

Web services n BPEL n n n What is and Why BPEL? Orchestration vs. Choreography BPEL vocabulary n n – Activities – Partners – Variables – Flow, Link, Correlation

Web services n REST & RESTful Web. Services n n Network-based Architectural Styles n

Web services n REST & RESTful Web. Services n n Network-based Architectural Styles n What is an Architectural Styles n Common architectural styles for network-based software REpresentational State Transfer (REST) n Deriving REST n Knowing REST n Advantages of REST n REST and other concepts n RESTful Web Services n Writing REST services

其他需要了解的 n Presentation topics n n FLEX技术及其应用 Ajax Struct 2 …

其他需要了解的 n Presentation topics n n FLEX技术及其应用 Ajax Struct 2 …