throw new WSException("MessageContext not available");
// Associate current message with message context
MessageFactoryImpl factory = new MessageFactoryImpl();
factory.setEnvNamespace(Constants.NS_SOAP11_ENV);
SOAPMessageImpl resMessage = (SOAPMessageImpl)factory.createMessage();
msgContext.setSOAPMessage(resMessage);
ParameterMetaData retParameter = opMetaData.getReturnParameter();
QName xmlName = retParameter.getXmlName();
SOAPBodyImpl soapBody = (SOAPBodyImpl)resMessage.getSOAPBody();