[java-opensaml COMMIT] in /trunk/opensaml-core/src/test: java/org/opensaml/core/xml/MarshallingTest.java resources/da...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Nov 10 19:50:30 EST 2014
Author: scantor
Date: Mon Nov 10 19:50:29 2014
New Revision: 4145
URL: http://svn.shibboleth.net/view/java-opensaml?rev=4145&view=rev
Log:
Fix some validation warnings.
Modified:
trunk/opensaml-core/src/test/java/org/opensaml/core/xml/MarshallingTest.java
trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessage.xml
trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessageWithContent.xml
Modified: trunk/opensaml-core/src/test/java/org/opensaml/core/xml/MarshallingTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-core/src/test/java/org/opensaml/core/xml/MarshallingTest.java?rev=4145&r1=4144&r2=4145&view=diff
==============================================================================
--- trunk/opensaml-core/src/test/java/org/opensaml/core/xml/MarshallingTest.java (original)
+++ trunk/opensaml-core/src/test/java/org/opensaml/core/xml/MarshallingTest.java Mon Nov 10 19:50:29 2014
@@ -44,8 +44,6 @@
* Constructor
*/
public MarshallingTest() {
- super();
-
simpleXMLObjectQName = new QName(SimpleXMLObject.NAMESPACE, SimpleXMLObject.LOCAL_NAME);
}
@@ -138,7 +136,8 @@
String expectedDocumentLocation = "/data/org/opensaml/core/xml/SOAPMessageWithContent.xml";
String soapDocLocation = "/data/org/opensaml/core/xml/SOAPMessage.xml";
Document soapDoc = parserPool.parse(MarshallingTest.class.getResourceAsStream(soapDocLocation));
- Element soapBody = (Element) soapDoc.getDocumentElement().getElementsByTagName("Body").item(0);
+ Element soapBody = (Element) soapDoc.getDocumentElement().getElementsByTagNameNS(
+ "http://schemas.xmlsoap.org/soap/envelope/", "Body").item(0);
SimpleXMLObjectBuilder sxoBuilder = (SimpleXMLObjectBuilder) builderFactory.getBuilder(simpleXMLObjectQName);
Modified: trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessage.xml
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessage.xml?rev=4145&r1=4144&r2=4145&view=diff
==============================================================================
--- trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessage.xml (original)
+++ trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessage.xml Mon Nov 10 19:50:29 2014
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><Header/><Body><test:Statement xmlns:test="http://www.example.org/testObjects"/></Body></Envelope>
+<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><S:Header/><S:Body><test:Statement xmlns:test="http://www.example.org/testObjects"/></S:Body></S:Envelope>
Modified: trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessageWithContent.xml
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessageWithContent.xml?rev=4145&r1=4144&r2=4145&view=diff
==============================================================================
--- trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessageWithContent.xml (original)
+++ trunk/opensaml-core/src/test/resources/data/org/opensaml/core/xml/SOAPMessageWithContent.xml Mon Nov 10 19:50:29 2014
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><Header/><Body><test:Statement xmlns:test="http://www.example.org/testObjects"/><test:Statement xmlns:test="http://www.example.org/testObjects"/></Body></Envelope>
+<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><S:Header/><S:Body><test:Statement xmlns:test="http://www.example.org/testObjects"/><test:Statement xmlns:test="http://www.example.org/testObjects"/></S:Body></S:Envelope>
More information about the commits
mailing list