Error In Converting Soap Envelope To Document
in converting SOAP Envelope to DocumentAgile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Resolved Priority: Major Resolution: Fixed Affects Version/s: 1.4 Fix Version/s: 1.5.1 Component/s: rampart-core Labels: None Description I am seeing the following error message upon further debugging in Eclipse: [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is: [junit] org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc eption2: ParseError at [row,col]:[32,54] [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>". [junit] at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope (Axis2Util.java:161) [junit] at org.apache.rampart.RampartMessageData.
Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ WSSecurityException: Error in converting SOAP Envelope to Document Hi, I'm connecting to http://localhost:8280/soap/FSB-Find-WsSecurity-proxy. The endpoint linked to this proxy is defined to use WS-Security for the outgoing messages but notfor incoming messages (
copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * http://docs.spring.io/spring-ws/site/xref/org/springframework/ws/soap/axiom/support/AxiomUtils.html Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 error in package org.springframework.ws.soap.axiom.support; 18 19 import java.io.ByteArrayInputStream; 20 import java.io.ByteArrayOutputStream; 21 import java.io.IOException; 22 import java.io.OutputStream; 23 import java.util.Iterator; 24 import java.util.Locale; 25 import javax.xml.namespace.QName; 26 import javax.xml.parsers.DocumentBuilderFactory; 27 import javax.xml.stream.XMLInputFactory; 28 29 import org.springframework.util.Assert; 30 import org.springframework.util.StringUtils; 31 import org.springframework.xml.namespace.QNameUtils; 32 33 import org.apache.axiom.om.OMContainer; 34 import org.apache.axiom.om.OMElement; 35 import org.apache.axiom.om.OMException; 36 import org.apache.axiom.om.OMNamespace; 37 import org.apache.axiom.soap.SOAPEnvelope; 38 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder; error in converting 39 import org.w3c.dom.DOMImplementation; 40 import org.w3c.dom.Document; 41 import org.w3c.dom.Element; 42 import org.w3c.dom.ls.DOMImplementationLS; 43 import org.w3c.dom.ls.LSOutput; 44 import org.w3c.dom.ls.LSSerializer; 45 46 /** 47 * Collection of generic utility methods to work with Axiom. Includes conversion from OMNamespace
s to 48 * QName
s. 49 * 50 * @author Arjen Poutsma 51 * @author Tareq Abed Rabbo 52 * @see org.apache.axiom.om.OMNamespace 53 * @see javax.xml.namespace.QName 54 * @since 1.0.0 55 */ 56 @SuppressWarnings("Since15") 57 public abstract class AxiomUtils { 58 59 /** 60 * Converts a javax.xml.namespace.QName
to a org.apache.axiom.om.OMNamespace
. A 61 * OMElement
is used to resolve the namespace, or to declare a new one. 62 * 63 * @param qName the QName
to convert 64 * @param resolveElement the element used to resolve the Q 65 * @return the converted SAAJ Name 66 * @throws OMException if conversion is unsuccessful 67 * @throws IllegalArgumentException if qName
is not fully qualified 68 */ 69 public static OMNamespace toNamespace(QName qName, OMElement resolveElement) throws OMException { 70 String prefix = QNameUtils.getPrefix(qName); 71 if (StringUtils.hasLength(qName.getNamespaceURI()) && StringUtils.hasLength(prefix)) { 72 return resolveElement.declareN