Author: midon
Date: Wed Nov 26 16:18:51 2008
New Revision: 721046
URL: http://svn.apache.org/viewvc?rev=721046&view=rev
Log:
a part bound to a soap header should not be accessible as a body part
Modified:
ode/trunk/axis2/src/test/java/org/apache/ode/axis2/SoapMessageConverterTest.java
Modified:
ode/trunk/axis2/src/test/java/org/apache/ode/axis2/SoapMessageConverterTest.java
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/SoapMessageConverterTest.java?rev=721046&r1=721045&r2=721046&view=diff
==============================================================================
---
ode/trunk/axis2/src/test/java/org/apache/ode/axis2/SoapMessageConverterTest.java
(original)
+++
ode/trunk/axis2/src/test/java/org/apache/ode/axis2/SoapMessageConverterTest.java
Wed Nov 26 16:18:51 2008
@@ -136,15 +136,15 @@
MemBackedMessageImpl odeMsg2 = new MemBackedMessageImpl(null,
odeMsgElmt, null, false);
portmapper.parseSoapRequest(odeMsg2, env, op1);
+ System.out.println(DOMUtils.domToString(odeMsg2.getMessage()));
Element params = DOMUtils.findChildByName(odeMsg2.getMessage(), new
QName(null, "parameters"));
assertNotNull(params);
+ // the part 'DocumentumRequestHeader' is bound to a soap:header, it
should be accessible as a header part
assertNotNull(odeMsg2.getHeaderPart("DocumentumRequestHeader"));
Element hdrElmt =
DOMUtils.findChildByName(odeMsg2.getHeaderPart("DocumentumRequestHeader"), new
QName("http://documentum.com/ws/2005/services",
"DocumentumSecurityToken"));
assertNotNull(hdrElmt);
- Element hdrBdyElmt =
DOMUtils.findChildByName(odeMsg2.getPart("DocumentumRequestHeader"), new
QName("http://documentum.com/ws/2005/services",
- "DocumentumSecurityToken"));
- assertNotNull(hdrBdyElmt);
+ assertNull(odeMsg2.getPart("DocumentumRequestHeader"));
}
/** Make sure hello world request parses correctly. */