private static QName getWrapperQName(MessageContext msgContext) { QName wrapperQName = BaseConstants.DEFAULT_TEXT_WRAPPER; if (msgContext.getAxisService() != null) { Parameter wrapperParam = msgContext.getAxisService().getParameter(BaseConstants.WRAPPER_PARAM); if (wrapperParam != null) { wrapperQName = BaseUtils.getQNameFromString(wrapperParam.getValue()); } } return wrapperQName; }
private static QName getWrapperQName(MessageContext msgContext) { QName wrapperQName = BaseConstants.DEFAULT_TEXT_WRAPPER; if (msgContext.getAxisService() != null) { Parameter wrapperParam = msgContext.getAxisService().getParameter(BaseConstants.WRAPPER_PARAM); if (wrapperParam != null) { wrapperQName = BaseUtils.getQNameFromString(wrapperParam.getValue()); } } return wrapperQName; }
public OMElement processDocument(DataSource dataSource, String contentType, MessageContext msgContext) throws AxisFault { QName wrapperQName = BaseConstants.DEFAULT_BINARY_WRAPPER; if (msgContext.getAxisService() != null) { Parameter wrapperParam = msgContext.getAxisService().getParameter(BaseConstants.WRAPPER_PARAM); if (wrapperParam != null) { wrapperQName = BaseUtils.getQNameFromString(wrapperParam.getValue()); } } OMFactory factory = OMAbstractFactory.getOMFactory(); OMElement wrapper = factory.createOMElement(wrapperQName, null); DataHandler dataHandler = new DataHandler(dataSource); wrapper.addChild(factory.createOMText(dataHandler, true)); msgContext.setDoingMTOM(true); return wrapper; }
public OMElement processDocument(DataSource dataSource, String contentType, MessageContext msgContext) throws AxisFault { QName wrapperQName = BaseConstants.DEFAULT_BINARY_WRAPPER; if (msgContext.getAxisService() != null) { Parameter wrapperParam = msgContext.getAxisService().getParameter(BaseConstants.WRAPPER_PARAM); if (wrapperParam != null) { wrapperQName = BaseUtils.getQNameFromString(wrapperParam.getValue()); } } OMFactory factory = OMAbstractFactory.getOMFactory(); OMElement wrapper = factory.createOMElement(wrapperQName, null); DataHandler dataHandler = new DataHandler(dataSource); wrapper.addChild(factory.createOMText(dataHandler, true)); msgContext.setDoingMTOM(true); return wrapper; }
public MessageContext createMessageContext() throws AxisFault { MessageContext msgContext = listener.createMessageContext(); if (service != null) { msgContext.setAxisService(service); // find the operation for the message, or default to one Parameter operationParam = service.getParameter(BaseConstants.OPERATION_PARAM); QName operationQName = ( operationParam != null ? BaseUtils.getQNameFromString(operationParam.getValue()) : BaseConstants.DEFAULT_OPERATION); AxisOperation operation = service.getOperation(operationQName); if (operation != null) { msgContext.setAxisOperation(operation); msgContext.setAxisMessage( operation.getMessage(WSDL2Constants.MESSAGE_LABEL_IN)); msgContext.setSoapAction("urn:" + operation.getName().getLocalPart()); } } return msgContext; } }
public MessageContext createMessageContext() throws AxisFault { MessageContext msgContext = listener.createMessageContext(); if (service != null) { msgContext.setAxisService(service); // find the operation for the message, or default to one Parameter operationParam = service.getParameter(BaseConstants.OPERATION_PARAM); QName operationQName = ( operationParam != null ? BaseUtils.getQNameFromString(operationParam.getValue()) : BaseConstants.DEFAULT_OPERATION); AxisOperation operation = service.getOperation(operationQName); if (operation != null) { msgContext.setAxisOperation(operation); msgContext.setAxisMessage( operation.getMessage(WSDL2Constants.MESSAGE_LABEL_IN)); msgContext.setSoapAction("urn:" + operation.getName().getLocalPart()); } } return msgContext; } }
QName operationQName = ( operationParam != null ? BaseUtils.getQNameFromString(operationParam.getValue()) : BaseConstants.DEFAULT_OPERATION);