FileDocCategorySizeDatePackage
JAXRPCClientTransport.javaAPI DocGlassfish v2 API4309Fri May 04 22:30:26 BST 2007com.sun.enterprise.jbi.serviceengine.bridge.transport

JAXRPCClientTransport

public class JAXRPCClientTransport extends Object implements com.sun.xml.rpc.client.ClientTransport
author
Manisha Umbarje

Fields Summary
private javax.jbi.messaging.DeliveryChannel
channel
private com.sun.enterprise.deployment.ServiceRefPortInfo
portInfo
Constructors Summary
public JAXRPCClientTransport()

        channel = JavaEEServiceEngineContext.getInstance().getDeliveryChannel();
    
Methods Summary
public voidinvoke(java.lang.String endpoint, com.sun.xml.rpc.soap.message.SOAPMessageContext soapMsgContext)


	try {
            
            MessageExchangeHelper meHelper = new MessageExchangeHelper();
            meHelper.initializeMessageExchange(portInfo,false);
            meHelper.normalizeMessage(soapMsgContext.getMessage(), true);
            meHelper.dispatchMessage();
            SOAPMessage responseMessage = meHelper.denormalizeMessage(false);
            soapMsgContext.setMessage(responseMessage);
	}
	catch ( Exception e ) {
	    throw new TransportFailedException(e.getMessage());
	}
	
    
public voidinvokeOneWay(java.lang.String endpoint, com.sun.xml.rpc.soap.message.SOAPMessageContext context)

        invoke(endpoint, context);
    
public voidsetServicePortInfo(com.sun.enterprise.deployment.ServiceRefPortInfo portInfo)

        this.portInfo = portInfo;