Veebiteenused Java platvormil - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Veebiteenused Java platvormil

Description:

XML t tlus Javas. DOM1 parsimine 'Push' parsimine SAX 'Pull' parsimine StAX, Apache AXIOM ... A Java class name that is derived from the XML element name, ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 13
Provided by: toomasut
Category:

less

Transcript and Presenter's Notes

Title: Veebiteenused Java platvormil


1
Veebiteenused Java platvormil
  • Tauno Treier

2
Sisukord
  • Java arendusvahendid
  • XML töötlus Javas
  • Java EE veebiteenuste tehnoloogiad
  • Näide NetBeans 5.5 ja Glassfish rakendusserveriga

3
Arendusvahendid
  • Kommertsiaalsed arendusvahendid
  • IBM Websphere
  • Sun Microsystems
  • Oracle
  • BEA Weblogic
  • webMethods
  • SAP NetWeaver
  • Intelli J IDEA

4
Arendusvahendid
  • Vabavara arendusvahendid
  • Apache Axis, Axis2
  • JAX-WS RI
  • Eclipse
  • NetBeans

5
XML töötlus Javas
  • DOM1 parsimine
  • Push parsimine SAX
  • Pull parsimine StAX, Apache AXIOM

6
Java EE tehnoloogiad
  • Java API for XML-Based Web Services (JAX-WS)
  • Java Architecture for XML Binding (JAXB)
  • SOAP with Attachments API for Java (SAAJ)

7
JAX-WS
  • Kommunikatsioon JAX-WS veebiteenuse ja kliendi
    vahel
  • Genereerimise vahendid
  • wsgen
  • wsimport

8
JAX-WS
  • A service endpoint interface or service endpoint
    implementation (SEI) is a Java interface or
    class, respectively, that declares the methods
    that a client can invoke on the service. An
    interface is not required when building a JAX-WS
    endpoint. The web service implementation class
    implicitly defines an SEI.

Endpointi näide package helloservice.endpoint
import javax.jws.WebService _at_WebService
public class Hello private String
message new String("Hello, ") public
void Hello() _at_WebMethod public
String sayHello(String name) return
message name "."
9
JAX-WS
  • Stubi (tüügas) kasutamine

10
JAXB
  • JAXB arhitektuur

11
JAXB
  • JAXB pakett koosneb järgnevast
  • A Java class name that is derived from the XML
    element name, or specified by a binding
    customization.
  • An ObjectFactory class, which is a factory that
    is used to return instances of a bound Java
    class.

12
Näide
  • NetBeans 5.5
  • Glassfish Application Server
Write a Comment
User Comments (0)
About PowerShow.com