WSP-CONNECT

WSP-CONNECT SearchSearch
Author Message
FreshMMS
Posted on Wednesday, September 17, 2003 - 02:13 am:   

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
Posted on Wednesday, September 24, 2003 - 10:28 am:   

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
Posted on Thursday, September 25, 2003 - 01:49 am:   

the wtp, wsp docs you need read thoroughly
John
Posted on Thursday, September 25, 2003 - 04:20 am:   

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
Posted on Thursday, September 25, 2003 - 09:57 am:   

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
Posted on Friday, September 26, 2003 - 02:15 am:   

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
Posted on Friday, September 26, 2003 - 04:03 am:   

wtls is optional, as you need.
as a complete wap protocol, it's best to provide the wtls layer

ÄãÔÚÄÇÀJohn
John
Posted on Friday, September 26, 2003 - 07:44 am:   

you mean, I must use the WTLS layer in my WSP-CONNECT?

ÎÒÔÚÉϺ£,Äã»»¸önickname°É,±ðÓÃAnonymous£¬Ì«¶àÁË£¬Çø·Ö²»¿ªÁË¡£
Anonymous
Posted on Friday, September 26, 2003 - 08:52 am:   

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
Posted on Friday, September 26, 2003 - 08:56 am:   

¹úÄÚûÈ˽»Á÷£¬¿É¶ñ
ËäÈ»ÕâwapЭÒé¶à¿´¿´²»ÄÑ£¬¾ÍÊÇÓÐÒ»¶¡µã¸´ÔÓ¶øÒÑ
¿´ÍêÒ»¸öÔÙ¿´Ò»¸öЭÒ飬ЭÒéºÃ¶àŶ
Anonymous
Posted on Friday, September 26, 2003 - 09:16 am:   

ÎÒÔÚÉîÛÚ·¢´ô
Anonymous
Posted on Saturday, September 27, 2003 - 02:21 am:   

ÊÇѽ£¬¹úÄÚÈË°Ñϲ»¶°Ñ×Ô¼º¿´¶®µÄ¶«Î÷ÊÓΪ¡°×¨Àû¡±£¬º¦ÅÂ×Ô¼ºµÄÀͶ¯³É¹ûÈñðÈËÃâ·Ñ¡°Æ· ³¥¡±£¬ËùÒÔ¿´µ½±ðÈ˲»»áʱ£¬ÄÚÐÄÓÐÒ»ÖÖÃÀ×Ì×̵ĸоõ£¬¡°¿´£¬Õâ¸öÎÒÔç¾Í»áÁË£¬¾¹È»»¹ÓÐ ÈËÔÚÕâ¡®µ´Çïǧ¡¯¡±£¬ËùÒÔ¹úÄÚÈËÓÀÔ¶Éϲ»ÁËÒ»¸öÐĄ̂½×¡£Ë®Æ½Ò²³¤¾ÃµÃ²»µ½Ò»¸öÖʵķÉÔ¾ ¡£
John
Posted on Saturday, September 27, 2003 - 03:07 am:   

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
Posted on Saturday, September 27, 2003 - 07:53 am:   

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
Posted on Saturday, September 27, 2003 - 08:18 am:   

ÎÒÃÇ¿ÉÒÔÁªÏµÒ»ÏÂÂð£¿Í¨ÐÅÒ²¿ÉÒÔ¡£yuer_666@sina.com
лл¡£
mushuang
Posted on Saturday, September 27, 2003 - 09:12 am:   

ÏÖÔÚ¿´ÁË¿´»ªÎª´úÂëµÄMMS·´±àÒë
½á¹û·¢ÏÖÀïÃæ¸úNOKIAµÄ²î²»¶à

»¹Ê¹ÓÃÁË»ìÏý¼¼Êõ
¿ÉÄÜÊÇÅÂNOKIA¸æ×´°É:-)
Anonymous
Posted on Saturday, September 27, 2003 - 09:14 am:   

how much is the value of CONTENT-LENGTH of WSP-POST? what should i caculate? thanks in advance.
Anonymous
Posted on Sunday, September 28, 2003 - 05:32 am:   

who could give me the answer? thanks a lot.
Anonymous
Posted on Sunday, September 28, 2003 - 06:56 am:   

read 8.4.2.21 content llength field
Anonymous
Posted on Monday, September 29, 2003 - 09:40 am:   

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.