Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit a9f2f3e

Browse files
authored
Merge pull request #90 from javaee/revert-82-jon_branch
Revert "Removed JAX-WS chapters."
2 parents 9642539 + e9bc4b8 commit a9f2f3e

14 files changed

+947
-7
lines changed

src/main/jbake/content/ejb-basicexamples004.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ A Web Service Example: helloservice
1515

1616
This example demonstrates a simple web service that generates a response
1717
based on information received from the client. `HelloServiceBean` is a
18-
stateless session bean that implements a single method: `sayHello`.
18+
stateless session bean that implements a single method: `sayHello`. This
19+
method matches the `sayHello` method invoked by the client described in
20+
link:jaxws002.html#BNAYX[A Simple JAX-WS Application Client].
1921

2022
The following topics are addressed here:
2123

@@ -45,7 +47,9 @@ not be declared `static` or `final`.
4547
* Business methods that are exposed to web service clients must be
4648
annotated with `javax.jws.WebMethod`.
4749
* Business methods that are exposed to web service clients must have
48-
JAXB-compatible parameters and return types.
50+
JAXB-compatible parameters and return types. See the list of JAXB
51+
default data type bindings at link:jaxws003.html#BNAZC[Types Supported by
52+
JAX-WS].
4953
* The implementing class must not be declared `final` and must not be
5054
`abstract`.
5155
* The implementing class must have a default public constructor.
@@ -201,3 +205,5 @@ Methods, enter a name as the parameter to the `sayHello` method.
201205
+
202206
The sayHello Method invocation page opens. Under Method returned, you'll
203207
see the response from the endpoint.
208+
209+

src/main/jbake/content/ejb-intro004.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ Web Service Clients
383383
~~~~~~~~~~~~~~~~~~~
384384

385385
A web service client can access a Java EE application in two ways.
386-
First, the client can access a web service created with JAX-WS. Second, a web service client can
386+
First, the client can access a web service created with JAX-WS. (For
387+
more information on JAX-WS, see link:jaxws.html#BNAYL[Chapter 29,
388+
"Building Web Services with JAX-WS"].) Second, a web service client can
387389
invoke the business methods of a stateless session bean. Message beans
388390
cannot be accessed by web service clients.
389391

@@ -448,3 +450,5 @@ parameters in remote methods should be relatively coarse-grained. A
448450
coarse-grained object contains more data than a fine-grained one, so
449451
fewer access calls are required. For the same reason, the parameters of
450452
the methods called by web service clients should also be coarse-grained.
453+
454+

src/main/jbake/content/jaxrs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ type=page
22
status=published
33
title=Building RESTful Web Services with JAX-RS
44
next=jaxrs001.html
5-
prev=webservices-intro003.html
5+
prev=jaxws005.html
66
~~~~~~
77
Building RESTful Web Services with JAX-RS
88
=========================================

src/main/jbake/content/jaxws.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
type=page
2+
status=published
3+
title=Building Web Services with JAX-WS
4+
next=jaxws001.html
5+
prev=webservices-intro003.html
6+
~~~~~~
7+
Building Web Services with JAX-WS
8+
=================================
9+
10+
[[BNAYL]]
11+
12+
[[building-web-services-with-jax-ws]]
13+
29 Building Web Services with JAX-WS
14+
------------------------------------
15+
16+
17+
This chapter describes Java API for XML Web Services (JAX-WS), a
18+
technology for building web services and clients that communicate using
19+
XML. JAX-WS allows developers to write message-oriented as well as
20+
Remote Procedure Call–oriented (RPC-oriented) web services.
21+
22+
The following topics are addressed here:
23+
24+
* link:jaxws001.html#A1250966[Overview of Java API for XML Web Services]
25+
* link:jaxws002.html#BNAYN[Creating a Simple Web Service and Clients with
26+
JAX-WS]
27+
* link:jaxws003.html#BNAZC[Types Supported by JAX-WS]
28+
* link:jaxws004.html#BNAZD[Web Services Interoperability and JAX-WS]
29+
* link:jaxws005.html#BNAZE[Further Information about JAX-WS]
30+
31+

src/main/jbake/content/jaxws001.adoc

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
type=page
2+
status=published
3+
title=Overview of Java API for XML Web Services
4+
next=jaxws002.html
5+
prev=jaxws.html
6+
~~~~~~
7+
Overview of Java API for XML Web Services
8+
=========================================
9+
10+
[[A1250966]]
11+
12+
[[overview-of-java-api-for-xml-web-services]]
13+
Overview of Java API for XML Web Services
14+
-----------------------------------------
15+
16+
In JAX-WS, a web service operation invocation is represented by an
17+
XML-based protocol, such as SOAP. The SOAP specification defines the
18+
envelope structure, encoding rules, and conventions for representing web
19+
service invocations and responses. These calls and responses are
20+
transmitted as SOAP messages (XML files) over HTTP.
21+
22+
Although SOAP messages are complex, the JAX-WS API hides this complexity
23+
from the application developer. On the server side, the developer
24+
specifies the web service operations by defining methods in an interface
25+
written in the Java programming language. The developer also codes one
26+
or more classes that implement those methods. Client programs are also
27+
easy to code. A client creates a proxy (a local object representing the
28+
service) and then simply invokes methods on the proxy. With JAX-WS, the
29+
developer does not generate or parse SOAP messages. It is the JAX-WS
30+
runtime system that converts the API calls and responses to and from
31+
SOAP messages.
32+
33+
With JAX-WS, clients and web services have a big advantage: the platform
34+
independence of the Java programming language. In addition, JAX-WS is
35+
not restrictive: A JAX-WS client can access a web service that is not
36+
running on the Java platform and vice versa. This flexibility is
37+
possible because JAX-WS uses technologies defined by the W3C: HTTP,
38+
SOAP, and WSDL. WSDL specifies an XML format for describing a service as
39+
a set of endpoints operating on messages.
40+
41+
42+
[width="100%",cols="100%",]
43+
|=======================================================================
44+
a|
45+
Note:
46+
47+
Several files in the JAX-WS examples depend on the port that you
48+
specified when you installed GlassFish Server. These tutorial examples
49+
assume that the server runs on the default port, 8080. They do not run
50+
with a nondefault port setting.
51+
52+
|=======================================================================
53+
54+
55+

0 commit comments

Comments
 (0)