This content has been marked as final. Show 3 replies
First, note that by getting that JAX-RS resource, you're breaking encapsulation. That is, the format that you're getting back is subject to change. To answer your question, yes you'll need an XML parser like kxml to read the format and extract the BOs from it. Each BO, should have an id and a base64 representation. After decoding the base64 data, you'd need to use the client BO deserializer to interpret the representation.
As far as the future of SGMP. Oracle has indicated publicly that it intends to invest in the product. We should have more details in the next few weeks. Feel free to ping us again.
Thanks for getting back to me so quickly and giving an update about the product. This is a very good news. Hopefully we get SGMP1.2, which has many good features, soon.
I searched for Base64 decoder and could not find in JAVA ME apis. However, I found in Blackberry and since our app is for it we are going to use it. With SGMP1.2, we have plans of supporting in Android and this does not seem to have Base64. I would really appreciate if you can provide the generic Base64 JAVA ME api.
The client library is using org.apache.commons.codec.binary.Base64 internally. We don't have the full Commons Codec library bundled, but you can look up the javadoc for the Base64 class online. All you need to do is call Base64.decode(obj.getBytes()) on the objects you get out of the XML.
In general it isn't a good idea to depend on implementation details of the client library, but in this case, I think it is pretty safe to expect org.apache.commons.codec.binary.Base64 to remain in our library.