temp = null;
outs.close();
in.close();
//System.out.println("Server response:\n" +
responseD + "");
return responseD;
} catch (Exception e) {
t(true);
>>conn.setDoOutput(true);
>>conn.setUseCaches(false);
>>conn.setRequestProperty("Content-Type", "multipart/related;
>> boundary=asdlfkjiurwgasf; type=application/xml");
>>
>>//conn.setRequest
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
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;
quot;;
}
temp = null;
outs.close();
in.close();
//System.out.println("Server response:\n" + responseD + "");
return responseD;
} catch (Exception e) {
e.printStackTrace();
retur
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
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
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
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
Hi,
Yes, please send the Java code. Do you know were you can find
specifications on the headers.
Thanks
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
11 matches
Mail list logo