|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Wap push need help
Hello to all of you.
I am doing a project and i want to implement wap push technology. How can i achieve this so that a wap page is pushed from a wta/wap server to a mobile phone who has subscribed to the service. Thanx. |
|
#2
|
|||
|
|||
|
to do a wap push
u need an acount on the sms gateway known as sms proxy of the operator you will use.. http://domainnameoftheopreatorgateway?cmd=SENDBINARY&pUser=&pPwd=&pSessionId=200412141122324242&pRetCode=&pService_Code=2222&pMsisdn=5332222222&pContent=090601AE02056A0045C60D03617370736D732E636F6D2F696D672F6D6D732D73616D706C652E676966000103546 8697320697320616E206578616D706C65207469746C6520666F722061205741502D50757368206D6573736167652E2E2E000 101&pXser=01070605040B8423F00201F70D0100&pNreq=F the format of the sms proxy can be changed from operator to operator this is the turkish operator Turkcell... the importance here is : pXser=01070605040B8423F00201F70D0100 and pContent=090601AE02056A0045C60D03617370736D732E636F6D2F696D672F6D6D732D73616D706C652E676966000103546 8697320697320616E206578616D706C65207469746C6520666F722061205741502D50757368206D6573736167652E2E2E000 101 the standar pXser for the sms is above well when we come to the content part here is how it is handled... lets asume that you have to push for www.google.com/hede/index.jsp?key=322 String content="http://www.google.com/hede/index.jsp?key=322"; if (content.substring(0,11).equals("http://www.")) { String urlheader="090601AE02056A0045C60D03"; //the standart header that makes the http://www. String url=content.substring(11); String text=wap_text; String ortaurl="000103"; String lasturlend="000101"; String sendtext=urlheader; for (int i=0;i<url.length();++i) sendtext=sendtext+new Integer(1).toHexString((int)(url.charAt(i))); //turn into hexa string here sendtext=sendtext+ortaurl; //add the middle header for (int i=0;i<text.length();++i) sendtext=sendtext+new Integer(1).toHexString((int)(text.charAt(i))); //turn intı hexa string here again the text u want to show as explanation sendtext=sendtext+lasturlend; //add the last header sendtext=sendtext.replaceAll("a","A"); sendtext=sendtext.replaceAll("b","B"); sendtext=sendtext.replaceAll("c","C"); sendtext=sendtext.replaceAll("d","D"); sendtext=sendtext.replaceAll("e","E"); sendtext=sendtext.replaceAll("f","F"); //a bad way of make hexa codes upercase lol content=sendtext; //final content } |
|
#3
|
|||
|
|||
|
You can send a WAP Push SMS (SI or SL) via SMS that triggers the application download via GPRS.
Last edited by jabba_29 : August 25th, 2005 at 08:25 PM. |
|
#4
|
||||
|
||||
|
as the theloveless says that's for his operator and there's so many ways to skin a cat: 64 leased, smpp, smtp, xml, soap, http, push, pull.....
different gateways = different variables. like oadc, originator, sender or from? anyway, my answer is wap push through a cron and http for the quickest easiest fix. get a gateway first tho - it'll help lol ![]()
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Wap push need help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|