Mm7

Mm7 SearchSearch
Author Message
Anonymous
 
Posted on Tuesday, October 26, 2004 - 12:07 pm:   

hi
I have a vasp account which I send message to my mmsc(now sms)but there is a problem:
APIException submitting message: unexpected message content type: text/html(ClientError:2000)
POST HTTP/1.0
SOAPAction: ""

Content-Length: 1980

Content-Type: multipart/related;
boundary="----=_Part_0_14118225.1098787622558"


------=_Part_0_14118225.1098787622558
Content-Type: text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit

<?xml version='1.0' ?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:Transacti onID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-M M7-1-3">e2cb55:ffd4cb5388:-7ffezjalili/1.1.1.108</mm7:TransactionID></env:Header ><env:Body><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1 -3"><MM7Version>5.3.0</MM7Version><SenderIdentification><VASPID>my id</VASPID><SenderAddress><Number>16504808000</Number></SenderAddress></SenderId entification><Recipients><To><Number>09123765377</Number></To></Recipients><Serv iceCode>1</ServiceCode><MessageClass>Personal</MessageClass><DeliveryReport>fals e</DeliveryReport><ReadReply>false</ReadReply><Priority>Low</Priority><Subject>w e</Subject><ChargedParty>Sender</ChargedParty><Content href="cid:generic_content_id" /></SubmitReq></env:Body></env:Envelope>
------=_Part_0_14118225.1098787622558
Content-Type: multipart/related;
boundary="----=_Part_1_28372402.1098787622589";
start="<mms.smil>";
type="application/smil"
Content-ID: <generic_content_id>

------=_Part_1_28372402.1098787622589
Content-Type: text/plain; name=test2.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=test2.txt
Content-ID: <test2.txt>

this is a text content file
which has just two lines

------=_Part_1_28372402.1098787622589
Content-Type: application/smil
Content-Transfer-Encoding: 7bit
Content-ID: <mms.smil>

<?xml version="1.0" encoding="UTF-8"?>
<smil><head><layout><root-layout width="10.0" height="10.0"/><region id="Text" top="50%" left="0" height="50%" width="100%" fit="hidden"/></layout></head><body><par dur="10ms"><text src="cid:test2.txt" region="Text"/></par></body></smil>
------=_Part_1_28372402.1098787622589--

------=_Part_0_14118225.1098787622558--

utgoing Request to Relay]
14:17:03,605 DEBUG [RelayConnection] [Begin Incoming Response from Relay]
14:17:03,605 DEBUG [RelayConnection] Content-type: text/html
any idea will help me
regards
Anonymous
 
Posted on Tuesday, October 26, 2004 - 01:07 pm:   

hi
this is what i can watch in MMSCDEBUG.INI
POST HTTP/1.0
SOAPAction: ""
Content-Length:
Content-Type: multipart/related; boundary="----=_Part_6_10530731.1098789583964" ----
--=_Part_6_10530
731.1098789583964
Content-Type:text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit
<?xml version='1
<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-M M7-1-3"
>e2cb55:ffd4cb5388:-7ffbzjalili/1.1.1.108</mm7:TransactionID></env:Header><env:B ody><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_s
eries/23.140/schema/REL-5-MM7-1-3"><MM7Version>5
.3.0</MM7Version><SenderIdentification><VASPID>m
y id</VASPID><SenderAddress><Number>16504808000</Number></SenderAddress></SenderId entification>< Recipients><To><Number>09123765377</Number></To></Recipients><ServiceCode>1</Ser viceCode><Messag
eClass>Personal</MessageClass><DeliveryReport>fa
lse</DeliveryReport><ReadReply>false</ReadReply>
<Priority>Low</Priority><Subject>we</Subject><Ch
argedParty>Sender</ChargedParty><Content href="c
id:generic_content_id" /></SubmitReq></env:Body>
</env:Envelope>
------=_Part_6_10530731.1098789583964
Content-Type: multipart/related;
boundary="----=_Part_7_23936337.1098789583964";
start="<mms.smil>";
type="application/smil"
Content-ID: <generic_content_id>
------=_Part_7_23936337.1098789
Content-Type: text/plain; name=test2.txt; charset=us-ascii Content-Transfer-Encoding: 7 bit Content-Disposition: attachment; filename=t
est2.txt Content-ID: <test2.txt> this is a t
ext content file which has just two lines
------=_Part_7_239364
Content-Type:application/smil
Content-Transfer-Encoding: 7bit
Content-ID: <?xml version="1.0" encoding="UTF-8"?> <smil><head74><layout><root-l
ayout width="10. 0" height="10.0"
/><region id="Text" top="50%" left="0" height="5
0%" width="100%"fit="hidden"/><
/layout></head>< body><par dur="1
0ms"><text src="cid:test2.txt" r
egion="Text"/></par></body></smi
l> ------=_Part_7_23936337.1098
789583964-- ------=_Part_6_10
530731.1098789583964--
14:49:44:074 [6] ThreadProcessConnection: Processing Complete
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3635
Registered: 10-2002
Posted on Tuesday, October 26, 2004 - 04:28 pm:   

You need to specify "/mm7" in the URL that you are posting to.

And if you do not include an "Authorization:" header, then you must include the "MMSC VASP" account information in the URL.

E.g., if you define an "MMSC VASP" with an account name of "test" and a password of "password", then your POST line should be like this:

POST /mm7/test=password HTTP/1.0

Since you are not including the "/mm7" in the URL, the server does not know that it is an MM7 submission, and an error is being returned formatted as "text/html".

Aside from that, just make sure that you have line breaks where you need them in the headers of the request.

For example, here is how I reformatted your request before submitting it:

POST /mm7/test=password HTTP/1.0
SOAPAction: ""
Content-Length: 1980
Content-Type: multipart/related; boundary="----=_Part_0_14118225.1098787622558"


------=_Part_0_14118225.1098787622558
Content-Type: text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit

<?xml version='1.0' ?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:Transacti onID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-M M7-1-3">e2cb55:ffd4cb5388:-7ffezjalili/1.1.1.108</mm7:TransactionID></env:Header ><env:Body><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1 -3"><MM7Version>5.3.0</MM7Version><SenderIdentification><VASPID>my id</VASPID><SenderAddress><Number>16504808000</Number></SenderAddress></SenderId entification><Recipients><To><Number>09123765377</Number></To></Recipients><Serv iceCode>1</ServiceCode><MessageClass>Personal</MessageClass><DeliveryReport>fals e</DeliveryReport><ReadReply>false</ReadReply><Priority>Low</Priority><Subject>w e</Subject><ChargedParty>Sender</ChargedParty><Content href="cid:generic_content_id" /></SubmitReq></env:Body></env:Envelope>
------=_Part_0_14118225.1098787622558
Content-Type: multipart/related; boundary="----=_Part_1_28372402.1098787622589"; start="<mms.smil>"; type="application/smil"
Content-ID: <generic_content_id>

------=_Part_1_28372402.1098787622589
Content-Type: text/plain; name=test2.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=test2.txt
Content-ID: <test2.txt>

this is a text content file
which has just two lines

------=_Part_1_28372402.1098787622589
Content-Type: application/smil
Content-Transfer-Encoding: 7bit
Content-ID: <mms.smil>

<?xml version="1.0" encoding="UTF-8"?>
<smil><head><layout><root-layout width="10.0" height="10.0"/><region id="Text" top="50%" left="0" height="50%" width="100%" fit="hidden"/></layout></head><body><par dur="10ms"><text src="cid:test2.txt" region="Text"/></par></body></smil>
------=_Part_1_28372402.1098787622589--

------=_Part_0_14118225.1098787622558--


(Note: In the above example, type="application/smil" is a continuation of the "Content-type:" header and there should NOT be a line break before it, but I can't control how this discussion board reformats the request.)