SlideShare a Scribd company logo
1 of 18
Collaborate


Knowledge Byte

    In this section, you will learn about the following:


         •   Java API for XML Registries (JAXR)
         •   The wscompile Tool
         •   Web service security
         •   Quality of Service of Web services




 ©NIIT                          Collaborate                Lesson 2C / Slide 1 of 18
Collaborate


Java API for XML Registries (JAXR)

    •    JAXR is an API that you can use in your Java application to access Web service
         registries.
    •    You can use JAXR to publish Web services and also retrieve information of
         other published Web services from the registry.
    •    Using JAXR, you can write registry clients that are portable across different
         target registries.
    •    The JAXR API provides classes and interfaces that enable client applications to
         interact with various XML-based registries.
    •    To provide a standard registry service, XML-based registries need to conform
         to registry standards, such as ebXML and UDDI.




 ©NIIT                           Collaborate                   Lesson 2C / Slide 2 of 18
Collaborate


Java API for XML Registries (JAXR)
(Contd.)

    •    The structure of information stored in the UDDI and ebXML registries is
         different.
    •    As a result, an application written for UDDI registry cannot be used with ebXML
         registry.
    •    Similarly, an application written for ebXML registry cannot be used with UDDI
         registry.
    •    The JAXR API provides a common interface that allows Java programs to
         interact with both the registries.




 ©NIIT                          Collaborate                   Lesson 2C / Slide 3 of 18
Collaborate


Java API for XML Registries (JAXR)
(Contd.)
         •   The following table lists the two packages of JAXR API:

               Package                                        Description


                                              Consists of interfaces that define object
javax.xml.registry.infomodel                  types that a registry contains and how the
                                              object relates to each other. The base
                                              interface in this package is the
                                              RegistryObject interface that provides
                                              minimal metadata for registry objects. The
                                              sub interfaces of the RegistryObject 
                                              interface are Organization, Service,
                                              and ServiceBinding.

 ©NIIT                          Collaborate                     Lesson 2C / Slide 4 of 18
Collaborate


Java API for XML Registries (JAXR)
(Contd.)
         •   The following table lists the two packages of JAXR API (Contd.):



                Package                                       Description


javax.xml.registry                            Consists of interfaces and a
                                              ConnectionFactory class that allows JAXR
                                              clients to connect to a registry in order to
                                              search Web service information stored in the
                                              registry. JAXR clients can also use the
                                              javax.xml.registry package to publish
                                              information of Web services.


 ©NIIT                          Collaborate                     Lesson 2C / Slide 5 of 18
Collaborate


The wscompile Tool

    •    The wscompile tool is a command line tool that J2EE Application Server
         provides to generate the WSDL file of a Web service.
    •    The wscompile tool also generates various helper classes, such as stubs,
         skeletons, and serializers that a Web service client uses to access a Web
         service.
    •    The syntax to use wscompile tool is:
         wscompile <options> <configuration-file>
    •    In the preceding code snippet, configuration-file refers to the XML file that
         contains information as how the wscompile generates the WSDL file.
    •    The wscompile tool also uses the configuration file to generate runtime
         classes of the Web service.




 ©NIIT                         Collaborate                    Lesson 2C / Slide 6 of 18
Collaborate


The wscompile Tool (Contd.)

    •    Following listing shows the various options of wscompile tool:


         •    -classpath <path>: Specifies the path to directories and files that needs
              to be in the classpath for running the tool.
         •    -d <directory name>: Specifies the directory name in which the tool
              needs to store generated files.
         •    -gen:client: Specifies that the tool needs to generate client-side helper
              classes, such as stubs.
         •    -gen:server: Specifies that the tool needs to generate server-side
              helper classes, such as skeletons and the WSDL file.
         •    -gen:both: Specifies that the tool needs to create both client-side and
              server-side classes.




 ©NIIT                         Collaborate                   Lesson 2C / Slide 7 of 18
Collaborate


The wscompile Tool (Contd.)

    •    Following listing shows the various options of wscompile tool (Contd.):


         •    -g: Specifies that the tool needs to provide debugging information.
         •    -s <directory>: Specifies the directory in which the tool needs to store
              source files.
         •    verbose: Specifies that the tool needs to output messages of its
              activities.
         •    -version: Specifies that the tool needs to output its version information.




 ©NIIT                         Collaborate                    Lesson 2C / Slide 8 of 18
Collaborate


Web Services Security

    •    Web services security can be classified into:


         •    Transport-Layer Security
         •    Message-Layer Security




 ©NIIT                         Collaborate               Lesson 2C / Slide 9 of 18
Collaborate


Web Services Security (Contd.)

    •    Transport-Layer Security


         •   Web services at transport layer are made secure using the Secure
             Socket Layer (SSL).
         •   SSL/TLS provides several security features such as authentication,
             confidentiality, and data security.




 ©NIIT                        Collaborate                 Lesson 2C / Slide 10 of 18
Collaborate


Web Services Security (Contd.)

    •    Message-Layer Security


         •   The message layer security provides security between the end points
             that sends and receives messages.
         •   When a transaction takes more than one step to complete, the XML
             message is routed through many Web servers to complete a
             transaction.
         •   In such a scenario, the message can be encrypted so that a particular
             receiver receives it.
         •   When the message travels through intermediate layers before being
             received by intended receiver, the message remains secure from
             tampering at any layer.




 ©NIIT                       Collaborate                  Lesson 2C / Slide 11 of 18
Collaborate


Quality of Service (QOS) of Web
  Services

    •    With the growing competition in the Web services race, QoS of Web services
         is a critical issue.
    •    QOS needs to be provided by service providers to remove existing
         bottlenecks present in Web services.
    •    QOS allows Web services to implement a faster, secure, and reliable
         mechanism to service clients.




 ©NIIT                        Collaborate                 Lesson 2C / Slide 12 of 18
Collaborate


Quality of Service (QOS) of Web
  Services (Contd.)
    •    QOS of a Web service depends on:


         •   Performance: Refers to processing and latency time of a Web service.
         •   Reliability: Refers to the ability of a Web service to maintain its QOS
         •   Integrity: Refers to the ability of a Web service to ensure that Web
             service data and transactions are securely transported and performed,
             respectively.
         •   Accessibility: Refers to the ability of a Web service to remain easily
             accessible with the increase in the size of client volume.
         •   Availability: Refers to the time within a particular time span a Web
             service is ready and running to service client requests.
         •   Interoperability: Refers to the ability of the Web service to interact with
             clients and other Web services that are developed using different
             programming languages.
 ©NIIT                        Collaborate                   Lesson 2C / Slide 13 of 18
Collaborate


From the Expert’s Desk

    This section will introduce the following:

         •    FAQs on Web service protocol stack
         •    FAQs on finding public registries.




 ©NIIT                          Collaborate        Lesson 2C / Slide 14 of 18
Collaborate


FAQs
    •    What is a Web service protocol stack?


          •   Web service protocol stack


                •   Is a collection of protocols that are used to describe a Web service.
                •   Consists of four layers:


                      •   Service Transport Layer: Transports message between Web
                          services and Web service clients.
                      •   Service Description Layer: Describes a Web service using a
                          public interface.
                      •   Service Discovery Layer: Provides functionalities, such as finding
                          and publishing a Web service.
                      •   XML Messaging Layer: Encodes messages in XML format so that
                          messages are readable at both the ends.

 ©NIIT                             Collaborate                  Lesson 2C / Slide 15 of 18
Collaborate


FAQs (Contd.)
    •    Where can I find public registries to query and publish Web services?


          •   You can also use the Registry Server that comes packaged with the Java
              Web Service Developer Pack (JWSDP) to publish your Web service.
          •   Registry Server is an implementation of the UDDI version 2 registry and
              acts as a test registry for Web services development.
          •   Some URLs of publicly available registries are:


                •   http://uddi.ibm.com/testregistry/inquiryapi: URL for the query
                    service of IBM UDDI registry.
                •   https://uddi.ibm.com/testregistry/publishapi: URL for the publish
                    service of IBM UDDI registry.
                •   http://uddi.microsoft.com/inquire: URL for the query service of
                    Microsoft UDDI registry.
                •   https://uddi.microsoft.com/publish: URL for the publish service of
                    Microsoft UDDI registry.
 ©NIIT                            Collaborate                  Lesson 2C / Slide 16 of 18
Collaborate


Challenge
         •    A JAX-RPC Web service end point interface needs to extend the
              ___________ interface.
         •    Select the correct option that shows the command to generate client
              side classes using the wscompile tool:
              •     wscompile –gen:server –d build
              •     wscompile -gen:client -d build config.xml
              •     wscompile –client config.xml
              •     wscompile config.xml –d build –gen:client
         3.   The__________interface of the JAXR API represents a connection
              between the JAXR client and provider.
         4.   Which layer of the Web service protocol stack describes a Web service
              using a public interface?




 ©NIIT                        Collaborate                 Lesson 2C / Slide 17 of 18
Collaborate


Solution

         •   java.rmi.remote
         •   b. wscompile –gen:client –d build config.xml
         •   Connection
         •   Service description layer




 ©NIIT                     Collaborate             Lesson 2C / Slide 18 of 18

More Related Content

What's hot

Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
ukdpe
 
Deawsj 7 ppt-1_a
Deawsj 7 ppt-1_aDeawsj 7 ppt-1_a
Deawsj 7 ppt-1_a
Niit Care
 
Beginning with wcf service
Beginning with wcf serviceBeginning with wcf service
Beginning with wcf service
Binu Bhasuran
 

What's hot (19)

WCF Fundamentals
WCF Fundamentals WCF Fundamentals
WCF Fundamentals
 
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
 
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
 
Wcf
WcfWcf
Wcf
 
Deawsj 7 ppt-1_a
Deawsj 7 ppt-1_aDeawsj 7 ppt-1_a
Deawsj 7 ppt-1_a
 
Windows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best PracticesWindows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best Practices
 
Web Services - WSDL
Web Services - WSDLWeb Services - WSDL
Web Services - WSDL
 
Overview of web services
Overview of web servicesOverview of web services
Overview of web services
 
Beginning with wcf service
Beginning with wcf serviceBeginning with wcf service
Beginning with wcf service
 
Brokered Messaging in Windows Azure
Brokered Messaging in Windows AzureBrokered Messaging in Windows Azure
Brokered Messaging in Windows Azure
 
Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdl
 
Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...Complete Architecture and Development Guide To Windows Communication Foundati...
Complete Architecture and Development Guide To Windows Communication Foundati...
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
 
Web services
Web servicesWeb services
Web services
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
 
Exchange Server 2013 Architecture Deep Dive, Part 1
Exchange Server 2013 Architecture Deep Dive, Part 1Exchange Server 2013 Architecture Deep Dive, Part 1
Exchange Server 2013 Architecture Deep Dive, Part 1
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
OUGF OSGi/Flex
OUGF OSGi/FlexOUGF OSGi/Flex
OUGF OSGi/Flex
 
WCF for begineers
WCF  for begineersWCF  for begineers
WCF for begineers
 

Viewers also liked

15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20
Niit Care
 
11 ds and algorithm session_16
11 ds and algorithm session_1611 ds and algorithm session_16
11 ds and algorithm session_16
Niit Care
 
Vb.net session 09
Vb.net session 09Vb.net session 09
Vb.net session 09
Niit Care
 
09 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_1309 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_13
Niit Care
 
Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01
Niit Care
 
Atividade 3.4 maria josé
Atividade 3.4 maria joséAtividade 3.4 maria josé
Atividade 3.4 maria josé
MARIAZEZINHA
 
Rdbms session 01_a
Rdbms session 01_aRdbms session 01_a
Rdbms session 01_a
Shivam Rai
 
03 rdbms session03
03 rdbms session0303 rdbms session03
03 rdbms session03
Niit Care
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19
Niit Care
 

Viewers also liked (20)

15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20
 
Oops recap
Oops recapOops recap
Oops recap
 
Dacj 2-2 c
Dacj 2-2 cDacj 2-2 c
Dacj 2-2 c
 
 
11 ds and algorithm session_16
11 ds and algorithm session_1611 ds and algorithm session_16
11 ds and algorithm session_16
 
Vb.net session 09
Vb.net session 09Vb.net session 09
Vb.net session 09
 
09 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_1309 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_13
 
OOP Java
OOP JavaOOP Java
OOP Java
 
Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01
 
Rdbms xp 01
Rdbms xp 01Rdbms xp 01
Rdbms xp 01
 
Idocaedro aplicacion
Idocaedro aplicacionIdocaedro aplicacion
Idocaedro aplicacion
 
Atividade 3.4 maria josé
Atividade 3.4 maria joséAtividade 3.4 maria josé
Atividade 3.4 maria josé
 
iDoctorPad e smartClinica - smart apps for clinical workflow
iDoctorPad e smartClinica - smart apps for clinical workflowiDoctorPad e smartClinica - smart apps for clinical workflow
iDoctorPad e smartClinica - smart apps for clinical workflow
 
Cancha
CanchaCancha
Cancha
 
Simple Present
Simple PresentSimple Present
Simple Present
 
Simple Present
Simple PresentSimple Present
Simple Present
 
Rdbms session 01_a
Rdbms session 01_aRdbms session 01_a
Rdbms session 01_a
 
03 rdbms session03
03 rdbms session0303 rdbms session03
03 rdbms session03
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19
 
El universo tiende-al-desorden
El universo tiende-al-desordenEl universo tiende-al-desorden
El universo tiende-al-desorden
 

Similar to Deawsj 7 ppt-2_c

Deawsj 7 ppt-1_b
Deawsj 7 ppt-1_bDeawsj 7 ppt-1_b
Deawsj 7 ppt-1_b
Niit Care
 
Deawsj 7 ppt-1_c
Deawsj 7 ppt-1_cDeawsj 7 ppt-1_c
Deawsj 7 ppt-1_c
Niit Care
 
Deawsj 7 ppt-2_a
Deawsj 7 ppt-2_aDeawsj 7 ppt-2_a
Deawsj 7 ppt-2_a
Niit Care
 
WSO2 Intro Webinar - Scale your business with the cloud enabled WSO2 Applica...
WSO2 Intro Webinar -  Scale your business with the cloud enabled WSO2 Applica...WSO2 Intro Webinar -  Scale your business with the cloud enabled WSO2 Applica...
WSO2 Intro Webinar - Scale your business with the cloud enabled WSO2 Applica...
WSO2
 

Similar to Deawsj 7 ppt-2_c (20)

Deawsj 7 ppt-1_b
Deawsj 7 ppt-1_bDeawsj 7 ppt-1_b
Deawsj 7 ppt-1_b
 
Deawsj 7 ppt-1_c
Deawsj 7 ppt-1_cDeawsj 7 ppt-1_c
Deawsj 7 ppt-1_c
 
Deawsj 7 ppt-2_a
Deawsj 7 ppt-2_aDeawsj 7 ppt-2_a
Deawsj 7 ppt-2_a
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
 
Chapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side TechnologiesChapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side Technologies
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
All About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice FrameworksAll About Microservices and OpenSource Microservice Frameworks
All About Microservices and OpenSource Microservice Frameworks
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
Micro services
Micro servicesMicro services
Micro services
 
Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
 
Servlets api overview
Servlets api overviewServlets api overview
Servlets api overview
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
 
Overview of JEE Technology
Overview of JEE TechnologyOverview of JEE Technology
Overview of JEE Technology
 
Monolithic to Microservices Architecture
Monolithic to Microservices ArchitectureMonolithic to Microservices Architecture
Monolithic to Microservices Architecture
 
WSO2 Intro Webinar - Scale your business with the cloud enabled WSO2 Applica...
WSO2 Intro Webinar -  Scale your business with the cloud enabled WSO2 Applica...WSO2 Intro Webinar -  Scale your business with the cloud enabled WSO2 Applica...
WSO2 Intro Webinar - Scale your business with the cloud enabled WSO2 Applica...
 
Web service, wcf, web api
Web service, wcf, web apiWeb service, wcf, web api
Web service, wcf, web api
 
VB IMPORTANT QUESTION
VB IMPORTANT QUESTIONVB IMPORTANT QUESTION
VB IMPORTANT QUESTION
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Deawsj 7 ppt-2_c

  • 1. Collaborate Knowledge Byte In this section, you will learn about the following: • Java API for XML Registries (JAXR) • The wscompile Tool • Web service security • Quality of Service of Web services ©NIIT Collaborate Lesson 2C / Slide 1 of 18
  • 2. Collaborate Java API for XML Registries (JAXR) • JAXR is an API that you can use in your Java application to access Web service registries. • You can use JAXR to publish Web services and also retrieve information of other published Web services from the registry. • Using JAXR, you can write registry clients that are portable across different target registries. • The JAXR API provides classes and interfaces that enable client applications to interact with various XML-based registries. • To provide a standard registry service, XML-based registries need to conform to registry standards, such as ebXML and UDDI. ©NIIT Collaborate Lesson 2C / Slide 2 of 18
  • 3. Collaborate Java API for XML Registries (JAXR) (Contd.) • The structure of information stored in the UDDI and ebXML registries is different. • As a result, an application written for UDDI registry cannot be used with ebXML registry. • Similarly, an application written for ebXML registry cannot be used with UDDI registry. • The JAXR API provides a common interface that allows Java programs to interact with both the registries. ©NIIT Collaborate Lesson 2C / Slide 3 of 18
  • 4. Collaborate Java API for XML Registries (JAXR) (Contd.) • The following table lists the two packages of JAXR API: Package Description   Consists of interfaces that define object javax.xml.registry.infomodel types that a registry contains and how the object relates to each other. The base interface in this package is the RegistryObject interface that provides minimal metadata for registry objects. The sub interfaces of the RegistryObject  interface are Organization, Service, and ServiceBinding. ©NIIT Collaborate Lesson 2C / Slide 4 of 18
  • 5. Collaborate Java API for XML Registries (JAXR) (Contd.) • The following table lists the two packages of JAXR API (Contd.): Package Description javax.xml.registry Consists of interfaces and a ConnectionFactory class that allows JAXR clients to connect to a registry in order to search Web service information stored in the registry. JAXR clients can also use the javax.xml.registry package to publish information of Web services. ©NIIT Collaborate Lesson 2C / Slide 5 of 18
  • 6. Collaborate The wscompile Tool • The wscompile tool is a command line tool that J2EE Application Server provides to generate the WSDL file of a Web service. • The wscompile tool also generates various helper classes, such as stubs, skeletons, and serializers that a Web service client uses to access a Web service. • The syntax to use wscompile tool is: wscompile <options> <configuration-file> • In the preceding code snippet, configuration-file refers to the XML file that contains information as how the wscompile generates the WSDL file. • The wscompile tool also uses the configuration file to generate runtime classes of the Web service. ©NIIT Collaborate Lesson 2C / Slide 6 of 18
  • 7. Collaborate The wscompile Tool (Contd.) • Following listing shows the various options of wscompile tool: • -classpath <path>: Specifies the path to directories and files that needs to be in the classpath for running the tool. • -d <directory name>: Specifies the directory name in which the tool needs to store generated files. • -gen:client: Specifies that the tool needs to generate client-side helper classes, such as stubs. • -gen:server: Specifies that the tool needs to generate server-side helper classes, such as skeletons and the WSDL file. • -gen:both: Specifies that the tool needs to create both client-side and server-side classes. ©NIIT Collaborate Lesson 2C / Slide 7 of 18
  • 8. Collaborate The wscompile Tool (Contd.) • Following listing shows the various options of wscompile tool (Contd.): • -g: Specifies that the tool needs to provide debugging information. • -s <directory>: Specifies the directory in which the tool needs to store source files. • verbose: Specifies that the tool needs to output messages of its activities. • -version: Specifies that the tool needs to output its version information. ©NIIT Collaborate Lesson 2C / Slide 8 of 18
  • 9. Collaborate Web Services Security • Web services security can be classified into: • Transport-Layer Security • Message-Layer Security ©NIIT Collaborate Lesson 2C / Slide 9 of 18
  • 10. Collaborate Web Services Security (Contd.) • Transport-Layer Security • Web services at transport layer are made secure using the Secure Socket Layer (SSL). • SSL/TLS provides several security features such as authentication, confidentiality, and data security. ©NIIT Collaborate Lesson 2C / Slide 10 of 18
  • 11. Collaborate Web Services Security (Contd.) • Message-Layer Security • The message layer security provides security between the end points that sends and receives messages. • When a transaction takes more than one step to complete, the XML message is routed through many Web servers to complete a transaction. • In such a scenario, the message can be encrypted so that a particular receiver receives it. • When the message travels through intermediate layers before being received by intended receiver, the message remains secure from tampering at any layer. ©NIIT Collaborate Lesson 2C / Slide 11 of 18
  • 12. Collaborate Quality of Service (QOS) of Web Services • With the growing competition in the Web services race, QoS of Web services is a critical issue. • QOS needs to be provided by service providers to remove existing bottlenecks present in Web services. • QOS allows Web services to implement a faster, secure, and reliable mechanism to service clients. ©NIIT Collaborate Lesson 2C / Slide 12 of 18
  • 13. Collaborate Quality of Service (QOS) of Web Services (Contd.) • QOS of a Web service depends on: • Performance: Refers to processing and latency time of a Web service. • Reliability: Refers to the ability of a Web service to maintain its QOS • Integrity: Refers to the ability of a Web service to ensure that Web service data and transactions are securely transported and performed, respectively. • Accessibility: Refers to the ability of a Web service to remain easily accessible with the increase in the size of client volume. • Availability: Refers to the time within a particular time span a Web service is ready and running to service client requests. • Interoperability: Refers to the ability of the Web service to interact with clients and other Web services that are developed using different programming languages. ©NIIT Collaborate Lesson 2C / Slide 13 of 18
  • 14. Collaborate From the Expert’s Desk This section will introduce the following: • FAQs on Web service protocol stack • FAQs on finding public registries. ©NIIT Collaborate Lesson 2C / Slide 14 of 18
  • 15. Collaborate FAQs • What is a Web service protocol stack? • Web service protocol stack • Is a collection of protocols that are used to describe a Web service. • Consists of four layers: • Service Transport Layer: Transports message between Web services and Web service clients. • Service Description Layer: Describes a Web service using a public interface. • Service Discovery Layer: Provides functionalities, such as finding and publishing a Web service. • XML Messaging Layer: Encodes messages in XML format so that messages are readable at both the ends. ©NIIT Collaborate Lesson 2C / Slide 15 of 18
  • 16. Collaborate FAQs (Contd.) • Where can I find public registries to query and publish Web services? • You can also use the Registry Server that comes packaged with the Java Web Service Developer Pack (JWSDP) to publish your Web service. • Registry Server is an implementation of the UDDI version 2 registry and acts as a test registry for Web services development. • Some URLs of publicly available registries are: • http://uddi.ibm.com/testregistry/inquiryapi: URL for the query service of IBM UDDI registry. • https://uddi.ibm.com/testregistry/publishapi: URL for the publish service of IBM UDDI registry. • http://uddi.microsoft.com/inquire: URL for the query service of Microsoft UDDI registry. • https://uddi.microsoft.com/publish: URL for the publish service of Microsoft UDDI registry. ©NIIT Collaborate Lesson 2C / Slide 16 of 18
  • 17. Collaborate Challenge • A JAX-RPC Web service end point interface needs to extend the ___________ interface. • Select the correct option that shows the command to generate client side classes using the wscompile tool: • wscompile –gen:server –d build • wscompile -gen:client -d build config.xml • wscompile –client config.xml • wscompile config.xml –d build –gen:client 3. The__________interface of the JAXR API represents a connection between the JAXR client and provider. 4. Which layer of the Web service protocol stack describes a Web service using a public interface? ©NIIT Collaborate Lesson 2C / Slide 17 of 18
  • 18. Collaborate Solution • java.rmi.remote • b. wscompile –gen:client –d build config.xml • Connection • Service description layer ©NIIT Collaborate Lesson 2C / Slide 18 of 18