Error-message-format-corrupt?????????????

Error-message-format-corrupt????????????? SearchSearch
Author Message
sanmao
New member
Username: Xiajiashan

Post Number: 2
Registered: 06-2004
Posted on Wednesday, July 07, 2004 - 10:59 am:   

hi
I recieved the packet from the GW:
13 80 02 04 20 45 61 70 70 6c 69 63 61 74 69 6f 6e 2f 76 6e 64 2e 77 61 70 2e 6d 6d 73 2d 6d 65 73 73 61 67 65 00 8d 01 2c a6 52 65 73 69 6e 2f 32 2e 31 2e 39 00 45 6e 63 6f 64 69 6e 67 2d 56 65 72 73 69 6f 6e 00 31 2e 33 00 8c 81 98 30 30 30 30 30 32 00 8d 90 92 83 93 45 72 72 6f 72 20 4d 65 73 73 61 67 65 20 46 6f 72 6d 61 74 20 43 6f 72 72 75 70 74 00
and i puzzled...
20 45 ????
8d 01 2c a6 ????
I see
8c 81 98 30 30 30 30 30 32 00 8d 90 92 83 93 45 72 72 6f 72 20 4d 65 73 73 61 67 65 20 46 6f 72 6d 61 74 20 43 6f 72 72 75 70 74 00
is the m-send-conf packet.
92 translate is Response-Status
83 translate is Response-Status value(Error-message-format-corrupt)
93 translate is Response-Text
45 72 72 6f 72 20 4d 65 73 73 61 67 65 20 46 6f 72 6d 61 74 20 43 6f 72 72 75 70 74 00 translate is "Error-message-format-corrupt"
and i wonder what made the"Error-message-format-corrupt"?
who help me!
ths!
Gary Chapman
New member
Username: Garychapman

Post Number: 4
Registered: 06-2004
Posted on Thursday, July 08, 2004 - 03:31 am:   

First, to understand the format of this response message, you need to understand the WSP spec (WAP-230)

WTP Result PDU: (see WAP-224 8.3.2)

13 80 02


WSP Reply PDU:

04 // WSP Reply PDU identifier (see Table 34)

(from here on, see WSP 8.2.3.3)
20 // Status (HTTP 200, see table 36)

45 // 69 octets of headers to follow

// headers
{
// ContentType
6170706c69636174696f6e2f766e642e7761702e6d6d732d6d65737361676500

8d // Content-Length (0x0d | 0x80, see Table 39)
01 // Encoded as long integer, so this is the length byte
2c // 44 octets of Content

a6 // Server (0x26 | 0x80, see Table 39)
526573696e2f322e312e3900 // Resin/2.1.9

456e636f64696e672d56657273696f6e00 // Encoding-Version
312e3300 // 1.3
}

// Content
{
// m-send-conf message
8c8198303030303032008d909283934572726f72204d65737361676520466f726d617420436f7272 75707400
}

And why did you get the error message? The m-send-req message you initially posted is probably corrupt.

Gary
sanmao
New member
Username: Xiajiashan

Post Number: 3
Registered: 06-2004
Posted on Saturday, July 10, 2004 - 08:03 am:   

hi Gary !
I am glad to see your post.
This is a m-send-req package,some(marker??????)
isn't understanded for me ,and need your help.
0x8c,0x80,
0x98,0x30,0x30,0x30,0x30,0x30,0x32,0x00,
0x8d,0x90,0x89,0x01,0x81,0x97,0x31,0x33,0x38,0x38,0x36,0x34,0x37,0x34,0x38,0x30, 0x36,0x2f,0x54,0x59,0x50,0x45,0x3d,0x50,0x4c,0x4d,0x4e,0x00,
0x96,0x32,0x30,0x30,0x34,0x2d,0x30,0x37,0x2d,0x30,0x31,0x20,0x31,0x31,0x3a,0x33, 0x30,0x00,
0x8a,0x80,
0x8f,0x81,
0x94,0x81,
0x86,0x81,
0x90,0x81,
0x84,0x1d,0xb3,
0x89,0x61,0x70,0x70,0x6c,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x2f,0x73,0x6d,0x69, 0x6c,0x00,
0x8a,0x6d,0x6d,0x73,0x2e,0x73,0x6d,0x69,0x6c,0x00,
0x02,0x1f,0x83,0x0e,
0x13,0x61,0x70,0x70,0x6c,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x2f,0x73,0x6d,0x69, 0x6c,0x00,
0x81,0x83,0xc0,????????????
0x22,0x6d,0x6d,0x73,0x2e,0x73,0x6d,0x69,0x6c,0x00,
0x3c,0x73,0x6d,0x69,0x6c,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3d,0x22,0x68,0x74,0x74, 0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x77,0x33,0x2e,0x6f,0x72,0x67,0x2f,0x32, 0x30,0x30,0x30,0x2f,0x53,0x4d,0x49,0x4c,0x32,0x30,0x2f,0x43,0x52,0x2f,0x4c,0x61, 0x6e,0x67,0x75,0x61,0x67,0x65,0x22,0x3e,0x0d,0x0a,0x20,0x3c,0x68,0x65,0x61,0x64, 0x3e,0x0d,0x0a,0x20,0x20,0x3c,0x6c,0x61,0x79,0x6f,0x75,0x74,0x3e,0x0d,0x0a,0x20, 0x20,0x20,0x3c,0x72,0x6f,0x6f,0x74,0x2d,0x6c,0x61,0x79,0x6f,0x75,0x74,0x20,0x68, 0x65,0x69,0x67,0x68,0x74,0x3d,0x22,0x32,0x30,0x38,0x22,0x20,0x77,0x69,0x64,0x74, 0x68,0x3d,0x22,0x31,0x37,0x36,0x22,0x20,0x2f,0x3e,0x0d,0x0a,0x20,0x20,0x20,0x3c, 0x72,0x65,0x67,0x69,0x6f,0x6e,0x20,0x69,0x64,0x3d,0x22,0x49,0x6d,0x61,0x67,0x65, 0x22,0x20,0x74,0x6f,0x70,0x3d,0x22,0x30,0x22,0x20,0x6c,0x65,0x66,0x74,0x3d,0x22, 0x30,0x22,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3d,0x22,0x35,0x30,0x22,0x70,0x77, 0x69,0x64,0x74,0x68,0x3d,0x22,0x31,0x30,0x30,0x22,0x20,0x66,0x69,0x74,0x3d,0x22, 0x68,0x69,0x64,0x64,0x65,0x6e,0x22,0x2f,0x3e,0x0d,0x0a,0x20,0x20,0x20,0x3c,0x72, 0x65,0x67,0x69,0x6f,0x6e,0x20,0x69,0x64,0x3d,0x22,0x54,0x65,0x78,0x74,0x22,0x20, 0x74,0x6f,0x70,0x3d,0x22,0x35,0x30,0x22,0x20,0x6c,0x65,0x66,0x74,0x3d,0x22,0x30, 0x22,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3d,0x22,0x35,0x30,0x22,0x20,0x77,0x69, 0x64,0x74,0x68,0x3d,0x22,0x31,0x30,0x30,0x22,0x20,0x66,0x69,0x74,0x3d,0x22,0x68, 0x69,0x64,0x64,0x65,0x6e,0x22,0x2f,0x3e,0x0d,0x0a,0x20,0x20,0x3c,0x2f,0x6c,0x61, 0x79,0x6f,0x75,0x74,0x3e,0x0d,0x0a,0x20,0x3c,0x2f,0x68,0x65,0x61,0x64,0x3e,0x0d, 0x0a,0x20,0x3c,0x62,0x6f,0x64,0x79,0x3e,0x0d,0x0a,0x20,0x3c,0x70,0x61,0x72,0x20, 0x64,0x75,0x72,0x3d,0x22,0x35,0x73,0x22,0x3e,0x0d,0x0a,0x3c,0x69,0x6d,0x67,0x20, 0x73,0x72,0x63,0x3d,0x22,0x31,0x39,0x39,0x36,0x38,0x33,0x32,0x39,0x2e,0x6a,0x70, 0x67,0x22,0x20,0x72,0x65,0x67,0x69,0x6f,0x6e,0x3d,0x22,0x49,0x6d,0x61,0x67,0x65, 0x22,0x20,0x2f,0x3e,0x0d,0x0a,0x3c,0x2f,0x70,0x61,0x72,0x3e,0x0d,0x0a,0x3c,0x2f, 0x62,0x6f,0x64,0x79,0x3e,0x0d,0x0a,0x2c,0x2f,0x73,0x6d,0x69,0x6c,0x3e,
0x1e,0xa1,0x7a,???????????????
0x9e,0xc0,?????????
0x22,0x39,0x32,0x31,0x33,0x33,0x30,0x35,0x35,0x2e,0x6a,0x70,0x67,0x00,
0x8e,??????????????/
0x39,0x32,0x31,0x33,0x33,0x30,0x35,0x35,0x2e,0x6a,0x70,0x67,0x00,
0xff,0xd8..............jpg.........0xff d9
Gary Chapman
New member
Username: Garychapman

Post Number: 5
Registered: 06-2004
Posted on Friday, July 16, 2004 - 06:52 am:   

0x81,0x83,0xc0,????????????

0x81 = charset (WAP-230 table 38)
0x83 = us-ascii (WAP-230 table 42)
0xc0 = content-id (WAP-230 table 39)

---

0x1e,0xa1,0x7a,???????????????
0x9e,0xc0,?????????

0x1e = Headers Length (WAP-230 table 26)
0xa1 0x7a = DataLen (uintvar, WAP-230 8.1.2)
0x9e = image/jpeg
0xc0 = content-id (WAP-230 table 39)

---

0x8e,??????????????/

0x8e = content-location (WAP-230 table 39)

---

You really need to read and understand the WAP-230 (WSP) specification. I also suggest you download the Nokia Mobile Internet Toolkit, which can help you verify whether your MMS message format is correct or not.

Gary