Java Spring WS org.springframework.ws.soap.saaj.SaajSoapEnvelopeException: Could not access envelope

前端 未结 3 732
星月不相逢
星月不相逢 2020-12-11 18:08

I\'am experencing a strange behaviour of a spring ws in different environments. Following works fine with Soap UI on a local tomcat 7.0.29, but does return below mentioned e

3条回答
  •  温柔的废话
    2020-12-11 18:51

    I had the same error as you. I've found the solution here: http://mmmsoftware.blogspot.com.es/2009/06/xml-namespace-error-with-spring-ws.html

    Basically you have to use upper versions of xalan and xercesimpl. My pom's dependencies look like this:

    
     ...
    
    
                 ...
    
        
            jaxen
            jaxen
            1.1.3
            compile
            
                
                    maven-cobertura-plugin
                    maven-plugins
                
                
                    maven-findbugs-plugin
                    maven-plugins
                
                
                    xalan
                    xalan
                
                
                    xercesImpl
                    xerces
                
            
        
    
                 ...
    
        
            xalan
            xalan
            2.7.0
            jar
            compile
            
                
                    xml-apis
                    xml-apis
                
            
        
        
            xerces
            xercesImpl
            2.9.1
            jar
            compile
            
                
                    xml-apis
                    xml-apis
                
            
        
    
     ...
    
    

    I hope it helps you.

提交回复
热议问题