server response

MMS library for .NET

Moderator: alt

Post Reply
osmanbiradli
Posts: 3
Joined: Wed Nov 28, 2018 12:58 pm

server response

Post by osmanbiradli » Tue Dec 11, 2018 5:27 pm

hi

I can send mms
resp.Status.StatusCode 1000 okey.

I try incorrect number
resp.Status.StatusCode "1000"

but trace is
TRACE: 11: (MM7Client) RESPONSE FROM SERVER
HTTP/1.1 200 OK
SOAPAction: ""
x-huawei-mmsc-tid: XXXXXXXXXXXXXX
x-huawei-mmsc-from: XXXXXXXX
x-huawei-mmsc-to: XXXXXXXXXX
x-huawei-mmsc-code: 4007
Content-Length: 629
Content-Type: text/xml; charset="utf-8"
Date: Tue, 11 Dec 2018 16:18:48 GMT
Server: Resin/3.0.7

How can I read this response, because
resp.Request.Response.Status.StatusCode.ToString();
this is nullreferance exception.

mm7 version is 6.3.0

Please Help

alt
Site Admin
Posts: 728
Joined: Tue Apr 25, 2006 9:45 am

Re: server response

Post by alt » Mon Dec 17, 2018 6:54 pm

Hi Osman,

Can you post complete response from the server? I see that content should have 629 bytes.

osmanbiradli
Posts: 3
Joined: Wed Nov 28, 2018 12:58 pm

Re: server response

Post by osmanbiradli » Wed Dec 19, 2018 3:47 pm

resp = client.Submit(mes);
resp.Status.StatusCode is 1000
but details

TRACE: 6: (MM7Client) RESPONSE FROM SERVER
HTTP/1.1 200 OK
SOAPAction: ""
x-huawei-mmsc-tid: 6XXXXXXXXXXXX3
x-huawei-mmsc-from: GXXXXXXXX
x-huawei-mmsc-to: 9XXXXXXXXX2
x-huawei-mmsc-code: 4007
Content-Length: 629
Content-Type: text/xml; charset="utf-8"
Date: Tue, 18 Dec 2018 09:41:41 GMT
Server: Resin/3.0.7


<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelop ... nsactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/2 ... -5-MM7-1-5" soap-env:mustUnderstand="1">6XXXXXXXXXXXX3</mm7:TransactionID></soap-env:Header><soap-env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/2 ... >Recipient address unreachable: +9XXXXXXXXXX.</StatusText></Status></SubmitRsp></soap-env:Body></soap-env:Envelope>

Post Reply