SlideShare a Scribd company logo
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

WCF Fundamentals
WCF Fundamentals WCF Fundamentals
WCF Fundamentals
Safaa Farouk
 
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, ...)
DSBW 2011/2002 - Carles Farré - Barcelona Tech
 
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
 
Wcf
WcfWcf
Deawsj 7 ppt-1_a
Deawsj 7 ppt-1_aDeawsj 7 ppt-1_a
Deawsj 7 ppt-1_a
Niit Care
 
Windows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best PracticesWindows Communication Foundation (WCF) Best Practices
Windows Communication Foundation (WCF) Best Practices
Orbit One - We create coherence
 
Web Services - WSDL
Web Services - WSDLWeb Services - WSDL
Web Services - WSDL
Martin Necasky
 
Overview of web services
Overview of web servicesOverview of web services
Overview of web services
People Strategists
 
Beginning with wcf service
Beginning with wcf serviceBeginning with wcf service
Beginning with wcf service
Binu Bhasuran
 
Brokered Messaging in Windows Azure
Brokered Messaging in Windows AzureBrokered Messaging in Windows Azure
Brokered Messaging in Windows Azure
Neil Mackenzie
 
Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdl
princeirfancivil
 
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...
Abdul Khan
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
Betclic Everest Group Tech Team
 
Web services
Web servicesWeb services
Web services
Peter R. Egli
 
Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)Windows Communication Foundation (WCF)
Windows Communication Foundation (WCF)
Peter R. Egli
 
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
Microsoft TechNet - Belgium and Luxembourg
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
Thanachart Numnonda
 
OUGF OSGi/Flex
OUGF OSGi/FlexOUGF OSGi/Flex
OUGF OSGi/Flex
François Fornaciari
 
WCF for begineers
WCF  for begineersWCF  for begineers
WCF for begineers
Dhananjay Kumar
 

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
 
Oops recap
Oops recapOops recap
Oops recap
Niit Care
 
Dacj 2-2 c
Dacj 2-2 cDacj 2-2 c
Dacj 2-2 c
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
 
OOP Java
OOP JavaOOP Java
OOP Java
Saif Kassim
 
Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01
Niit Care
 
Rdbms xp 01
Rdbms xp 01Rdbms xp 01
Rdbms xp 01
Niit Care
 
Idocaedro aplicacion
Idocaedro aplicacionIdocaedro aplicacion
Idocaedro aplicacion
Genesis RoOman
 
Atividade 3.4 maria josé
Atividade 3.4 maria joséAtividade 3.4 maria josé
Atividade 3.4 maria josé
MARIAZEZINHA
 
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
Davide Gazzotti
 
Simple Present
Simple PresentSimple Present
Simple Present
migumitifani
 
Simple Present
Simple PresentSimple Present
Simple Present
migumitifani
 
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
 
El universo tiende-al-desorden
El universo tiende-al-desordenEl universo tiende-al-desorden
El universo tiende-al-desorden
marjorie tipan
 

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
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
Mallikarjuna G D
 
Chapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side TechnologiesChapter 12:Understanding Server-Side Technologies
Chapter 12:Understanding Server-Side Technologies
It Academy
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
Mallikarjuna G D
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
karthiksmart21
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
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
Mohammad Asif Siddiqui
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
Abhi Arya
 
Micro services
Micro servicesMicro services
Micro services
Brian Perera
 
Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7Azure realtime-interview questions - part 7
Azure realtime-interview questions - part 7
Malleswar Reddy
 
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
Amazon Web Services Korea
 
Servlets api overview
Servlets api overviewServlets api overview
Servlets api overview
ramya marichamy
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
Gera Paulos
 
Overview of JEE Technology
Overview of JEE TechnologyOverview of JEE Technology
Overview of JEE Technology
People Strategists
 
Monolithic to Microservices Architecture
Monolithic to Microservices ArchitectureMonolithic to Microservices Architecture
Monolithic to Microservices Architecture
Vin Dahake
 
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
 
Web service, wcf, web api
Web service, wcf, web apiWeb service, wcf, web api
Web service, wcf, web api
AbdeliDhankot
 
VB IMPORTANT QUESTION
VB IMPORTANT QUESTIONVB IMPORTANT QUESTION
VB IMPORTANT QUESTION
FAREED UR RAHMAN .
 

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

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

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

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 

Recently uploaded (20)

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 

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