WSP-CONNECT | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through October 29, 2003 ⬆ |
◄ ► |
Author | Message | |||
FreshMMS |
hi, who would tell me about WSP-CONNECT? I want to send wsp-connect message to wap gateway, but how to write the package content? would you give me a wsp-connect message package? thanks in advance | |||
John |
Hi, I Send UDP( WSP-CONNECT message) package to Wap GW as the following format, which is intercepted . but I get abort PDU,why? who can explain the connect PDU or tell me which WAP document I should read? thanks a lot. BYTE wspconnect[]={ 0x8A,0x00,0x01,0x12,0x13,0x04,0x08,0x00, 0x01,0x10,0x0D,0x0A,0x02,0x04,0x80,0x86, 0xA0,0x00,0x04,0x81,0x86,0xA0,0x00,0xC3,0x94}; | |||
Anonymous |
the wtp, wsp docs you need read thoroughly | |||
John |
I read WTP and WSP,and find some about S-CONNECT, but I don't find encode about wsp connect pdu,could you please give me the detailed chapeter? thanks in advance. | |||
Anonymous |
in charpter 8"wsp data unit structure and encoding" of wap 230 wsp approved version 5-july-2001 the wtp layer will add wtp header if the wsp is connection oriented, or else wsp package wont go through wtp layer. i wonder when it goes through the wtls layer? | |||
John |
I don't understand wap, I see document,and think that send a wsp-connect message before send a wsp-post message. wtls is optional, isn't it? | |||
Anonymous |
wtls is optional, as you need. as a complete wap protocol, it's best to provide the wtls layer ÄãÔÚÄÇÀJohn | |||
John |
you mean, I must use the WTLS layer in my WSP-CONNECT? ÎÒÔÚÉϺ£,Äã»»¸önickname°É,±ðÓÃAnonymous£¬Ì«¶àÁË£¬Çø·Ö²»¿ªÁË¡£ | |||
Anonymous |
nope,i should give u a packet as below . data: 0e 00 00 12 01 10 0a 00 ........ data: 03 80 8b 34 02 84 01 02 ...4.... data: 83 01 give u my explaination first look at section 9.3.1 invoke pdu in wireless transaction protocol version 10-jul-2001. ÕâÀï¸øµÄ°ü£¬Ã»¾¹ýwtls layer ******0e 00 00 12*********** µÚÒ»¸ö×Ö½Ú£¬Èç¹ûÕâ¸ö×Ö½ÚÊÇ0000 0000b,±íʾÓжà¸öwtp pdu °üº¬ÔÚÕâÀïÃ棬 0e:0000 1110b ÕâÊǸöwtp µÄinvoke pdu,Õâ¸ö×Ö½Ú¶ÔÓ¦ÁËÕâ¸öpduµÄµÚÒ»¸ö×Ö½ÚÖеÄcon:0,type pdu:0001(invoke), gtr:1,ttr:1,rid:0 µÚ¶þ£¬Èý¸ö×Ö½ÚÊÇtidÕâÀïÊÇ0 µÚËĸö×Ö½ÚÊÇ 0001 0010¶ÔÓ¦ÁËversion:00, tidnew:0, u/p:1(±íʾҪACK£©£¬ Á½Î»µÄres,Ê£ÏÂÁ½Î»±íʾtcl,ÕâÀïÊÇ10binary(2 decimal) ÒòΪµÚÒ»¸ö×Ö½ÚµÄconÊÇ0£¬±íʾûÓÐtpi¸úÔÚƨ¹ÉÉÏ£¬ËùÒÔºóÃæ¸úµÄ¾ÍÊÇwspµÄÊý¾Ý ***01 10 0a 00 03 80 8b 34 02 84 01 02 83 01 **** ÒòΪÊÇwsp layerµÄÊý¾Ý£¬ËùÒÔÎÒÃǶÔÕÕwsp pduÀ´¿´¿´Õ⾿¾¹ÊÇʲôÊý¾Ý£¬Ê²Ã´º¬Ò壬 Ê×ÏÈÇëÄú¿´8.2.1 pdu common fields tid | type | type-specific contents ------------------------------------------ option | x | x ÒòΪÊÇÁ¬½Óģʽ¿´wsp_connectÕâ¸öÃû×Ö¾ÍÖªµÀÊÇconnectÁË£¬ËùÒÔtidÊDz»ÐèÒªµÄÁË Òò´ËµÚÒ»¸ö×Ö½Ú£¬±íʾµÄÊÇtype:01(1±íʾÊÇconnect pdu,¿ÉÒÔ²ÎÕÕ¸½Â¼A assigned numbers) ¸ú×ÅÏÂÀ´µÄÄÇô¾ÍÊÇconnect µÄpdu,ÄÇÎÒÃÇ¿´8.2.2.1 connect ¾ÍÖªµÀµÚ¶þ¸ö×Ö½Ú10±íʾµÄversionÕâÔÚÏÂÃæµÄ×¢ÊÍÀïÒ²½²ÁË£¬ µÚÈý¸ö×Ö½ÚÒòΪÊÇuintvarËùÒÔÒªÅжÏÏ£¬ÅжϷ½·¨¾ÍÊÇ ÕÒµ½ÔÚµÚ3¸ö×Ö½Úºó×ʼ³öÏÖµÄ×Ö½Ú&0x80=0µÄ»°£¬ÄÇô´ÓµÚÈý¸ö×Ö½Ú£¬µ½ÕÒµ½µÄÕâ¸ö×Ö½Ú £¬¾ÍÊÇÎÒÃÇÒªÕÒµÄcapabilities LenÁË£¬ÔÚÎÒÃÇÕâ¸öÀý×ÓÀÒòΪ0x0a&0x80=0,ËùÒÔcapabilities len = 0x0a; ͬÑùheaderslen=0x00£¬ÊǵÚËĸö×Ö½Ú¡£ µÚ4¸ö×Ö½ÚºóÃæµÄ0x0a¸ö×Ö½Ú03 80 8b 34 02 84 01 02 83 01±íʾcapablities£¬ÎÒÃÇÀ´¿´¿´ÕâÊÇʲôcapabilities. ¿´¸½Â¼aµÄtable 37 capabilities assignments ºÍ8.3.1 capabilities structure client sdu size: 03 80 8b 34(0x8b34) length cli sdu uintvar push mor:02 84 01 length pushmor uint8 method mor:02 83 01 length method mor uint8 Äã¶ÔÕÕÏ£¬²»Ã÷°×ÔÙ˵ | |||
Anonymous |
¹úÄÚûÈ˽»Á÷£¬¿É¶ñ ËäÈ»ÕâwapÐÒé¶à¿´¿´²»ÄÑ£¬¾ÍÊÇÓÐÒ»¶¡µã¸´ÔÓ¶øÒÑ ¿´ÍêÒ»¸öÔÙ¿´Ò»¸öÐÒ飬ÐÒéºÃ¶àŶ | |||
Anonymous |
ÎÒÔÚÉîÛÚ·¢´ô | |||
Anonymous |
ÊÇѽ£¬¹úÄÚÈË°Ñϲ»¶°Ñ×Ô¼º¿´¶®µÄ¶«Î÷ÊÓΪ¡°×¨Àû¡±£¬º¦ÅÂ×Ô¼ºµÄÀͶ¯³É¹ûÈñðÈËÃâ·Ñ¡°Æ· ³¥¡±£¬ËùÒÔ¿´µ½±ðÈ˲»»áʱ£¬ÄÚÐÄÓÐÒ»ÖÖÃÀ×Ì×̵ĸоõ£¬¡°¿´£¬Õâ¸öÎÒÔç¾Í»áÁË£¬¾¹È»»¹ÓÐ ÈËÔÚÕâ¡®µ´Çïǧ¡¯¡±£¬ËùÒÔ¹úÄÚÈËÓÀÔ¶Éϲ»ÁËÒ»¸öÐĄ̂½×¡£Ë®Æ½Ò²³¤¾ÃµÃ²»µ½Ò»¸öÖʵķÉÔ¾ ¡£ | |||
John |
wsp-connect£¬wsp-postµÈÇëÇó¶¼ÊÇҪͨ¹ýwtp-invokeÀ´½øÐеÄÂð£¿Ò»¿ªÊ¼Ö»ÖªµÀwsp-conne ctÓ³Éä³Éhttp-connect, ÏëµÄ¾ÍÊÇÏòÍø¹Ø·¢¡°connect mmsc.monternet.com:80 http/1.1 \r\n¡±¾ÍÐÐÁË£¬ÔÀ´Èç´Ë¡£ÕæÊǶàлÁË¡£ ½ÓÊÕ²ÊÐÅʱ£¬ºÃÏñÒªÏÈ×¢²áһϣ¬½«application/vnd.wap.mms-messageÓë¿Í»§¶Ë³ÌÐòÓ³ÉäÒ »Ï£¬ÊÇʲôÒâ˼£¿ÈçºÎÈ¥×öѽ£¿ | |||
Anonymous |
I send the wsp-connect,and recvfrom the reply pdu: 12 80 00 02 B3 AC 0B 00 15 .€....... 45 6E 63 6F 64 69 6E 67 2D Encoding- 76 65 72 73 69 6F 6E 00 31 version.1 2E 32 00 .2....... what's the meaning? | |||
John |
ÎÒÃÇ¿ÉÒÔÁªÏµÒ»ÏÂÂð£¿Í¨ÐÅÒ²¿ÉÒÔ¡£yuer_666@sina.com лл¡£ | |||
mushuang |
ÏÖÔÚ¿´ÁË¿´»ªÎª´úÂëµÄMMS·´±àÒë ½á¹û·¢ÏÖÀïÃæ¸úNOKIAµÄ²î²»¶à »¹Ê¹ÓÃÁË»ìÏý¼¼Êõ ¿ÉÄÜÊÇÅÂNOKIA¸æ×´°É | |||
Anonymous |
how much is the value of CONTENT-LENGTH of WSP-POST? what should i caculate? thanks in advance. | |||
Anonymous |
who could give me the answer? thanks a lot. | |||
Anonymous |
read 8.4.2.21 content llength field | |||
Anonymous |
hi,would you please help me? 1.I send wsp-connect,and i recvfrom a connectreply "Encoding- version 1.2",it should be successfully, but I don't know its meaning why give version, and what use is "ServerSessionId" in connectreply ? 2.I post a text MM,and get reply, 503,"Service Unavailable",why? 3.after send WSP_CONNECT, then send POST? or WSP-CONNECT-->WSP-ACK-->WSP-POST? thanks a lot. |