SubmitSM problem
Posted: Tue Aug 28, 2012 6:39 am
Dear Alt,
I'm trying to use SubmitSm:
SubmitSm req = new SubmitSm(null,
srcAdrTON,
tbSrcAdrNPI,
srcAddr,
tbDestAdrTON,
tbDestAdrNPI,
dstAddr);
req.DataCoding = coding;
req.ShortMessage = messageText;
......
I get exception "Object reference is null ..." and I found the problem:
Dear Alt,
In SubmitSM class, in ShortMessage property you are using following code:
...ShortMessage = Client.GetMessageBytes(value, this.DataCoding);
And here "Client" == NULL
Please assist, how use SubmitSm?
Thanks in advance.
I'm trying to use SubmitSm:
SubmitSm req = new SubmitSm(null,
srcAdrTON,
tbSrcAdrNPI,
srcAddr,
tbDestAdrTON,
tbDestAdrNPI,
dstAddr);
req.DataCoding = coding;
req.ShortMessage = messageText;
......
I get exception "Object reference is null ..." and I found the problem:
Dear Alt,
In SubmitSM class, in ShortMessage property you are using following code:
...ShortMessage = Client.GetMessageBytes(value, this.DataCoding);
And here "Client" == NULL
Please assist, how use SubmitSm?
Thanks in advance.