Java Technology for Building Web Services

Document Sample
Java Technology for Building Web Services Powered By Docstoc
					Java Technology for Building Web Services                                                            26/01/52



                                                            Agenda
                                                             Web    Service Framework
          Java Technology for                                    Metro

         Building Web Services                               Application Server
                                                                 Glassfish
                                                             IDE
      Asst. Prof. Dr. Kanda Runapongsa Saikaew
                                                                 Netbeans
      (krunapon@kku.ac.th)                                   Monitoring       & Testing Tools
      Mr.Pongsakorn Poosankam
                                                               TCPMon
      (pongsakorn@gmail.com)                                   soapUI
      Department of Computer Engineering
      Khon Kaen University
                                                        1                                        2




       Web Service Framework (1/2)                          Web Service Framework (2/2)
        Web  Service Framework Provide                      Web    Service Framework Vendor
         Environment for Building Web Service                    Free & Open source
            Java Library                                                (Sun Microsystems)
                                                                    Metro

               XML Data Binding                                    ApacheAxis
               XML Parser, XPATH, XSLT                             JBOSS

               SOAP,UDDI,WSDL                                   Commercial
               Security                                            IBM

            Tools                                                  Oracle  & BEA
               Javato WSDL converter                               HP   & Systinet
               WSDL to Java converter

               XSD to Java and Java to XSD converter

                                                        3                                        4




       What is Metro? (1/2)                                 What is Metro ? (2/2)
        Metro is Web Service Framework                      Metro    is Web Service Stack
        Metro is a high-performance, extensible,
         easy-to-use.
        Metro is a part of the GlassFish community




                                                        5                                        6




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU                                                     1
Java Technology for Building Web Services                                                                                               26/01/52



       Metro Web Service Stack (1/2)                                      Metro Web Service Stack (2/2)
          Transports                                                        Base Library
              HTTP transport , MTOM and XOP ,SOAP/TCP                          JAXB
                                                                                   XML data binding
          Reliability
                                                                                JAXP
              Reliability Messaging, Ensure Delivery
                                                                                   XML parser with DOM and SAX
          Transaction
                                                                                StAX
              Ensure that all operations within a transaction boundary
                                                                                   Streaming XML Parser
               succeed.
                                                                                SAAJ
          Security
                                                                                   SOAP with Attachments API for Java
              Message (Encryption, Signature)
                                                                                Woodstox
              Transport (HTTPS/SSL)
                                                                                   High-performance XML processor
          Core Business Web Services
                                                                                 XML Stream Buffer
              JAX-WS API
                                                                                   A   stream buffer, of an XML infoset in Java
                                                                    7                                                              8

              WSIT




       Application Server (1/2)                                           Application Server (2/2)
        Provide Runtime Environment for                                   Java      Application Server Vendor
           Communication, Configuration and                                      Free & Opensource
           Management                                                               Glassfish Application Server
            Web Container (Servlet/JSP/Web Services)                               Apache   Tomcat
                                                                                    Jetty
            EJB Container (EJB Component)
                                                                                    JBoss
            Security
                                                                                 Commercial
            Data Source
                                                                                    Sun Java System Application Server
                                                                                    IBM Web Sphere
                                                                                    Oracle Application Server & BEA WebLogic

                                                                                    HP SOA Systinet Registry

                                                                    9                                                              10




       What is GlassFish?                                                 GlassFish Features
       A Java EE 5 compliant Application Server                             Metro Web Services Stack
                                                                                 Performance, Microsoft interoperability
        Enterprise Quality
                                                                             Clustering, Load-Balancing, HA
              Sun Java System Application Server 9.x
                                                                                 Advanced Management
              Use it in production!
                                                                           JBI support (OpenESB 2.0)
        Open       Source                                                 Better user experience
            CDDL (like OpenSolaris, NetBeans)                                   Single, smaller, download
            GPLv2 (like Java and NetBeans)                                      Multiple User Profiles
            Use it in production!                                               Better startup time
                                                                                 Update Center
                                                                                 New admin console: JSF, AJAX, Charts
                                                                    11
                                                                             World Record Performance                             12




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU                                                                                        2
Java Technology for Building Web Services                                                                               26/01/52



       GlassFish : Distributions & Contributors        GlassFish : Tools Sport
                                                        NetBeans        6.0,6.1, 6.5
                                                        Eclipse
                                                        CodeGear      JBuilder 2007
                                                        IDEA   Intellij 6.0, 7.0




                                                  13                                                               14




       GlassFish Capture                               GlassFish : Frameworks and Applications




                                                  15                                                               16




       IDE (1/2)                                       IDE (2/2)
        IDE   is Integrated Development Environment    Java   IDE Vendors
          New/Edit/Delete Source Code                      Free & Open Source
          Build/Deploy/Undeploy                              NetBeans

                                                              Eclipse
          Debugging Tools
                                                              JDeveloper    (free for development & deployment)
          Refactoring Tools
                                                            Commercial
          Profiling Tools
                                                              IBM   Web Sphere
          Monitoring Tools
                                                              WebLogic
          Visual Programming (Drag & Drop)                   IntelijIDEA

          Completion Syntax and API
          Collaboration
                                                  17                                                               18




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU                                                                        3
Java Technology for Building Web Services                                                                26/01/52



       What is NetBeans?                                 NetBeans Features (1/2)
       A  free, open-source Integrated                   Java ME, Java SE, Java EE
         Development Environment for software             SOA & Web Service
         developers.                                      XML ,XSD,XSLT
        Provide by Sun Microsystem.
                                                          Java GUI Builder
        Dr. James Gosling is chief technology
                                                          Visual Mobile Development
         officer
                                                          Visual Web and Java EE Development
            Coaching Netbeans Team Everything
                                                          Visual UML Modeling
        Platform   IDE
                                                          C and C++ Development
            Java, Ruby, Python, C/C++, PHP
                                                          Ruby and Rails Support
                                                    19
                                                          PHP                                      20




       NetBeans Features (2/2)                           NetBeans Capture
        Integration with Java Application Server
        DB Connector
        Java Profiler
        Java Debugger
        Version Control
        Plug in




                                                    21                                              22




       Monitoring & Testing Tools (1/2)                  Monitoring & Testing Tools (2/2)
        Monitoring    Tools                              Monitoring     & Testing Tools Vendor
            Monitor Soap Message                             Free & Open Source
            Monitor HTTP Status                                HTTP  Monitor bundle in Netbeans
                                                                TCPMon  (Apache)
        Testing   Tools
                                                                soapUI
          Unit Test                                            Wireshark (Ethereal,TCP/UDP)
          Interoperable Test                                   Web Services Explorer (Eclipse)

          Speed Test                                         Commercial
                                                                OracleBundle Suite
                                                                IBM Bundle Suite
                                                                HP Bundle Suite

                                                    23                                              24




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU                                                         4
Java Technology for Building Web Services                                                             26/01/52



       TCPMon                                                   TCPMon Capture
        TCPMon     is a utility that allows the user to
         monitor the messages passed along in
         TCP based conversation.
        Based on a swing UI and works
        All Platform that support java.
        Useful in developing Web services




                                                           25                                    26




       soapUI (1/2)                                             soapUI (2/2)
        soapUI   is the Web Services Testing tool               Testing   Interoperable with
        soapUI   features
          Inspecting Web Services
          Invoking Web Services
          Developing Web Services
          Web Service Simulation and Web Service
           Mocking
          Functional Testing of Web Services
          Load Testing of Web Services


                                                           27                                    28




       soapUI Capture (1/2)                                     soapUI Capture (2/2)




                                                           29                                    30




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU                                                      5
Java Technology for Building Web Services                     26/01/52



       References
        Metro    Home Page
            https://metro.dev.java.net
        GlassFish Java      Application Server
            https://glassfish.dev.java.net/
        NetBeans      IDE
            http://www.netbeans.com
        soapUI
            http://www.soapui.org
        TCPMon
            http://ws.apache.org/commons/tcpmon/tcpmo
             ntutorial.html
                                                         31




K. R. Saikaew & P. Poosankam, Computer Engineering, KKU              6