public interface Databinding
Databinding
is the entry point for all the WebService Databinding
functionality. Primarily, a Databinding is to serialize/deserialize an
XML(SOAP) message to/from a JAVA method invocation and return which are
represented as JavaCallInfo
instances. A WSDLGenerator can
be created from a Databinding object to genreate WSDL representation of
a JAVA service endpoint interface.
The supported databinding modes(flavors) are:
Following is an example that creates aDatabinding
which provides the operations to serialize/deserialize a JavaCallInfo to/from a SOAP message:
DatabindingFactory factory = DatabindingFactory.newInstance(); Databinding.Builder builder = factory.createBuilder(seiClass, endpointClass); Databinding databinding = builder.build();
DatabindingFactory
Modifier and Type | Interface and Description |
---|---|
static interface |
Databinding.Builder
Databinding.Builder , created from the DatabindingFactory, is used to
configure how a Databinding instance is to be built from this builder. |
Modifier and Type | Method and Description |
---|---|
JavaCallInfo |
createJavaCallInfo(Method method,
Object[] args)
Creates a new instance of a
JavaCallInfo . |
JavaCallInfo |
deserializeRequest(MessageContext message)
Deserializes a request XML(SOAP) message to a JavaCallInfo instance
representing a JAVA method call.
|
JavaCallInfo |
deserializeResponse(MessageContext message,
JavaCallInfo call)
Deserializes a response XML(SOAP) message to a JavaCallInfo instance
representing the return value or exception of a JAVA method call.
|
MessageContext |
serializeRequest(JavaCallInfo call)
Serializes a JavaCallInfo instance representing a JAVA method call to a
request XML(SOAP) message.
|
MessageContext |
serializeResponse(JavaCallInfo call)
Serializes a JavaCallInfo instance representing the return value or
exception of a JAVA method call to a response XML(SOAP) message.
|
JavaCallInfo createJavaCallInfo(Method method, Object[] args)
JavaCallInfo
.method
- The JAVA methodargs
- The parameter objectsJavaCallInfo
MessageContext serializeRequest(JavaCallInfo call)
call
- The JavaCallInfo representing a method callJavaCallInfo deserializeResponse(MessageContext message, JavaCallInfo call)
message
- The response messagecall
- The JavaCallInfo instance to be updatedJavaCallInfo deserializeRequest(MessageContext message)
message
- The request messageMessageContext serializeResponse(JavaCallInfo call)
call
- The JavaCallInfo representing the return value or exception
of a JAVA method callCopyright © 2015 Oracle Corporation. All rights reserved.