{
log.debug("unbindRequestMessage: " + opMetaData.getQName());
try
{
// Construct the endpoint invocation object
EndpointInvocation epInv = new EndpointInvocation(opMetaData);
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
if (msgContext == null)
throw new WSException("MessageContext not available");
ParameterMetaData paramMetaData = opMetaData.getParameters().get(0);
QName xmlName = paramMetaData.getXmlName();
SOAPMessage reqMessage = (SOAPMessage)payload;
SOAPBodyImpl body = (SOAPBodyImpl)reqMessage.getSOAPBody();
SOAPContentElement bodyElement = (SOAPContentElement)body.getBodyElement();
Source source = bodyElement.getXMLFragment().getSource();
if (source == null)
throw new IllegalStateException("Payload cannot be null");
epInv.setRequestParamValue(xmlName, source);
return epInv;
}
catch (Exception e)
{