Re: Wap Push Java Code

2009-03-03 Thread Ishtiaq Ahmed
temp = null; outs.close(); in.close(); //System.out.println("Server response:\n" + responseD + ""); return responseD; } catch (Exception e) {

Re: Wap Push Java Code

2009-03-03 Thread Monim Benaiad
t(true); >>conn.setDoOutput(true); >>conn.setUseCaches(false); >>conn.setRequestProperty("Content-Type", "multipart/related; >> boundary=asdlfkjiurwgasf; type=application/xml"); >> >>//conn.setRequest

Re: Wap Push Java Code

2009-03-02 Thread Ishtiaq Ahmed
conn.setRequestProperty("X-Kannel-From", smsc); conn.setRequestProperty("Content-Length", "" + content.length()); DataOutputStream outs = new DataOutputStream(conn.getOutputStream()); // Write out the bytes of the content string to the stream

Re: Wap Push Java Code

2009-03-01 Thread Ishtiaq Ahmed
ponse from the input stream. BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream())); String temp; while ((temp = in.readLine()) != null) { responseD += temp + "\n"; } temp = null;

Re: Wap Push Java Code

2009-03-01 Thread Monim Benaiad
quot;; } temp = null; outs.close(); in.close(); //System.out.println("Server response:\n" + responseD + ""); return responseD; } catch (Exception e) { e.printStackTrace(); retur

Wap Push Java Code

2009-02-26 Thread Ishtiaq Ahmed
Hi Fellows: Can someone help with the exact java code and minimum header set / PAP configuration / Content File... for sending the WAP Push through Kannel The problem with my code is that The message is being sent in two segments 2009-02-20 06:35:02 [23465] [2] DEBUG: WSP (UNIT

Re: Java Code

2006-09-01 Thread Kavuri Prasad
Hi All,   Here is the final Code to send wap push :)     -- Java code for wap push public boolean execute(String jar_url, String mobile) {     if (null == mobile) {    Log.debug("[Prasad] Unable to send message! target number is

Java Code

2006-08-31 Thread Fabian
Hi Prasad,   Since they've been so many posts that included your code, could you please post the "final" version of all your implementation code as you finally got it to work? Thanks! -- Fabián

Re: Java Code

2006-08-30 Thread Kavuri Prasad
Hi Hillel,   Do you need the java code for WAP PUSH? If so here it is:   -- Java code for wap push public boolean execute(String jar_url, String mobile) {     if (null == mobile) {    Log.debug("[Prasad] Unable to send me

Java Code

2006-08-30 Thread Hillel
Hi, Yes, please send the Java code. Do you know were you can find specifications on the headers. Thanks

Re: Please send Java Code [...for building Push SI]

2005-08-25 Thread Christian Vandrei
Hillel wrote: Hi, I saw your Post to help a fellow Kannel user. Please will you send me your Java code to build a push SI as I'd like to see how its done in Java. Thanks Hi Hillel (anybody else who might be interested in code like this), //*snip* URL sendURL = null; // will co