com.sun.xml.ws.api.databinding.Databinding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.api.databinding;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Method;
import com.sun.xml.ws.api.message.MessageContextFactory;
import com.sun.xml.ws.api.message.Packet;
import com.sun.xml.ws.api.pipe.ContentType;
import com.sun.xml.ws.wsdl.DispatchException;
/**
* {@code 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 {@code Databinding} which
* provides the operations to serialize/deserialize a JavaCallInfo to/from a
* SOAP message:
*
*
* DatabindingFactory wsfac = DatabindingFactory();
* Databinding rt = wsfac.createDatabinding(DatabindingConfig);
*
*
*
*
* @author [email protected]
*/
public interface Databinding extends com.oracle.webservices.api.databinding.Databinding {
/**
* Gets the MessageFactory instance associated with this WsRuntime
*
* @return the MessageFactory instance associated with this WsRuntime
*/
// MessageFactory getMessageFactory();
/**
* Deserializes a request XML(SOAP) message to a JavaCallInfo instance
* representing a JAVA method call.
*
* @param soap
* the request message
*
* @return the JavaCallInfo representing a method call
*/
// JavaCallInfo deserializeRequest(Packet req);
EndpointCallBridge getEndpointBridge(Packet soap) throws DispatchException;
ClientCallBridge getClientBridge(Method method);
/**
* Serializes a JavaCallInfo instance representing a JAVA method call to a
* request XML(SOAP) message.
*
* @param call
* the JavaCallInfo representing a method call
*
* @return the request XML(SOAP) message
*/
// Packet serializeRequest(JavaCallInfo call);
/**
* Serializes a JavaCallInfo instance representing the return value or
* exception of a JAVA method call to a response XML(SOAP) message.
*
* @param call
* the JavaCallInfo representing the return value or exception of
* a JAVA method call
*
* @return the response XML(SOAP) message
*/
// Packet serializeResponse(JavaCallInfo call);
/**
* Deserializes a response XML(SOAP) message to a JavaCallInfo instance
* representing the return value or exception of a JAVA method call.
*
* @param soap
* the response message
*
* @param call
* the JavaCallInfo instance to be updated
*
* @return the JavaCallInfo updated with the return value or exception of a
* JAVA method call
*/
// JavaCallInfo deserializeResponse(Packet res, JavaCallInfo call);
/**
* Gets the WSDL operation metadata of the specified JAVA method.
*
* @param method
* the JAVA method
* @return the operationMetadata
*/
// OperationMetadata getOperationMetadata(java.lang.reflect.Method method);
/**
* Gets the WebServiceFeatures of this webservice endpoint.
*
* @return the features
*/
// WebServiceFeature[] getFeatures();
void generateWSDL(WSDLGenInfo info);
/**
* @deprecated use MessageContextFactory
*/
public ContentType encode( Packet packet, OutputStream out ) throws IOException ;
/**
* @deprecated use MessageContextFactory
*/
public void decode( InputStream in, String ct, Packet packet ) throws IOException;
public MessageContextFactory getMessageContextFactory();
}