com.sun.xml.ws.api.databinding
Interface Databinding

All Superinterfaces:
org.jvnet.ws.databinding.Databinding

public interface Databinding
extends org.jvnet.ws.databinding.Databinding

Databinding is the entry point for all the WebService databinding runtime functionality. Primarily, a Databinding is to serialize/deserialize an XML(SOAP) message to/from a JAVA method invocation and return value which are represented as JavaCallInfo instances.

Each Databinding is associated with a MessageFactory instance which can be used to create Message instances that can be deserialized by the Databinding. The MessageFactory also supports the conversion of Oracle Fabric Normalized messages.

Following is an example that creates a Databinding which provides the operations to serialize/deserialize a JavaCallInfo to/from a SOAP message:
 DatabindingFactory wsfac = DatabindingFactory();
 Databinding rt = wsfac.createDatabinding(DatabindingConfig);
 


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jvnet.ws.databinding.Databinding
org.jvnet.ws.databinding.Databinding.Builder, org.jvnet.ws.databinding.Databinding.WSDLGenerator
 
Method Summary
 void decode(InputStream in, String ct, Packet packet)
          Deprecated. use MessageContextFactory
 ContentType encode(Packet packet, OutputStream out)
          Deprecated. use MessageContextFactory
 void generateWSDL(WSDLGenInfo info)
          Gets the WebServiceFeatures of this webservice endpoint.
 ClientCallBridge getClientBridge(Method method)
           
 EndpointCallBridge getEndpointBridge(Packet soap)
          Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.
 MessageContextFactory getMessageContextFactory()
           
 
Methods inherited from interface org.jvnet.ws.databinding.Databinding
createJavaCallInfo, deserializeRequest, deserializeResponse, serializeRequest, serializeResponse
 

Method Detail

getEndpointBridge

EndpointCallBridge getEndpointBridge(Packet soap)
                                     throws DispatchException
Deserializes a request XML(SOAP) message to a JavaCallInfo instance representing a JAVA method call.

Parameters:
soap - the request message
Returns:
the JavaCallInfo representing a method call
Throws:
DispatchException

getClientBridge

ClientCallBridge getClientBridge(Method method)

generateWSDL

void generateWSDL(WSDLGenInfo info)
Gets the WebServiceFeatures of this webservice endpoint.


encode

ContentType encode(Packet packet,
                   OutputStream out)
                   throws IOException
Deprecated. use MessageContextFactory

Throws:
IOException

decode

void decode(InputStream in,
            String ct,
            Packet packet)
            throws IOException
Deprecated. use MessageContextFactory

Throws:
IOException

getMessageContextFactory

MessageContextFactory getMessageContextFactory()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.