SOAP Message needs explination ..please help | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through August 08, 2004 ⬆ |
◄ ► |
Author | Message | |||
swissaKM Unregistered guest |
POST /mm7 HTTP/1.0 Host: 127.0.0.3:8080 Authorization: Basic a2hhbGlkOmhlbGxv SOAPAction: "" Content-length: 2131 Content-type: multipart/related; boundary="---mime-boundary-B076E19F.B217F560---" Connection: close -----mime-boundary-B076E19F.B217F560--- Content-type: text/xml; charset=utf-8 <?xml version='1.0' ?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header> <mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0" env:mustUnderstand="1"> 20031028/11/C72C9123@nowsms.no-ip.com </mm7:TransactionID> </env:Header> <env:Body> <mm7:SubmitReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"> <MM7Version>5.3.0</MM7Version> <SenderIdentification> <SenderAddress>+44999999999/TYPE=PLMN</SenderAddress> </SenderIdentification> <Recipients> <To><Number>+9999999</Number></To> </Recipients> <Priority>Normal</Priority> <DeliveryReport>True</DeliveryReport> <ReadReply>False</ReadReply> <Subject>Multimedia Message</Subject> <Content href="cid:mms_cid" /> </mm7:SubmitReq> </env:Body> </env:Envelope> -----mime-boundary-B076E19F.B217F560--- Content-type: multipart/related; start=<2004161650>; type=application/smil; boundary="---mime-boundary-93D4E3E1.71BD3D22---" Content-ID: <mms_cid> -----mime-boundary-93D4E3E1.71BD3D22--- Content-type: text/plain; name="Quick_te.txt" Content-location: Quick_te.txt Content-transfer-encoding: quoted-printable Quick test -----mime-boundary-93D4E3E1.71BD3D22--- Content-type: application/smil; charset=utf-8; name="pres.smil" Content-ID: <2004161650> Content-transfer-encoding: quoted-printable <smil xmlns=3D"http://www.w3.org/2000/SMIL20/CR/Language"> <head> <layout> <root-layout height=3D"208" width=3D"176" /> <region id=3D"Text" height=3D"100%" width=3D"100%" left=3D"0%" top=3D"0%" fit=3D"s= croll" /> </layout> </head> <body> <par dur=3D"20000ms"> <text src=3D"Quick_te.txt" region=3D"Text" /> </par> </body> </smil> -----mime-boundary-93D4E3E1.71BD3D22----- -----mime-boundary-B076E19F.B217F560----- The explinations required 1) The Content-length 2131 , what does it mean ? what do we measure as content-lenght ? 2) What does the boundary="NextPart_000_0028....." means ? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 3180 Registered: 10-2002 |
The "Content-length" is the content length. Basically it is the length of the data that follows the HTTP header. Your HTTP header ends with CR-LF-CR-LF or LF-LF ... and this field tells the server how much content follows the HTTP header. That way the server knows when the client is done posting the content. The boundary marks the boundaries between the parts of a multipart message. You probably need a MIME (Multipurpose Internet Mail Extensions) primer. Here's a link to a page that talks about MIME encoding and has links to the official specifications: http://www.hunnysoft.com/mime/ |