You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by we...@apache.org on 2004/05/12 20:45:51 UTC
cvs commit: ws-fx/wss4j/test/wssec TestWSSecurity9.java
werner 2004/05/12 11:45:51
Modified: wss4j/test/wssec TestWSSecurity9.java
Log:
Insert debug log statement
Revision Changes Path
1.2 +6 -1 ws-fx/wss4j/test/wssec/TestWSSecurity9.java
Index: TestWSSecurity9.java
===================================================================
RCS file: /home/cvs/ws-fx/wss4j/test/wssec/TestWSSecurity9.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestWSSecurity9.java 13 Feb 2004 20:43:09 -0000 1.1
+++ TestWSSecurity9.java 12 May 2004 18:45:51 -0000 1.2
@@ -26,6 +26,7 @@
import org.apache.axis.client.AxisClient;
import org.apache.axis.configuration.NullProvider;
import org.apache.axis.message.SOAPEnvelope;
+import org.apache.axis.utils.XMLUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ws.axis.security.util.AxisUtil;
@@ -45,7 +46,7 @@
// import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
-// import java.io.PrintWriter;
+import java.io.PrintWriter;
/**
* WS-Security Test Case
@@ -170,6 +171,10 @@
*/
Message encryptedMsg = (Message) AxisUtil.toSOAPMessage(encryptedSignedDoc);
+ if (log.isDebugEnabled()) {
+ log.debug("Encrypted message, RSA-OAEP keytransport, 3DES:");
+ XMLUtils.PrettyElementToWriter(encryptedMsg.getSOAPEnvelope().getAsDOM(), new PrintWriter(System.out));
+ }
String s = encryptedMsg.getSOAPPartAsString();
((SOAPPart)message.getSOAPPart()).setCurrentMessage(s, SOAPPart.FORM_STRING);