Web Services: JAX-RPC, WSDL, XML Schema, and Soap: CSI 3140 WWW Structures, Techniques and Standards
Web Services: JAX-RPC, WSDL, XML Schema, and Soap: CSI 3140 WWW Structures, Techniques and Standards
Web Services:
JAX-RPC, WSDL, XML Schema, and
SOAP
Web Services Concepts
Server
Client (Java servlet)
HTTP response (SOAP body)
Input parameter
Input parameter values
names
Return
value
PortionsInput
params
of NWS Data types
defined using
WSDL XML Schema
Return
type
Operation name
Example implementation
fromYen
Namespaces
used in
WSDL
(normally,
unique URL’s
at your
Web site)
Like
servlet
in
web.xml
Like
servlet-mapping
in
web.xml
Testing success:
Visit http://localhost:8080/converter/currency
Call to getEuros()
Namespaces
specified in
config files
WSDL
namespaces XML Schema NS
Defines struct
using XML
Schema
Output
Input messages
messages (response
(parameter data types)
lists)
Replaced by server
when WSDL is visited
Summary:
types uses XML Schema to define data types
message elements define parameter lists and
return types using types and XML Schema
portType defines abstract API for operation’s
using message’s
binding specifies how message’s will be
communicated and operation’s called
service associates URL with binding
Built-in types all have facets, that is, aspects that can
be restricted
enumeration is a facet that applies to all built-in types
except boolean
length, minLength, maxLength apply to string-like
types (e.g., string, QName, anyURI)
minInclusive, maxInclusive, minExclusive,
maxExclusive apply to numeric and time-oriented types
totalDigits, fractionDigits apply to numeric types
pattern facet
applies to most types (except a few DTD)
specifies regular expression
Complex type
Defined in an XML schema
Instance namespace
Alternate form