WAP PUSH MESSAGE

.NET library for SMPP protocol
Locked
majortargets
Posts: 54
Joined: Mon Nov 16, 2009 3:48 pm
Location: United Kingdom
Contact:

WAP PUSH MESSAGE

Post by majortargets » Thu May 24, 2012 3:35 pm

Hello Alt,

I tried to send wap push message with your dll but it is complaining about the first parameter i.e transaction ID. what am i suppose to add there. see may code below. Kindly share with me a working sample if you have it.

Public Sub WapPushSubmit(ByVal originator As String, ByVal destination As String, ByVal textmessage As String, ByVal title As String)
' Use this commented example to prepare and send Wap Push message.
Dim packets As List(Of Inetlab.SMPP.PDU.SubmitSm)
packets = client.PrepareWapPush(Byte.Parse("1"), Byte.Parse(tbSrcAdrTON), Byte.Parse(tbSrcAdrNPI), originator, Byte.Parse(tbDestAdrTON), Byte.Parse(tbDestAdrNPI), destination, textmessage, title)
client.SubmitAsync(packets)
End Sub
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: WAP PUSH MESSAGE

Post by alt » Wed May 30, 2012 7:33 pm

Hi majortargets,

Did you get any error message?

I think you need to replace parameter "textmessage" with url to wap page.
majortargets
Posts: 54
Joined: Mon Nov 16, 2009 3:48 pm
Location: United Kingdom
Contact:

Re: WAP PUSH MESSAGE

Post by majortargets » Wed May 30, 2012 9:07 pm

Hi Alt,

Thanks for your reply.

I got an error message which is related to the first parameter Byte.Parse("1"). I will update you with the exact error message.

The parameter text message is a url string, not a text
majortargets
Posts: 54
Joined: Mon Nov 16, 2009 3:48 pm
Location: United Kingdom
Contact:

Re: WAP PUSH MESSAGE

Post by majortargets » Sat Jun 02, 2012 6:16 pm

Hello,

I have tried it again and it is working now.

Thanks
Locked