Exception in thread "main" com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.

webservice 抛异常,原因:

public class HeaderHandler implements SOAPHandler<SOAPMessageContext>{

    @Override
    public boolean handleMessage(SOAPMessageContext context) {
        
        return false;
    }
..................
.................
..............
}

handleMessage返回false是不对的,要返回true正确。

posted on 2014-05-23 22:30  zhaofeng555  阅读(773)  评论(0编辑  收藏  举报