Dear Bryce,thank you for your article firstly,I meet trouble in wsp...

Dear Bryce,thank you for your article firstly,I meet trouble in wsp... SearchSearch
Author Message
wudilp
New member
Username: Wudilp

Post Number: 1
Registered: 04-2005
Posted on Tuesday, April 26, 2005 - 08:59 am:   

I have read the old articles written by you about send pdu by wsp, by the help of them, i have posted mms by wsp succesfully, but when i change the pdu for get mms by wsp, it doesnot work, i cann't get the retrieve.cnf, can you help me? the following is detailed pdu :
1.send connect pdu:-(omitted)(just same as post)
connect response:
{12,80,03,02,a2,ee,32,00}
2.send ack {18 00 03}
3.send get pdu
{0A,00,04,12,40,urilen,24,74,74,70,3A,2F,2F,32,31
,31 ,2E,31,33,36,2E,31,38,2E,31,39,36,2F,transactionid,80,61,70,70,6C,69,63,61,74,69 ,6F,6E,2F,76,6
E,64,2E,77,61,70,2E,6D,6D,73,2D,6D,65,73,73,61,67
,65 }
receive:
{12,80,04,04,63,01,94}
wudilp
New member
Username: Wudilp

Post Number: 2
Registered: 04-2005
Posted on Thursday, April 28, 2005 - 05:07 am:   

i have try for many times by changing the parameters in pdu, but always get 0x63(503 Service Unavailable 0x63)error, i'm sure the connect is ok, and the uri in get pdu is got from the notification.ind, where is the problem is? someone can help me? thank you very much!
btw, the mmsc server url is the uri i post succesfully.
wudilp
New member
Username: Wudilp

Post Number: 3
Registered: 04-2005
Posted on Thursday, April 28, 2005 - 10:26 am:   

i do some change for mmsc url, now i get the following reply:
12,80,04,04,60,26,05,82,81,02,07,e9,92,04,42,70,a6,4d,a6,52.....
60 means internel error,who can tell me sth about 60 error? thanks
wudilp
New member
Username: Wudilp

Post Number: 5
Registered: 04-2005
Posted on Thursday, April 28, 2005 - 10:57 am:   

Dear Bryce, I hope you can look at this post,i have some problems for receive mms , i have read some of wsp and mms spec, and found some pdu example for get/post,then i succesfully send a mms by socket with help of your old article:
http://support.nowsms.com/discus/messages/12/522.html
,but i meet great trouble in receive mms using the same mmsc and wap gateway, i donot know exactly what is other main difference between GET and POST method except message body and assigned constant(GET 0x40,POST 0x60 ).So i use the same connect pdu for get method,and in GET pdu, i only change constant 0x60->0x40,and add content location in uri,omitted the headerlen and content type in pdu,the detailed pdu is just like following:

*****POST PDU(ALMOST SAME AS YOUR ARTICLE)*******
0x0A ,0x00 ,0x04 ,0x12 ,0x60 ,0x15 ,0x43 ,0x68 ,0x74 ,0x74 ,0x70 ,0x3A ,0x2F ,0x2F ,0x32 ,0x31 // `"Chttp://21
,0x31 ,0x2E ,0x31 ,0x33 ,0x36 ,0x2E ,0x31 ,0x38 ,0x2E ,0x31 ,0x39 ,0x36 //1.136.18.196
,0x61 ,0x70 ,0x70 ,0x6C ,0x69 ,0x63 ,0x61 //a
,0x74 ,0x69 ,0x6F ,0x6E ,0x2F ,0x76 ,0x6E ,0x64 ,0x2E ,0x77 ,0x61 ,0x70 ,0x2E ,0x6D ,0x6D ,0x73 //tion/vnd.wap.mms
,0x2D ,0x6D ,0x65 ,0x73 ,0x73 ,0x61 ,0x67 ,0x65 ,0x00 ,0x80 ,0x61 ,0x70 ,0x70 ,0x6C ,0x69 ,0x63 //-message applic
,0x61 ,0x74 ,0x69 ,0x6F ,0x6E ,0x2F ,0x76 ,0x6E ,0x64 ,0x2E ,0x77 ,0x61 ,0x70 ,0x2E ,0x6D ,0x6D //ation/vnd.wap.mm
,0x73 ,0x2D ,0x6D ,0x65 ,0x73 ,0x73 ,0x61 ,0x67 ,0x65 ,0x00 ,0x88 ,0x80
*****GET PDU(ALMOST SAME AS YOUR ARTICLE)*******
0x0A ,0x00 ,0x04 ,0x12 ,0x40 ,
0x29
,0x68 ,0x74 ,0x74 ,0x70 ,0x3A ,0x2F ,0x2F ,0x6D ,0x6D
,0x73 ,0x63 ,0x2e ,0x6D ,0x6f ,0x6e ,0x74 ,0x65 ,0x72 ,0x6e ,0x65 ,0x74 ,0x2e ,0x63 ,0x6f ,0x6d
//tID
,0x2F ,0x46 ,0x45 ,0x63, 0x4f ,0x4e ,0x64 ,0x36 ,0x68 ,0x41 ,0x42 ,0x34 ,0x4f ,0x53 ,0x62 ,0x41,
0x80 ,0x61 ,0x70 ,0x70 ,0x6C ,0x69 ,0x63 ,0x61 ,0x74 ,0x69 ,0x6F ,0x6E ,0x2F ,0x76 ,0x6E ,0x64 ,
0x2E ,0x77 ,0x61 ,0x70 ,0x2E ,0x6D ,0x6D ,0x73 ,0x2D ,0x6D ,0x65 ,0x73 ,0x73 ,0x61 ,0x67 ,0x65 ,
0x00 ,0x88 ,0x80 ,
**********************************************
actually i get the error reply from MMSC instead of retrieve.cnf
12,80,04,04,60,26,05,82,81,02,07,e9,92,04,42,70,a6,4d,a6,52,......
**********************************************
Pls help me or tell me about how to find detailed information about mantotary header for encoding for WSP GET PDU, i cann't find in wsp spec in (WAP-230-WSP-20010705-a.pdf)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4426
Registered: 10-2002
Posted on Thursday, April 28, 2005 - 04:09 pm:   

Is this an operator MMSC, or an MMSC that you are setting up yourself?

Are you able to send/receive MMS through this MMSC with an actual phone (to verify the MMSC is configured correctly)?

Assuming that you are requesting the correct URL, you're getting a HTTP 500 error back, which is an internal server error. A lot of times servers return this error when they don't understand the URL you are requesting.

Or, the WAP gateway might return this error if it gets an invalid response back from the content server. It looks like the response you are getting back includes HTML content, so I'd suggest you review the HTML content that is returned to see if it provides any clue.

Other than that, I don't really have any ideas. The format of your GET PDU request seems ok.
wudilp
New member
Username: Wudilp

Post Number: 7
Registered: 04-2005
Posted on Friday, April 29, 2005 - 03:22 am:   

Thank you for your reply ,I'm very happy to get your help, the MMSC setting is OK,which can be receive/send MMS in an actual phone,i will do by your advice, but i still have some confusion for MMSC setting, actually, i know the MMSC in our country is "http://mmsc.monternet.com",but when i receive the mms notification, the content location value in which is "http://211.136.18.196/transaction id", when i send the mms (WSP POST)using "http://mmsc.monternet.com" or "http://211.136.18.196",it always ok, but when i receive the mms(WSP GET) after notification using "http://mmsc.monternet.com/transaction id",it return HTTP 500 error back,using "http://211.136.18.196/transaction id",it return (503 Service Unavailable)0x63 error, which MMSC URL should i use? which is relationship between ip url and string url?
wudilp
New member
Username: Wudilp

Post Number: 8
Registered: 04-2005
Posted on Friday, April 29, 2005 - 03:25 am:   

i have another question, is there other way to make sure the URL is avaliable?
wudilp
New member
Username: Wudilp

Post Number: 10
Registered: 04-2005
Posted on Friday, April 29, 2005 - 04:18 am:   

hi,Bryce, i found something, when i try to access the mms location in wap browser, it return the html just like you said, (500 HTTP ERROR),the detailed info look like the following:
**********************************************

500 servlet exception

java.lang.NumberFormatException:
For input string:"wa"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at
java.lang.Interger.parseInt(Integer.java:468)
at
java.lang.Interger.parseInt(Integer.java:518)
at
com.huawei.mms.common.util.Tools.getModuleIDFromIransID(Tools.java:400)
at
com.huawei.mms.mm1agent.MM1servlet.doGet(MM1Servlet.java:401)
javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
..........

**********************************************
BTW, huawei is the company provide MMSC software for china moblie in our country, so i guess lack of some neccessary input or wrong input in get pdu, espically for transaction id,is that correct?i will try to found it out.
wudilp
New member
Username: Wudilp

Post Number: 11
Registered: 04-2005
Posted on Friday, April 29, 2005 - 04:21 am:   

i forget to say: the above is result access the following url by wap:
http://mmsc.monternet.com/FEcONd6hAB4OSbA
if i want to access the actual response content location in notiycation.ind :
http://211.136.18.196/FEcONd6hAB4OSbA
the wap browser tell me cannot access it(i think it should be service unavalible,0x63)
wudilp
New member
Username: Wudilp

Post Number: 12
Registered: 04-2005
Posted on Friday, April 29, 2005 - 09:25 am:   

i think i found the get err reason, i analyse the response pdu, i found every time, i want to receive the mms, it has been expired!because the date field value= expire field value always!
,but i send the mms from other phone using its default mms client just now, and i set the expire time to be max, what may be the reason for it? when i receive the notification, the MMSC server need immediately get response from MMS client? it confuse me.