House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

MMS in ColdFusion?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Greg,
Rich
05/16/08 10:49 A
Afternoon Greg,
Robert Rawlins
05/16/08 11:17 A
Thanks..
Greg Morphis
05/16/08 11:32 A
Robert,
Rich
05/16/08 11:38 A
Apparently they have SOAP set up..
Greg Morphis
05/16/08 11:44 A
Cool I appreciate it.
Greg Morphis
05/16/08 03:21 P
Greg,
Rich
05/16/08 03:47 P
port 80 got it..
Greg Morphis
05/16/08 04:11 P
I see in the DEBUG that it has
Greg Morphis
05/16/08 04:20 P
Hello Guys,
Robert Rawlins
05/16/08 12:02 P
Rich..
Greg Morphis
05/16/08 12:15 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 10:32 AM

I did some google searching last night and found this : http://www.bennadel.com/blog/794-Sending-SMS-Picture-Messages-With-ColdFusion-And-CFMail.htm however when I tried it on my phone (which can send and receive picture messages)... it just came across as plain text.. I couldn't find much else on the subject utilizing CF, so reaching out here... Has anyone tried and successfully sent an MMS picture message? Thanks

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/16/2008 10:49 AM

Greg, I just completed a project that involved MMS.  I don't know of a really simple way to send MMS messages from CF without the use of java.   I used the openwave MMS SDK in combination with custom java classes to deliver MMS messages using the MM7 protocol under CF.  If you would like I can provide some of the problems / solutions to save you a few steps if you chose to take this road. Rich Kroll

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 11:08 AM

Please do.. send me anything you can. I'll check out openwave MMS SDK ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Rawlins
05/16/2008 11:17 AM

Afternoon Greg, I've done my fair share of SMS and MMS messaging in the past from cf applications. You should'nt need any JAVA work arounds however I would definitly stear clear of the cfmail route, people have reported many problems about that in the past, ol' Ben did a good job of pointing those out in that blog post. You need two things to get yourself running: A) An aggregator. This is a service provider who will send the messages to your recipients. B) The cfhttp tag. This will allow you to hit the aggregators webservices and make your requests to send messages. For MMS messages you usualy have a field which contains a base64 encoded binary data of the file you're looking to send, this can be gotten using simple cffile reads and the toBase64() method. Do some googling around for SMS aggregators, there are many to choose from and they usualy offer a free trial with 10-20 message credits for you to play around with. They will also offer a bunch of different communication methods so you dont have to use cfhttp if you dont want. Robert Please do.. send me anything you can. I'll check out openwave MMS SDK ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 11:32 AM

Thanks.. actually I think we have one.. What do these usually expect? (what do I need to send to the service?) Thanks ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/16/2008 11:38 AM

Robert, Were you doing a http post to the aggregator, or is there a way to send via MM7 that I completely missed? Rich

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 11:44 AM

Apparently they have SOAP set up.. if I just hit the URL I get SOAP Message Router Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 11:49 AM

I just spoke with my contact.. and they mention MM7 traffic via a VASP This is all greek to me.. will an SMS Aggregator still work here? Or will I need to go the openwave route? Thanks guys ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/16/2008 01:25 PM

> I just spoke with my contact.. and they mention > > MM7 traffic via a VASP > > This is all greek to me.. will an SMS Aggregator still work here? Or > will I need to go the openwave route? > Ok, I'm assuming you spoke with your contact at your SMS aggregator and this is what they told you. That said, here are the basic definitions you will need to remember to find your way out of acronym hell: SMSC - Short Message Service Center (your SMS Aggregator) MMSC - Multimedia Message Service Center (usually provided by your aggregator) MM7 - This is the delivery protocol for the messages VASP - Value Added Service Provider - you ;) ShortCode - the (generally) 6 digit number you were given for your SMS/MMS traffic (phone number) So they are saying that you send them MMS messages via MM7 ;) It sounds like you are in the same boat I was, so I hope the following helps: The first place I started was with the Openwave SDK and its example files. The hardest part there is configuring the correct properties; once configured properly, you can send to your MMSC using the sample files (they do need to be modified slightly).  I strongly suggest running them from a shell as you can see encoding for MM7 and will start to get a "feel" for the protocol.  I would suggest using the 'MM7MessageSender' as this is the most robust example and shows many of the things you will need to work with.  You will need to alter a few parameters in the source code for it to authenticate successfully (namely vaspid, vasid, & sourceAddress - see below). There are a few details you will want to get from the MMSC in order to be able to connect to them successfully: mmscUrl = the url to connect to Username = self explanitory Password = self explanitory MM7 version = what version of the MM7 protocol are they using (REL-5-MM7-1-0, REL-5-MM7-1-1, REL-5-MM7-1-2 or REL-5-MM7-1-3) Vaspid = the VASP id provided by the aggregator, generally required for authorizaion Vasid = the VAS id provided by the aggregator, generally required for authorizaion Sender address = your short code (this was required by our MMSC to deliver YMMV) Once you have these details you can use the MM7MessageSender to deliver messages via the example applications. From here, your next steps are going to vary depending on the needs of your application.  We needed a high volume, scalable solution, so we created supporting java classes that delegated to the SDK for delivery and exposed one java 'service' class to CF to initiate the send. Let me know if I can be of further help. p.s. - It would probably save you endless hours of development if you could find a MMSC that offered a RESTful web service for delivery so you could use Roberts solution. HTH, Rich Kroll

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 03:21 PM

Cool I appreciate it. I've got the vaspid, vasid, url, short code, and xml schema. username and password is not required. I looked in the MM7MessageSender.. I only see the vaspid to edit.. I played with the send.bat in the standalone folder and modified the url there.. I keep getting C:\vaspsdk\samples\standalone>send [Start Thread[Thread-0,5,main] Iteration 0] APIException submitting message: username/password not supplied(ClientError:2000 ) [End Thread[Thread-0,5,main] Iteration 0] Finished 1 threads each with 1 iterations 0 iterations succeeded Messages per sec: 7.0921984 something is expecting a username/password but one's not required. Ideas? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/16/2008 03:47 PM

Greg, I did a quick scan of the SDK source, and username / pass are required attributes.  You can test and see if you can pass guest / dummy credentials and see if you can connect? I sent you a gtalk contact request, so ping me on IM if you need a hand Rich Kroll

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 03:55 PM

behind a firewall here at work.. no gtalk for me. I'll give that a try.. Thanks ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 04:04 PM

dammit.. I don't need to put in a port number either. But I get a damn error message "port out of range" ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 04:11 PM

port 80 got it.. and it looked like it was going to work! but didn't.... ------=_Part_0_4916061.1210968518729 Content-Type: text/plain; name=test1.txt; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=test1.txt Content-ID: <generic_content_id> this is a text content file which has just one line ------=_Part_0_4916061.1210968518729-- 672  [Thread-0] DEBUG com.openwave.mms.mm7.RelayConnection  - [End Outgoing Requ est to Relay] APIException submitting message: http return code: 500(ClientError:2000) [End Thread[Thread-0,5,main] Iteration 0] Finished 1 threads each with 1 iterations 0 iterations succeeded Messages per sec: 0.92764384 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 04:20 PM

I see in the DEBUG that it has <VASPID>my_id</VASPID> I changed this in the MessageSender file.. request.setVaspID( "myRealVaspId" ); is there some other place in the src/ folder that defaults this to "my_id" ? the windows text search sucks ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 04:35 PM

I found it in C:\vaspsdk\src\samples\standalone Same error.. http code 500 235  [Thread-0] DEBUG com.openwave.mms.mm7.RelayConnection  - [End Outgoing Requ est to Relay] APIException submitting message: http return code: 500(ClientError:2000) [End Thread[Thread-0,5,main] Iteration 0] Finished 1 threads each with 1 iterations 0 iterations succeeded Messages per sec: 1.8281536 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 05:00 PM

How can I add <VASID> to the generated XML? there's not an option for it in the send.bat file? Thanks ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/19/2008 10:18 AM

>How can I add <VASID> to the generated XML? there's not an option for it in >the send.bat file? You will need to modify the java source (MM7SenderAndReceiver.java) and add: request.setVasId(yourVasId); Then recompile, run it again, and you'll see it in the XML packet. HTH, Rich Kroll

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/19/2008 10:24 AM

I found it in C:\vaspsdk\src\samples\standalone ----- Excess quoted text cut - see Original Post for more ----- Greg, It depends on how you are executing the classes, if you are within an Eclipse project and running the java from the IDE, executing the jar, or if you are using the examples and send.bat.  If you are using the samples, it is executing the class files in the same directory (/examples/standalone), and you will need to edit them and recompile to that directory.  If you are attempting to execute the jar file, you will need to edit the source under /src and then export a new jar file to see your changes. HTH, Rich Kroll

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/19/2008 10:32 AM

I tried adding the project in Eclipse and it shows 100+ errors. So I have mainly been messing with the standalone folder.. I tried to compile the .java file using the command javac MM7MessageSender.java and got this.. MM7MessageSender.java:507: cannot find symbol symbol  : class MessagingException location: class TaskThread             } catch( MessagingException me ) {                      ^ 94 errors 1 warning ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/19/2008 11:03 AM

----- Excess quoted text cut - see Original Post for more ----- The errors you are seeing is the project dependencies not being found by eclipse.  After you create the project, right click > properties > Java Build Path, and select the libraries tab.  Add the jars found in the lib directory and the problems should all disappear. The error you are getting above is due to missing dependencies that are required to build the project.  The compiler is scanning the classpath and is not finding the class MessagingException, which is located in the mail.jar, which is not by default in your classpath.  If you want to do this via the command line, you will need to use the -classpath arg of javac to add the /lib folder to your classpath. HTH, Rich Kroll

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Rawlins
05/16/2008 12:02 PM

Hello Guys, When working with it I was simply sending http POST requests to my aggregators web service, it was a very simple REST service. By the looks of things its all grown up in the past year with some people using MM7 which appears to be an iterface built on SOAP, so instead of using a REST service and the standard cfhttp tag you'd have to look into using <cfinvoke> to call it... however, and here is where I think Rick has more experiance than me, some data is sent using SOAP attachments which are currently not supported by the standard cftags, so you would need to look at using one of the JAVA webservice libraries. I'm sure you will still find aggregators which give you the basic REST service to post to, they can then do the complicated work of making the MM7 protocol calls to the service providers. Robert I just spoke with my contact.. and they mention MM7 traffic via a VASP This is all greek to me.. will an SMS Aggregator still work here? Or will I need to go the openwave route? Thanks guys ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Morphis
05/16/2008 12:15 PM

Rich.. I downloaded the SDK6.2.2 and the WAP add-on.. however the next step asks me to go to a form "Fill out and submit the Developer Account Registration Form to create a new account on the Openwave Developer MAG. After you submit the form, login and go to the Subscriber Provisioning Group Access page. Click on the Add Subscriber button to bring up the Subscriber Registration Form. " I'm getting an error 'Network Error' on that form. Were you able to bypass that? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich
05/16/2008 12:55 PM

> I'm getting an error 'Network Error' on that form. Were you able to bypass > that? Sadly, no.  I posted to their forums regarding it when I first gained access to their SDK, but the only response I received was that "It should work...". The only reason you would need to sign up with them is if you desire to use their MMSC (Multi media messaging service) to test your application. HTH, Rich Kroll


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists