capture the success response after submitting the message???

Smpp v3.4 client

Moderator: alt

Locked
shuriz
Posts: 8
Joined: Thu Feb 14, 2008 7:12 am

capture the success response after submitting the message???

Post by shuriz » Sun Feb 17, 2008 3:14 pm

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
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Feb 17, 2008 4:07 pm

SubmitSmResp resp = client.Submit(data);

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