Multimedia wap push

Multimedia wap push SearchSearch

SMS & MMS Technical Forum » NowSMS Support - MMS & Advanced Issues (Product Support Only) » Archive through December 01, 2004 » Multimedia wap push « Previous || Next »
Author Message
Anonymous
 
Posted on Sunday, March 14, 2004 - 12:36 pm:   

is it possible for a the image to be shown inline in a multimedia wap push message like a mms message instead of having the user to download the image file? How can we change the structure of the wml file in the multimedia wap push message?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2111
Registered: 10-2002
Posted on Monday, March 15, 2004 - 09:44 pm:   


quote:

is it possible for a the image to be shown inline in a multimedia wap push message like a mms message instead of having the user to download the image file? How can we change the structure of the wml file in the multimedia wap push message?




A scaled down copy of the image is displayed in the main link.

This is because a number of popular phones have strict size limitations on the size of an image that can be displayed as an in-line "img" reference. But these phones allow larger sizes to be supported via a spearate "download" link.

That is why we do it this way. It's not as seamless as an MMS, but it is designed to work on a wide variety of different phones and different "quirks" in the phone software.

Unfortunately, the WML is not customisable. I'd like to see this in the future, but we haven't been able to figure out a good template approach for doing this.

The pre-defined text that is added to the message is customisable for language translations, but that is the extent of changes that can be made to structure. (See http://support.nowsms.com/discus/messages/1/670.html)

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 35
Registered: 10-2003
Posted on Thursday, May 20, 2004 - 11:24 pm:   

how about making a subfolder named wml_template.
In there we can make templates and give them a filename.
The things that nowsms want to put into there we can add by writing @@subject@@ and you replace that string with the subject text. and so on.
When we do a post to nowsms we add a parameter like &template=bryce.wml
if the parameter is not there, you just use your default template.


;)Lars
Anonymous
 
Posted on Saturday, May 22, 2004 - 04:27 am:   

lars can u post an example?
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 36
Registered: 10-2003
Posted on Sunday, May 23, 2004 - 11:04 pm:   

<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="content-type" content="text/xml; charset=windows-1252" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
</head>
<template>
<do type="prev" name="Tilbage" label="Tilbage"><prev/></do>
<do type="accept" label="Hovedmenu" name="Hovedmenu"><go href="http://world.orange.dk/wml/default.asp"/></do>
</template>
<card id="main" title="Orange World">
<p>
<img width="128" src="http://world.orange.dk/wml/images/topbar/128x30.gif" alt="Orange World" />
</p>
<p>
<select ivalue="0">
<option value="">Menu:</option>
<option onpick="spil.asp">Spil</option>
<option onpick="sjov.asp">Sjov</option>
<option onpick="information.asp">Information</option>
<option onpick="vi_anbefaler.asp">Vi anbefaler</option>
<option onpick="kun_for_voksne_tjek.asp?url=kun_for_voksne.asp&amp;camefrom=default.asp" >Kun for voksne</option>
</select>
</p>
<!-- END TOP -->
<p>

</p>
<b>Your order:</b>
<br /><br />
<b>From:</b> @@FROM@@
<br/>
<b>Subject:</b> @@SUBJECT@@
<br/><br/>
@@MESSAGETEXT@@
<br/>
@@PREVIEW@@
<br/>
Download your content: @@DOWNLOADURL@@

</p>
<p>
<a href="http://world.orange.dk/wml/support.asp">Click here for support</a>
<br />
<br />
(c) Orange A/S, Denmark
</p>
</card>
</wml>

Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 37
Registered: 10-2003
Posted on Monday, May 24, 2004 - 01:31 am:   

The example above could be saved to at file, and nowsms could use this as the template.
Now we have a tool that is powerfull and open so that we can use the multimedia wappush towards our customers...
Kent Williams
Moderator
Username: Kent

Post Number: 77
Registered: 10-2003
Posted on Wednesday, May 26, 2004 - 07:21 pm:   

Hi Lars,

Bryce is on light duty this week (personal house moving), so I'm helping him out some (while he works for his wife this week ).

The template idea does seem to make sense. I think our hangup has been over the fact that there can be multiple content objects in a single message (and possibly multiple text objects, although that is less likely).

So we'd probably need some delmiters in the template to simplify the processing in case there were multiple objects. So we'd need to do something like this:

@@BEGINMESSAGETEXT@@
@@MESSAGETEXT@@
<br/>
@@ENDMESSAGETEXT@@

@@BEGINCONTENT@@
@@PREVIEW@@
<br/>
Download your content: @@DOWNLOADLINK@@
@@ENDCONTENT@@

We'd replace @@PREVIEW@@ with an img link, if available.

@@DOWNLOADLINK@@ would have a link be replaced with an "a href" to download the content, with the filename inside of the anchor.

To allow more flexiblity, maybe there should also be @@DOWNLOADFILENAME@@ and @@DOWNLOADURL@@ options, so that it is possible to build your own anchor.

That would seem like a good idea to me. I'll have to discuss with Bryce and the rest of the team, and see what they think.

--
Kent Williams
Now Wireless Support
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 40
Registered: 10-2003
Posted on Wednesday, May 26, 2004 - 09:44 pm:   

Hi Kent.

Good to know you're still alive ;-)
Your comments seems fine to me.
As long as you undestand the us that uses nowsms has many customers. And each customer wants to personalize as much as possible. And the wappush that the user enters to get content is certanly very important to our customers.
I tihnk you comments are fine, and i hope you will implement it, so i can start using the multimedia wappush seriously.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 42
Registered: 10-2003
Posted on Wednesday, June 02, 2004 - 12:58 am:   

Any news on this issue ?

;)Lars
Anonymous
 
Posted on Saturday, June 05, 2004 - 03:38 am:   

Can u guys save it inside a .wml file for me to try to download. Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2772
Registered: 10-2002
Posted on Wednesday, June 09, 2004 - 09:46 pm:   

Lars,

Ok. An update on this.

We worked out an implementation similar to what Kent described above, however with some subtle differences. Basically, some of the keywords were changed for consistency.

v5.50a will look for a multimedia WAP push template file named MMWAP-TEMPLATE.WML, which needs to be stored in the MMSCDATA subdirectory. (If this file is not present, or is invalid, NowSMS will continue to use the inbuilt formatting of previous releases.)

The following is a sample template that produced output similar to the default inbuilt MMWAPPush template:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="@@SUBJECT@@">
<p>
<b>From:</b> @@FROM@@
<br/>
<b>Subject:</b> @@SUBJECT@@
<br/>
<br/>
@@BEGINTEXT@@
@@TEXT@@
<br/>
@@ENDTEXT@@
@@BEGINCONTENT@@
@@CONTENTPREVIEW@@
<br/>
@@CONTENTLINK@@
<br/>
@@ENDCONTENT@@
</p>
</card>
</wml>

Basically, the replaceable parameters that are supported are as follows:

@@FROM@@ - From/sender information
@@SUBJECT@@ - Subject text

There are then text blocks and content blocks. Text blocks will be used for any text submitted with the "MMSTEXT" variable, and for the content of any text files.

Content blocks contain images and other content.

A text block is delimited by @@BEGINTEXT@@ and @@ENDTEXT@@ markers. For each text block, the content between these markers will be inserted into the message. Within this block, a replaceable parameter of @@TEXT@@ is a placeholder for the text.

A content block is delimited by @@BEGINCONTENT@@ and @@ENDCONTENT@@ markers. For each content block, the content between these markers will be inserted into the message. Within this block, the following replaceable parameters are supported:

@@CONTENTPREVIEW@@ - For images only, this parameter will be replaced by an "img" link that points to a scaled down preview of the image. (For other content types, this will be blank.)

@@CONTENTLINK@@ - This builds a preformatted anchor link for downloading the content, using the following format:

<a href="link">Download image/audio/video/file Filename.Ext</a>

"image", "audio", "video", or "file" is automatically inserted based upon the content type. (See http://support.nowsms.com/discus/messages/1/670.html for the ability to translate these strings.)

You do not have to use the @@CONTENTLINK@@ parameter, and instead can build your own anchors.

@@CONTENTURL@@ - The URL for the content will be inserted into this parameter if you wish to build your own anchor.

@@CONTENTFILENAME@@ - The original filename for the content will be inserted into this parameter.


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2773
Registered: 10-2002
Posted on Wednesday, June 09, 2004 - 10:07 pm:   

Anonymous,

An example of what an Multimedia WAP Push can look like can be accessed at the following URL:

http://www.nowsms.com/download/mmwap.wml
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2774
Registered: 10-2002
Posted on Wednesday, June 09, 2004 - 10:12 pm:   

The v5.50a version that has support for using a template for the multimedia WAP Push feature can be downloaded at the following link:

http://www.nowsms.com/download/nowsms550a.zip

The files in this ZIP can be used to update an existing v5.50 installation.
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 52
Registered: 10-2003
Posted on Wednesday, June 09, 2004 - 11:30 pm:   

YIIIHAAAA.

This is exactly why i love this company and the nowsms app.!!!!!
I am installing the files right now, and will get back to you as soon as i have tested it.

Meanwhile...
All we need now is the ability to make nowsms create a mulitmedia wappush and not send the actual wappush, but instead just return an url as answer to the request...


Bryce you and nowsms rules.....


;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 53
Registered: 10-2003
Posted on Thursday, June 10, 2004 - 12:34 am:   

BUGLIST:

It does not take the file MMWAP-TEMPLATE.WML
The file has been validated by the w3 validator.

Here is the source:


<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="content-type" content="text/xml; charset=windows-1252" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
</head>
<template>
<do type="prev" name="Tilbage" label="Back"><prev/></do>
<do type="accept" label="Hovedmenu" name="Hovedmenu"><go href="http://world.orange.dk/wml/default.asp"/></do>
</template>
<card id="main" title="Orange World">
<p>
<img width="128" src="http://world.orange.dk/wml/images/topbar/128x30.gif" alt="Orange World" />
</p>
<p>
<select ivalue="0">
<option value="">Menu:</option>
<option onpick="http://world.orange.dk/wml/spil.asp">Games</option>
<option onpick="http://world.orange.dk/wml/sjov.asp">Fun</option>
<option onpick="http://world.orange.dk/wml/information.asp">Information</option>
<option onpick="http://world.orange.dk/wml/vi_anbefaler.asp">We Recommend</option>
<option onpick="http://world.orange.dk/wml/kun_for_voksne_tjek.asp?url=kun_for_voksne.asp&amp;camefrom=default.asp">Adults only</option>
</select>
</p>
<p>
Your order:<br />
</p>

<p>
@@BEGINCONTENT@@
@@CONTENTPREVIEW@@
<br/>
@@CONTENTLINK@@
@@ENDCONTENT@@
<br/>
</p>

<p>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/games.gif" /><a href="spil.asp">Games</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/gallery.gif" /><a href="sjov.asp">Fun</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/about.gif" /><a href="kun_for_voksne_tjek.asp?url=kun_for_voksne.asp">Adults only</a>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/orange.gif" /><a href="information.asp">Information</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/fordele_lille.gif" /><a href="http://app1.unwire.dk/trumf/trumf">Orange Trumf</a>&nbsp;
<br />
</p>
<p>
(c) Orange A/S
</p>
</card>
</wml>
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 54
Registered: 10-2003
Posted on Thursday, June 10, 2004 - 12:47 am:   

Ok... I got it to take the template and use it, but not without errors.

First of all, i found out that @@FROM@@ and @@SUBJECT@@ had to be there.
The same with
@@BEGINTEXT@@
@@TEXT@@
@@ENDTEXT@@

I did not wanted to use these, so i put them into a remark area like this: <!-- hey -->

Here is the template code:


<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="content-type" content="text/xml; charset=windows-1252" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
</head>
<!-- @@FROM@@ -->
<!-- @@SUBJECT@@ -->
<!--
@@BEGINTEXT@@
@@TEXT@@
@@ENDTEXT@@
-->
<template>
<do type="prev" name="Tilbage" label="Back"><prev/></do>
<do type="accept" label="Hovedmenu" name="Hovedmenu"><go href="http://world.orange.dk/wml/default.asp"/></do>
</template>
<card id="main" title="Orange World">
<p>
<img width="128" src="http://world.orange.dk/wml/images/topbar/128x30.gif" alt="Orange World" />
</p>
<p>
<select ivalue="0">
<option value="">Menu:</option>
<option onpick="http://world.orange.dk/wml/spil.asp">Games</option>
<option onpick="http://world.orange.dk/wml/sjov.asp">Fun</option>
<option onpick="http://world.orange.dk/wml/information.asp">Information</option>
<option onpick="http://world.orange.dk/wml/vi_anbefaler.asp">We Recommend</option>
<option onpick="http://world.orange.dk/wml/kun_for_voksne_tjek.asp?url=kun_for_voksne.asp&amp;camefrom=default.asp">Adults only</option>
</select>
</p>
<p>
Your order:<br />
</p>

<p>
@@BEGINCONTENT@@
@@CONTENTPREVIEW@@
<br/>
@@CONTENTLINK@@
@@ENDCONTENT@@
<br/>
</p>

<p>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/games.gif" /><a href="spil.asp">Games</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/gallery.gif" /><a href="sjov.asp">Fun</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/about.gif" /><a href="kun_for_voksne_tjek.asp?url=kun_for_voksne.asp">Adults only</a>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/orange.gif" /><a href="information.asp">Information</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/fordele_lille.gif" /><a href="http://app1.unwire.dk/trumf/trumf">Orange Trumf</a>&nbsp;
<br />
</p>
<p>
(c) Orange A/S
</p>
</card>
</wml>



Here is the code that it creates based on the template:



<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="content-type" content="text/xml; charset=windows-1252" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
</head>
<!-- gigho -->
<!-- SLidt SLuf -->
<!--
HENT DEN...Nu med DRM
<img src="/20040610/00/5916C2DA/amor-1-small.jpg" alt="Image"/>
<br/>

<br/>
Click here to download your content.: <a href="/20040610/00/5916C2DA/amor.gif.dm">amor.gif</a>
<br/>

-->
<template>
<do type="prev" name="Tilbage" label="Back"><prev/></do>
<do type="accept" label="Hovedmenu" name="Hovedmenu"><go href="http://world.orange.dk/wml/default.asp"/></do>
</template>
<card id="main" title="Orange World">
<p>
<img width="128" src="http://world.orange.dk/wml/images/topbar/128x30.gif" alt="Orange World" />
</p>
<p>
<select ivalue="0">
<option value="">Menu:</option>
<option onpick="http://world.orange.dk/wml/spil.asp">Games</option>
<option onpick="http://world.orange.dk/wml/sjov.asp">Fun</option>
<option onpick="http://world.orange.dk/wml/information.asp">Information</option>
<option onpick="http://world.orange.dk/wml/vi_anbefaler.asp">We Recommend</option>
<option onpick="http://world.orange.dk/wml/kun_for_voksne_tjek.asp?url=kun_for_voksne.asp&amp;camefrom=default.asp">Adults only</option>
</select>
</p>
<p>
Your order:<br />
</p>

<p>
<br/>
</p>

<p>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/games.gif" /><a href="spil.asp">Games</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/gallery.gif" /><a href="sjov.asp">Fun</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/about.gif" /><a href="kun_for_voksne_tjek.asp?url=kun_for_voksne.asp">Adults only</a>
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/orange_icons/orange.gif" /><a href="information.asp">Information</a>&nbsp;
<br />
<img alt="Loading" src="http://world.orange.dk/wml/images/ikoner/fordele_lille.gif" /><a href="http://app1.unwire.dk/trumf/trumf">Orange Trumf</a>&nbsp;
<br />
</p>
<p>
(c) Orange A/S
</p>
</card>
</wml>


The error is...
That it takes both the @@BEGINCONTENT@@ and the @@BEGINCONTENT@@ and puts them at the same spot.
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 55
Registered: 10-2003
Posted on Thursday, June 10, 2004 - 12:56 am:   

Another little issue with the multimedia wappush.
If the content is a .gif file, you guys still convert the preview-image to a jpeg.
Now some phones still dont support jpeg like the older SonyEricssons T68i, T300 and T310.
So i think it would bw wisely if you guys did not do the conversion, but only the resizing.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 56
Registered: 10-2003
Posted on Thursday, June 10, 2004 - 01:17 am:   

One last thing (then i'll stop bothering you;-).

This is great for sure...
It would be perfect if we could have several templates. When posting to nowsms, requesting it to create a multimediawappush, we could tell it which template to use.
Then we could use this service to all of our customers.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2796
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 07:31 pm:   

Lars,

For the first issue ...

@@FROM@@ and @@SUBJECT@@ are optional (as they should be, because they definitely do not apply to all needs).

But we do require a @@BEGINTEXT@@ and @@ENDTEXT@@ section. The good news is that if there is no text component of your content submission, then this section should not be included in the resulting message.

Take the @@BEGINTEXT@@ and @@ENDTEXT@@ markers out from the comment section, and you should get the results that you want.

Also, feel free to remove the comment section entirely, and just leave out the @@FROM@@ and @@SUBJECT@@ variables.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2797
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 07:38 pm:   

Lars,

Regarding GIF vs. JPG in the preview, we picked JPG primarily because GIFs can be animated. We thought animation should be stripped from the preview.

I'm not sure about the T300/T310, but the T68i should be fine with a JPG. I know I've tested this with a T68i, as well as an older T68.

But if the device doesn't support JPG, we should detect this (unless the WAP gateway in use totally screws up the headers), and perform a conversion.

One of the phones that I've used for testing is an Ericsson R520. For that phone, the images get converted to WBMP.

So it's possible that I haven't noticed that for some other phones the preview JPG is getting converted back to GIF when the phone connects.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2798
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 07:52 pm:   

And regarding the multiple template support ... we are going to figure out a way to support this, it's just going to take a bit longer.

We have to make some internal adjustments to facilitate this.

-bn
Anonymous
 
Posted on Thursday, June 10, 2004 - 08:36 pm:   

"This is because a number of popular phones have strict size limitations on the size of an image that can be displayed as an in-line "img" reference. But these phones allow larger sizes to be supported via a spearate "download" link. "

What is the max. size that will work for all phones in general? We tested MMSTEXT=[[[img src=xxx]]], just to add company logo, and phone like P900 when connecting the received WAP PUSH URL, it shows "page has error", when we removed the img src, it works ok.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2808
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 09:03 pm:   

I don't think the P900 has any issues in this area. But many other SonyEricsson phones cannot handle in-line img references larger than around 3K.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2809
Registered: 10-2002
Posted on Thursday, June 10, 2004 - 09:07 pm:   

P.S. - Make sure that the "img src" reference is properly formatted, in particular add quotes around the "src" value.

For example:

[[[img src="http://www.nowsms.com/media/logo.gif"/]]]

For that matter, also note that some devices will complain if an "img" reference does not have an "alt" tag, so a more proper example would be this:

[[[img src="http://www.nowsms.com/media/logo.gif" alt="NowSMS"/]]]
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2873
Registered: 10-2002
Posted on Friday, June 18, 2004 - 06:49 pm:   

We're making adjustments to the MM WAP Push Template support.

In the next release, a variable MMWAPTemplate=filename can be included in the request to specify the name of a template to be used.

If this parameter is not specified, NowSMS will look for "MMWAP-TEMPLATE.WML".

All template files must be stored in the MMSCDATA subdirectory of the NowSMS installation.

Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 62
Registered: 10-2003
Posted on Friday, June 18, 2004 - 11:34 pm:   

YEs, and i am looking very much forward to these great changes ;-)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2916
Registered: 10-2002
Posted on Friday, June 25, 2004 - 08:15 pm:   

We've still got testing to perform, but we also implemented an "MMWapURLOnly=Yes" parameter. When this parameter is set, a WAP push message is not generated, and the URL for the MMWapPush is returned in a "Location:" header.

We should have an update to post toward the middle of next week.

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 64
Registered: 10-2003
Posted on Friday, June 25, 2004 - 10:20 pm:   

Regarding the "MMWapURLOnly=Yes"...
Is that available now ?
If yes, i'd really like to start testing on it...

;)Lars
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2973
Registered: 10-2002
Posted on Wednesday, June 30, 2004 - 09:07 pm:   

Hi Lars,

We wanted to make a few more changes before the next update was posted.

However, some additional changes were more complicated than expected, so the update keeps getting delayed.

However, there is a version that does include these changes (MMWAPTemplate=templatename & MMWAPURLOnly=Yes) ...

http://www.nowsms.com/download/nowsms550b.zip

Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 68
Registered: 10-2003
Posted on Thursday, July 01, 2004 - 01:19 am:   

Ok Bryce.

Did some testing.
It does not work, or i am doing something very wrong...

I tried to do a post and read the returning data and headers.
According to smsdebug.log i should get a location: header and some other stuff, but nothing of that was there.

Here are some data for you to read:





01:04:16:953 [6] RetrieveURL: got success response
01:04:16:953 [6] RetrieveURL: image/jpeg
01:04:17:234 [6] ThreadProcessConnection: Checking Message-ID MMS header
01:04:17:234 [6] ThreadProcessConnection: ‹20040701/01/EAAE6C70@xxx.xxx.xxx.xxx
01:04:17:234 [6] ThreadProcessConnection: C:\NowSMS\MMSCDATA\20040701/01/EAAE6C70.wml
01:04:17:234 [6] ThreadProcessConnection: HTTP/1.0 302 Redirect
Content-length: 0
Location: http://xxx.xxx.xxx.xxx:9012/20040701/01/EAAE6C70.wml?id=29800400

01:04:39:578 [6] ThreadProcessConnection: Processing connection from zzz.zzz.zzz.zzz...

01:04:39:593 [6] ThreadProcessConnection: Processing request /MMSWAPPush=YES&MMWapURLOnly=Yes&MMSFROM=ginge&MMSSubject=soverskrift&MMSText=te st+1&PhoneNumber=29800400&MMSFile=https%3A%2F%2Fbryce.mobilenation.dk%2Flogoserv er%2Fimages%2Fs300%2F%2F56C0086E-1B92-40F0-B64C-2915EC803368.jpg&Text=https+test

01:04:39:593 [6] Debug: 1 recipient entries
01:04:39:593 [6] Debug: 29800400




Got these data/headers in return:
Content-type: text/html
Expires: Tue, 01 Jan 1980 1:00:00 GMT
Cache-Control: no-cache
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 69
Registered: 10-2003
Posted on Thursday, July 01, 2004 - 01:43 am:   

ok i made it work.
the reason it did not work was the HTTPS url to the content.
When i changed that, it worked.

I see what you are doing now.
Giving me a http status 302, content-length=0 and it redirects to the WML file you create.

It's smart, and then it's not smart. I'd just like to have the url returned to me, so i can do some logging, or some billing, or something else, before i redirect the user to the page.
The way it runs now is very usefull. THANKYOU for that Bryce and your team ;-). But i just don't like that i have no control over the session.

Anywayz... I'll give it a try again tommorrow to see if i can do anything inbetween your status 302 and the actual redirection... anything is possible ;-)


;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 70
Registered: 10-2003
Posted on Thursday, July 08, 2004 - 11:22 pm:   

Are u there Bryce ?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3029
Registered: 10-2002
Posted on Tuesday, July 13, 2004 - 09:15 pm:   

I'm back (but it's going to take me awhile to fill in the missing details on all the various threads out here).

You will be glad to know that in the meantime we have added support for https:// ... we're not officially saying that we support it in the "MMSFILE" parameter, but that should be working. Details on the HTTPS support can be found toward the end of the following thread:

http://support.nowsms.com/discus/messages/1/5029.html

(And when I can get myself organised again, I'll post more complete update details in a separate thread.)

We're open to other ideas on how to return the URL for the MMWAPUrlOnly setting. It is not documented yet, and I've been referring people who ask about it to this thread, so I think it can still be changed. We thought it would be clever to return the URL in the "Location:" header ... but I can see where this would cause problems in some environments.

How would you like it to be returned?
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 72
Registered: 10-2003
Posted on Wednesday, July 14, 2004 - 11:39 pm:   

Jsut output it after the headerdata.
Maybe something like: mmsurl=[URL]

;)Lars
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3077
Registered: 10-2002
Posted on Friday, July 16, 2004 - 09:17 pm:   

Lars,

Ok. We'll change it in the next update. It will be a simple "text/plain" response, with URL=[URL] (sorry, no XML ).

For now, I've put an upload to http://www.nowsms.com/download/lars.zip with this change, and not much else.

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 75
Registered: 10-2003
Posted on Friday, July 16, 2004 - 10:37 pm:   

Fantastic Bryce.

I will test it tonight.
..::Just can't wait::..


;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 76
Registered: 10-2003
Posted on Saturday, July 17, 2004 - 10:07 pm:   

It works perfectly Bryce.
you got an ending CrLf there, but i took it away in my script.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 77
Registered: 10-2003
Posted on Saturday, July 17, 2004 - 11:04 pm:   

The MMWAPTemplate=templatename also works perfectly.
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 78
Registered: 10-2003
Posted on Saturday, July 17, 2004 - 11:38 pm:   

Another "not so important" issue...
When using MMSWAPPush everything rocks.
But the is a small glitch when wanting to send a javagame to a customer.
Downloading a javagame consists of two files. a .jad and a .jar file.
The jad file hold info about the game, and info about the game-file, which is the jar-file.
The easiest way is to include both files when posting to nowsms. But the wml page that nowsms generates creates links to both files. Normaly it should do that, but when talking javagames it only ought to display a link to the .jad file, and only download the jarfile to the same directory as the jad-file.
I know that we could just modify the jad-file, but we o not do that due to contracts with game-developers, etc.

Bryce, is there a way to tell nowsms to download the file, but not to display a link in the nowsms-generated WML-file ?

I know this is a bit off-limits, but still it would be cool if nowsms were able to do this. The main reason is for our content-delivery-system to be as simple as possible, and so on...


;)Lars

Topics Topics Search Last 30 Days Login Login / Register Logout Logout