sprng webservice

灯光下的宁静 发布于 2016/09/06 20:35
阅读 224
收藏 0
sprng webservice 如何设置soapHeader呢,代码如下:
public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException {
        logger.debug("SoapHeaderInterceptor handleRequest");
        SoapMessage webServiceMessage = (SoapMessage)messageContext.getRequest();
        String soapAction = webServiceMessage.getSoapAction();
        soapAction = soapAction.substring(soapAction.lastIndexOf("/")+1);
        if(!handlerHeaderExclude.contains(soapAction)){//需要设置soapheader
            logger.debug("SoapHeaderInterceptor handleRequest set soapHeader");
        }


        return true;
    }

加载中
返回顶部
顶部