Author: thomas.diesler(a)jboss.com
Date: 2007-02-01 03:28:30 -0500 (Thu, 01 Feb 2007)
New Revision: 2233
Modified:
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
Log:
Verify Envelope name
Modified:
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2007-02-01
05:15:13 UTC (rev 2232)
+++
branches/jbossws-1.2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2007-02-01
08:28:30 UTC (rev 2233)
@@ -63,6 +63,10 @@
String prefix = getPrefix();
String namespaceURI = getNamespaceURI();
+ String localName = getLocalName();
+
+ if ("Envelope".equals(localName) == false)
+ throw new IllegalArgumentException("Cannot create SOAP envelope from:
" + element.getElementQName());
assertEnvelopeNamespace(namespaceURI);
addNamespaceDeclaration(prefix, namespaceURI);
Show replies by date