O'Reilly logo

Java™ Web Services Unleashed by Mark Wutka, Joseph Weber, Arthur Ryman, K. Scott Morrison, Benoît Marchal, Matthias Kloppmann, Steven Haines, Darren Govoni, Francisco Curbera, Frank Cohen, Robert Brunner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Mapping

JAX-RPC fills in two holes in the SOAP specification:

  • It defines a standard Java mapping for the SOAP encoding.

  • It tries to shield the Java developer from the specifics of XML coding.

A Standard Java Mapping

The SOAP encoding specifies how to write, in XML, data types commonly found in programming languages: simple types (strings, numbers, Booleans, and more), as well as compound types (structs and arrays). What it does not specify, however, is the Java equivalent.

The same holds true for WSDL. It uses XML schemas to specify XML structures as input or output of operations, but it does not specify how to map those structures to Java (or any other programming language) objects.

Although it's obvious that a java.lang.String in Java should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required