Problems with WAP PUSH by WEB Interface

Problems with WAP PUSH by WEB Interface SearchSearch
Author Message
Neoera
Unregistered guest
Posted on Friday, February 18, 2005 - 08:54 am:   

Hi,
I am programing a java function to send a wap push message as following:

....
String url = "http://127.0.0.1:8800/?PhoneNumber="+phoneNumber
+"&Binary=1"
+"&WAPURL="+URLEncoder.encode(pushURL,"UTF-8")
+"&Text="+URLEncoder.encode(text,"UTF-8")
+"&Sender="+sender
+"&ContinueURL="+CONTINUE_URL;

URL connectorURL=new URL(url);
HttpURLConnection connection;
connection= (HttpURLConnection)connectorURL.openConnection();
connection.setRequestMethod("GET");
connection.setRequestProperty("Content-Type", "text/html; charset=utf-8");
....

As result, the received wap-push message is unrecognized characters, and the message is not a push message but a sms message, even if the text is "abc". What's wrong with me? But it is OK when send SMS message as:

String url = "http://127.0.0.1:8800/?PhoneNumber="+phoneNumber
+"&Binary=1"
+"&Text="+URLEncoder.encode(text,"UTF-8")
+"&Sender="+sender
+"&ContinueURL="+CONTINUE_URL;

Another question: can i send a long wap push message more than 120 characters(e.g. 300 chars) without automaticly splitting by sms gateway? Here assuming the telcomcompany and cellphone support long message.

thanks

Neoera
China