MMS m-retrieve-conf

MMS m-retrieve-conf SearchSearch
Author Message
manuel.
Unregistered guest
Posted on Monday, August 02, 2004 - 12:25 pm:   

Hi everyone,

I am coding a servlet for handling mms retrievals. After MMS notifications are successfully sent to my t300, the phone will follow the X-Mms-Content-Location header to perform a http GET over gprs. My servlet got the request from the wap gateway no problem and dutifully formats the m-retrieve-conf PDU for delivery. Now the phone complaints "Message format corrupted". Here is how I do it in the servlet:

byte[] mmsBytes = makeMMS(request, response);
String mmsPDU = new String(mmsBytes);
response.setContentType("application/vnd.wap.mms-message");
response.setContentLength(mmsBytes.length);
PrintWriter out = response.getWriter();
out.write(mmsPDU);

note:
1) the mmsBytes is converted to ascii encoding for trasmission over http, as required by wap-209-enc, if i read it correctly, that is.
2) no additional headers are set to the http response.
3) mms headers are set for required fields in wap-209.

pls show me where i can look for problems with this approach? Thank you.

manuel.
manuel
Unregistered guest
Posted on Tuesday, August 03, 2004 - 07:13 am:   

First of all, this is not the right place to post this message. so sorry to all of you. I conducted some more testing and looked into the hex codes and found that the java code i put to generate m-retrieve-conf pdu is not correct. so there goes the problem.

manuel.
vampire_janus
Unregistered guest
Posted on Tuesday, January 25, 2005 - 08:23 am:   

i have ready java codes to send and receive mms (but only from the client to the proxy server) and also to parse and encode (but not yet complete and still has a lot of things missing) mms pdus. maybe you can use it. please email me.
Anonymous
 
Posted on Monday, March 06, 2006 - 09:20 pm:   

deleted by admin 966