Update of /cvsroot/openamf/openamf/src/java/org/openamf
In directory sc8-pr-cvs1:/tmp/cvs-serv31058/src/java/org/openamf
Modified Files:
DefaultGateway.java
Log Message:
fixed bug caused by ealier commit, now multiple bodies should be supported
Index: DefaultGateway.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/DefaultGateway.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** DefaultGateway.java 24 May 2003 01:06:59 -0000 1.25
--- DefaultGateway.java 24 May 2003 06:43:21 -0000 1.26
***************
*** 76,79 ****
--- 76,85 ----
DataOutputStream outputStream = new DataOutputStream(baOutputStream);
+ outputStream.writeShort(0);
+
+ //since we're not using any headers just write zero
+ //for header count and move on
+ outputStream.writeShort(0);
+
outputStream.writeShort(requestMessage.getBodyCount());
for (Iterator bodies = requestMessage.getBodies(); bodies.hasNext();) {
***************
*** 216,220 ****
}
- AMFMessage responseMessage = new AMFMessage();
AMFBody responseBody =
new AMFBody(
--- 222,225 ----
***************
*** 222,229 ****
"null",
serviceResult);
- responseMessage.addBody(responseBody);
AMFSerializer serializer = new AMFSerializer(outputStream);
! serializer.serialize(responseMessage);
}
}
--- 227,233 ----
"null",
serviceResult);
AMFSerializer serializer = new AMFSerializer(outputStream);
! serializer.writeBody(responseBody);
}
}
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.