Page 1 of 1

capture the success response after submitting the message???

Posted: Sun Feb 17, 2008 3:14 pm
by shuriz
Hi alt,
How can i capture the success response from smsc after i send the message successfully.

In my other applications i doing this

Submit_Sm = SMSC.SubmitSm(new SubmitSmReq(Submit_Sm));

if (Submit_Sm.Header.CommandStatus == 0)
{
MessageBox.Show(Submit_Sm.Body.MessageId);
}
else
{
MsgBox("Error");
}
Please give any brief example as above. Thanks

Posted: Sun Feb 17, 2008 4:07 pm
by alt
SubmitSmResp resp = client.Submit(data);

if (resp.Header.Status == CommandStatus.ESME_ROK)
{
MessageBox.Show(resp.MessageId);
}
else
{
MessageBox.Show("Error");
}