dims 2002/06/29 09:39:51
Modified: java/src/org/apache/axis Message.java
java/src/org/apache/axis/soap MessageFactoryImpl.java
Log:
Minor fixes for problem found using SAAJ TCK.
- createMessage is called with the complete stream incluing SOAP-ENV.
Revision Changes Path
1.75 +19 -0 xml-axis/java/src/org/apache/axis/Message.java
Index: Message.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- Message.java 25 Jun 2002 17:59:33 -0000 1.74
+++ Message.java 29 Jun 2002 16:39:51 -0000 1.75
@@ -183,6 +183,25 @@
* or AxisFault.
* @param bodyInStream is true if initialContents is an InputStream
* containing just the SOAP body (no SOAP-ENV).
+ * @param headers Mime Headers.
+ */
+ public Message(Object initialContents, boolean bodyInStream, MimeHeaders
headers) {
+ setup(initialContents, bodyInStream, (String) null, (String) null, headers);
+ }
+
+ /**
+ * Construct a Message, using the provided initialContents as the
+ * contents of the Message's SOAPPart.
+ * <p>
+ * Eventually, genericize this to
+ * return the RootPart instead, which will have some kind of
+ * EnvelopeFactory to enable support for things other than SOAP.
+ * But that all will come later, with lots of additional refactoring.
+ *
+ * @param initialContents may be String, byte[], InputStream, SOAPEnvelope,
+ * or AxisFault.
+ * @param bodyInStream is true if initialContents is an InputStream
+ * containing just the SOAP body (no SOAP-ENV).
*/
public Message(Object initialContents, MimeHeaders headers) {
setup(initialContents, true, (String) null, (String) null, headers);
1.5 +1 -1 xml-axis/java/src/org/apache/axis/soap/MessageFactoryImpl.java
Index: MessageFactoryImpl.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/soap/MessageFactoryImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MessageFactoryImpl.java 29 Jun 2002 16:19:16 -0000 1.4
+++ MessageFactoryImpl.java 29 Jun 2002 16:39:51 -0000 1.5
@@ -111,7 +111,7 @@
public SOAPMessage createMessage(
MimeHeaders mimeheaders, InputStream inputstream)
throws IOException, SOAPException {
- Message message = new Message(inputstream,mimeheaders);
+ Message message = new Message(inputstream, false, mimeheaders);
message.setMessageType(Message.REQUEST);
return message;
}