NAMESPACE_ERR: An attempt is made to create or change an object in a way which

caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.

spring-ws
一加命名空间就错~~

//Element responseElement = responseDocument.addElement("GetUserLoginResponse", namespaceUri);
//会无命名空间OK
Element responseElement = responseDocument.addElement("GetUserLoginResponse");

你可能感兴趣的:(WebService)