SlideShare a Scribd company logo
3
Most read
4
Most read
7
Most read
Service Oriented Architecture: 12
JAX-WS-XML
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharshi Dayanand Saraswati University Ajmer
JAX-WS - XML
• The Java API for XML Web Services (JAX-WS) is a
highlevel API for consuming and providing web
services.
• JAX-WS replaces the older JAX-RPC API.
• JAX-WS doesn’t require you to know very much
about XML or WSDL. The entire XML layer is
hidden from developers, who can instead just
work with objects generated by web services
tools that come with Java SE 6 and EE 5 onwards.
JAX WS objects
• These objects encapsulate all of the work of
creating SOAP messages, invoking the service,
and parsing responses, hiding significant
complexity from developers.
• Originated to address the need of a binding
language to convert (marshal) from Java to
XML and back again.
What is JAX-WS?
• JAX-WS is the core Java web service technology
(standard for Java EE):
• JAX-WS is the standard programming model /
API for WS on Java (JAX-WS became a standard
part of Java as of version 1.6).
• JAX-WS is platform independent (many Java
platforms like Glassfish, Axis2 or CXF support
JAX-WS).
• Services developed on one platform can be
easily ported to another platform.
• JAX-WS makes use of annotations like
@WebService. This provides better scalability (no
central deployment descriptor for different WS
classes is required).
• JAX-WS uses the POJO concept (use of plain Java
classes to define web service interfaces).
• JAX-WS replaces / supersedes JAX-RPC (= old Java
web services, basically RMI over web service). JAX-WS
is more document orientiented instead of RPC-
oriented.
• Glassfish is the JAX-WS reference implementation
Glassfish = Reference implementation
for JAX-WS
• Glassfish: Java EE reference implementation (RI), reference Java
application server.
• Metro: WS stack as part of Glassfish (consists of JAX-WS and WSIT
components).
• JAXB: Data binding (bind objects to XML documents or
fragments).
• SAAJ: SOAP with Attachments API for Java.
• JAX-WS: Java core web service stack.
• WSIT: Web Services Interoperability Technologies (enables interop
with .Net).
• JAXR: Java API for XML Registries (WS registry).
• StaX: Streaming API for XML.
Three Approaches
• There are three different ways to approach developing
applications with JAX-WS:
• The WSDL to Java approach Point to a WSDL and use
tools such as wsimport to generate portable web
service artifacts.
• The Java to WSDL approach Create a Service Endpoint
Interface as Java source files. Use them as inputs to
generate the WSDL and other required portable
artifacts.
• The Start from Java and WSDL approach This can be a
smart way of working. Write Java classes and let wsgen
create WSDL and schema for you.
POJO / Java bean as web service class
• Web services through simple annotations:
• The programming model of JAX-WS relies on
simple annotations.
• This allows to turn existing business classes
(POJOs) into web services with very little effort.
• Web service endpoints are either explicit or
implicit, depending on the definition or absence
of a Java interface that defines the web service
interface
• Implicit SEI (Service Endpoint Interface):
• Service does not have an explicit service
interface, i.e. the class itself is the service
interface.
• The service bean has an associated service
endpoint interface (reference to interface).
POJO Explicit SEI:
• public interface IHello
• // Explicit endpoint interface //
• {
• @WebMethod
• public String sayHello() {...}
• }
• @WebService(endpointInterface=IHello)
• // Reference to explicit service endpoint interface //
• public class HelloWorld
• {
• public String sayHello() {...}
• }
Assignment
• Describe the Java API for XML based web
services.
• Thank You

More Related Content

PPTX
Ntg web services
PPT
Project First presentation about introduction to technologies to be used
PPT
Cetpa dotnet taining
PPTX
11g boot camp weblogic and adf
PPTX
PPT
Oracle developer Course in Jordan دورة اوراكل في الاردن
PPTX
Ntg web services
Project First presentation about introduction to technologies to be used
Cetpa dotnet taining
11g boot camp weblogic and adf
Oracle developer Course in Jordan دورة اوراكل في الاردن

What's hot (20)

PPTX
Drop acid
PDF
Semantic role labeling
PPTX
Dotnet- An overview of ASP.NET & ADO.NET- Mazenet solution
PPTX
Latest Advance Animated Ado.Net With JDBC
PPT
Data programing
PPT
Java database connectivity
PDF
ITB2016 - NoSQL with mongodb and ColdFusion (CFML)
PPTX
Women Who Code, Ground Floor
PDF
[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina
PPTX
Devjyotippt
PPT
Performance dreams of sql server 2014
PDF
[WSO2Con EU 2017] Introduction to Ballerina
KEY
Using NoSQL MongoDB with ColdFusion
PPTX
Scalable java script applications
PPT
PPT with Flash ry
PDF
Java unit 14
PPTX
Building Org Charts Using Cascade Server
PPT
A Semantic Wiki Based Light-Weight Web Application Model
PPTX
Introduction to SalesForce
Drop acid
Semantic role labeling
Dotnet- An overview of ASP.NET & ADO.NET- Mazenet solution
Latest Advance Animated Ado.Net With JDBC
Data programing
Java database connectivity
ITB2016 - NoSQL with mongodb and ColdFusion (CFML)
Women Who Code, Ground Floor
[WSO2Con EU 2017] Manipulating XML, JSON and SQL Data Types with Ballerina
Devjyotippt
Performance dreams of sql server 2014
[WSO2Con EU 2017] Introduction to Ballerina
Using NoSQL MongoDB with ColdFusion
Scalable java script applications
PPT with Flash ry
Java unit 14
Building Org Charts Using Cascade Server
A Semantic Wiki Based Light-Weight Web Application Model
Introduction to SalesForce
Ad

Similar to Soa 12 jax ws-xml Java API for web services (20)

PDF
Java API for XML Web Services (JAX-WS)
PPTX
Jax ws
 
PPTX
Java Web services
PDF
Web Services Training in Noida
PPT
Reusing Existing Java EE Applications from SOA Suite 11g
PPT
Web services, the ws stack, and research prospects a survey
PPTX
Java Web services
PPTX
Web Services
PDF
Java web services using JAX-WS
PDF
Java Web Services [4/5]: Java API for XML Web Services
PPT
15376199.ppt
PDF
Lecture 7 Web Services JAX-WS & JAX-RS
PDF
Metro Web Services
PPTX
Soa 30 jax ws client side development
ODP
Interoperable Web Services with JAX-WS and WSIT
DOCX
Web services Concepts
PDF
Building Web Services With Java Making Sense Of Xml Soap Wsdl And Uddi 2nd Ed...
PPSX
Welcome to Web Services
Java API for XML Web Services (JAX-WS)
Jax ws
 
Java Web services
Web Services Training in Noida
Reusing Existing Java EE Applications from SOA Suite 11g
Web services, the ws stack, and research prospects a survey
Java Web services
Web Services
Java web services using JAX-WS
Java Web Services [4/5]: Java API for XML Web Services
15376199.ppt
Lecture 7 Web Services JAX-WS & JAX-RS
Metro Web Services
Soa 30 jax ws client side development
Interoperable Web Services with JAX-WS and WSIT
Web services Concepts
Building Web Services With Java Making Sense Of Xml Soap Wsdl And Uddi 2nd Ed...
Welcome to Web Services
Ad

More from Vaibhav Khanna (20)

PPTX
Information and network security 47 authentication applications
PPTX
Information and network security 46 digital signature algorithm
PPTX
Information and network security 45 digital signature standard
PPTX
Information and network security 44 direct digital signatures
PPTX
Information and network security 43 digital signatures
PPTX
Information and network security 42 security of message authentication code
PPTX
Information and network security 41 message authentication code
PPTX
Information and network security 40 sha3 secure hash algorithm
PPTX
Information and network security 39 secure hash algorithm
PPTX
Information and network security 38 birthday attacks and security of hash fun...
PPTX
Information and network security 37 hash functions and message authentication
PPTX
Information and network security 35 the chinese remainder theorem
PPTX
Information and network security 34 primality
PPTX
Information and network security 33 rsa algorithm
PPTX
Information and network security 32 principles of public key cryptosystems
PPTX
Information and network security 31 public key cryptography
PPTX
Information and network security 30 random numbers
PPTX
Information and network security 29 international data encryption algorithm
PPTX
Information and network security 28 blowfish
PPTX
Information and network security 27 triple des
Information and network security 47 authentication applications
Information and network security 46 digital signature algorithm
Information and network security 45 digital signature standard
Information and network security 44 direct digital signatures
Information and network security 43 digital signatures
Information and network security 42 security of message authentication code
Information and network security 41 message authentication code
Information and network security 40 sha3 secure hash algorithm
Information and network security 39 secure hash algorithm
Information and network security 38 birthday attacks and security of hash fun...
Information and network security 37 hash functions and message authentication
Information and network security 35 the chinese remainder theorem
Information and network security 34 primality
Information and network security 33 rsa algorithm
Information and network security 32 principles of public key cryptosystems
Information and network security 31 public key cryptography
Information and network security 30 random numbers
Information and network security 29 international data encryption algorithm
Information and network security 28 blowfish
Information and network security 27 triple des

Recently uploaded (20)

PPTX
Introduction to Artificial Intelligence
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Digital Strategies for Manufacturing Companies
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Nekopoi APK 2025 free lastest update
PDF
top salesforce developer skills in 2025.pdf
PPT
Introduction Database Management System for Course Database
PPTX
assetexplorer- product-overview - presentation
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
history of c programming in notes for students .pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Transform Your Business with a Software ERP System
PPTX
L1 - Introduction to python Backend.pptx
Introduction to Artificial Intelligence
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Digital Strategies for Manufacturing Companies
Operating system designcfffgfgggggggvggggggggg
Nekopoi APK 2025 free lastest update
top salesforce developer skills in 2025.pdf
Introduction Database Management System for Course Database
assetexplorer- product-overview - presentation
2025 Textile ERP Trends: SAP, Odoo & Oracle
history of c programming in notes for students .pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ai tools demonstartion for schools and inter college
Upgrade and Innovation Strategies for SAP ERP Customers
Design an Analysis of Algorithms II-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Design an Analysis of Algorithms I-SECS-1021-03
Digital Systems & Binary Numbers (comprehensive )
Transform Your Business with a Software ERP System
L1 - Introduction to python Backend.pptx

Soa 12 jax ws-xml Java API for web services

  • 1. Service Oriented Architecture: 12 JAX-WS-XML Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharshi Dayanand Saraswati University Ajmer
  • 2. JAX-WS - XML • The Java API for XML Web Services (JAX-WS) is a highlevel API for consuming and providing web services. • JAX-WS replaces the older JAX-RPC API. • JAX-WS doesn’t require you to know very much about XML or WSDL. The entire XML layer is hidden from developers, who can instead just work with objects generated by web services tools that come with Java SE 6 and EE 5 onwards.
  • 3. JAX WS objects • These objects encapsulate all of the work of creating SOAP messages, invoking the service, and parsing responses, hiding significant complexity from developers. • Originated to address the need of a binding language to convert (marshal) from Java to XML and back again.
  • 4. What is JAX-WS? • JAX-WS is the core Java web service technology (standard for Java EE): • JAX-WS is the standard programming model / API for WS on Java (JAX-WS became a standard part of Java as of version 1.6). • JAX-WS is platform independent (many Java platforms like Glassfish, Axis2 or CXF support JAX-WS). • Services developed on one platform can be easily ported to another platform.
  • 5. • JAX-WS makes use of annotations like @WebService. This provides better scalability (no central deployment descriptor for different WS classes is required). • JAX-WS uses the POJO concept (use of plain Java classes to define web service interfaces). • JAX-WS replaces / supersedes JAX-RPC (= old Java web services, basically RMI over web service). JAX-WS is more document orientiented instead of RPC- oriented. • Glassfish is the JAX-WS reference implementation
  • 6. Glassfish = Reference implementation for JAX-WS • Glassfish: Java EE reference implementation (RI), reference Java application server. • Metro: WS stack as part of Glassfish (consists of JAX-WS and WSIT components). • JAXB: Data binding (bind objects to XML documents or fragments). • SAAJ: SOAP with Attachments API for Java. • JAX-WS: Java core web service stack. • WSIT: Web Services Interoperability Technologies (enables interop with .Net). • JAXR: Java API for XML Registries (WS registry). • StaX: Streaming API for XML.
  • 7. Three Approaches • There are three different ways to approach developing applications with JAX-WS: • The WSDL to Java approach Point to a WSDL and use tools such as wsimport to generate portable web service artifacts. • The Java to WSDL approach Create a Service Endpoint Interface as Java source files. Use them as inputs to generate the WSDL and other required portable artifacts. • The Start from Java and WSDL approach This can be a smart way of working. Write Java classes and let wsgen create WSDL and schema for you.
  • 8. POJO / Java bean as web service class • Web services through simple annotations: • The programming model of JAX-WS relies on simple annotations. • This allows to turn existing business classes (POJOs) into web services with very little effort. • Web service endpoints are either explicit or implicit, depending on the definition or absence of a Java interface that defines the web service interface
  • 9. • Implicit SEI (Service Endpoint Interface): • Service does not have an explicit service interface, i.e. the class itself is the service interface. • The service bean has an associated service endpoint interface (reference to interface).
  • 10. POJO Explicit SEI: • public interface IHello • // Explicit endpoint interface // • { • @WebMethod • public String sayHello() {...} • } • @WebService(endpointInterface=IHello) • // Reference to explicit service endpoint interface // • public class HelloWorld • { • public String sayHello() {...} • }
  • 11. Assignment • Describe the Java API for XML based web services. • Thank You