|
From: <dgl...@us...> - 2003-08-17 22:34:49
|
Update of /cvsroot/babeldoc/babeldoc/modules/soap/src/com/babeldoc/soap/pipeline/stage
In directory sc8-pr-cvs1:/tmp/cvs-serv32424/modules/soap/src/com/babeldoc/soap/pipeline/stage
Modified Files:
SoapWriterPipelineStage.java
Log Message:
Added JournalUpdatePipelineStage, added support for logging arbitrary messages into the journal
Index: SoapWriterPipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/soap/src/com/babeldoc/soap/pipeline/stage/SoapWriterPipelineStage.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** SoapWriterPipelineStage.java 11 Aug 2003 07:25:37 -0000 1.12
--- SoapWriterPipelineStage.java 17 Aug 2003 22:34:46 -0000 1.13
***************
*** 163,169 ****
headers.addHeader("SOAPAction", soapAction);
- // get the SOAP header
- SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
-
// if needed, add authentication
if (authentication != null) {
--- 163,166 ----
***************
*** 173,176 ****
--- 170,186 ----
authentication.getPassword());
}
+
+ // TEST TEST TEST
+ // get the SOAP envelope
+ SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
+ envelope.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
+ envelope.addNamespaceDeclaration("xsd", "http://www.w3.org/2001/XMLSchema");
+ envelope.addNamespaceDeclaration("SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/");
+
+ ByteArrayOutputStream tbs = new ByteArrayOutputStream();
+ message.writeTo(tbs);
+ String strMessage = tbs.toString();
+ System.out.println("Message: \n" + strMessage + "\n");
+ // TEST TEST TEST
// establish the connection
|