You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Omar Adobati <om...@gmail.com> on 2006/07/12 16:36:45 UTC
Cocoon & Short Message Service
Good morning,
I'd like to manage in some way the sms sending using cocoon, but I
have not easy clear ideas on how to realize this. Does anyone know the
best, or maybe the not worst, way to try to implement this function?
Suppose I have an XML file with all the information I need to generate
the SMS, and that I could display the SMS contents in HTML or PDF (or
anything else too) and also that I can manage the sending of e-mails
[just to let you know my background... but I'm still a newbie in
cocoon]
Yes, I know I need an SMS gateway to send sms, but now I just need to
know the way to manage it via cocoon, just a suggestion about it...
P.S.
I need this for my thesis, no profit reasons :)
Thanks for your time,
Omar
Re: Cocoon & Short Message Service
Posted by Omar Adobati <om...@gmail.com>.
On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
> Omar Adobati wrote:
> > On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
> >> Omar Adobati wrote:
> >> > My idea was to connect something like a cellphone (or maybe a real
> >> > cellphone) and use the AT instruction to send the SMS. Isn't a ggod
> >> > idea?
> >>
> >> For low volumes, that can be done. You'd just use a serial port. There
> >> are various unix apps IIUC that can send SMSes.
> >
> > This is what I need just by now... I'm developing a software for a
> > thesis so at the moment I don't know a great amount of messages... I
> > just need a working prototipe.
> >
> >>
> >> > I really don't know SMPP, I'm now lloking for info about it on the
> >> > Internet... I'll tell you if I could use it. Do you suggest me to use
> >> > it?
> >>
> >> I use aql.com. they have http and smpp interfaces, and reasonable prices
> >> for small scale operations.
> >>
> >
> > Anyway, I'll take a look to that link :)
>
> I think you'll find AQL simpler than hooking up a mobile phone. It is
> just a simple HTTP post, and you can buy messages in small quantities
> (100 IIRC). And if they cost £0.10 each, that'd be £10 (~=$20US).
>
> Regards, Upayavira
>
>
>
I'll take care of your suggestions too. But now, I just need a kind of
a demo, so I think that the easyest way is to use a cellphone
connected to the PC :)
Omar
Re: Cocoon & Short Message Service
Posted by Upayavira <uv...@odoko.co.uk>.
Omar Adobati wrote:
> On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
>> Omar Adobati wrote:
>> > My idea was to connect something like a cellphone (or maybe a real
>> > cellphone) and use the AT instruction to send the SMS. Isn't a ggod
>> > idea?
>>
>> For low volumes, that can be done. You'd just use a serial port. There
>> are various unix apps IIUC that can send SMSes.
>
> This is what I need just by now... I'm developing a software for a
> thesis so at the moment I don't know a great amount of messages... I
> just need a working prototipe.
>
>>
>> > I really don't know SMPP, I'm now lloking for info about it on the
>> > Internet... I'll tell you if I could use it. Do you suggest me to use
>> > it?
>>
>> I use aql.com. they have http and smpp interfaces, and reasonable prices
>> for small scale operations.
>>
>
> Anyway, I'll take a look to that link :)
I think you'll find AQL simpler than hooking up a mobile phone. It is
just a simple HTTP post, and you can buy messages in small quantities
(100 IIRC). And if they cost £0.10 each, that'd be £10 (~=$20US).
Regards, Upayavira
Re: Cocoon & Short Message Service
Posted by Omar Adobati <om...@gmail.com>.
On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
> Omar Adobati wrote:
> > My idea was to connect something like a cellphone (or maybe a real
> > cellphone) and use the AT instruction to send the SMS. Isn't a ggod
> > idea?
>
> For low volumes, that can be done. You'd just use a serial port. There
> are various unix apps IIUC that can send SMSes.
This is what I need just by now... I'm developing a software for a
thesis so at the moment I don't know a great amount of messages... I
just need a working prototipe.
>
> > I really don't know SMPP, I'm now lloking for info about it on the
> > Internet... I'll tell you if I could use it. Do you suggest me to use
> > it?
>
> I use aql.com. they have http and smpp interfaces, and reasonable prices
> for small scale operations.
>
Anyway, I'll take a look to that link :)
Omar
Re: Cocoon & Short Message Service
Posted by Upayavira <uv...@odoko.co.uk>.
Omar Adobati wrote:
> My idea was to connect something like a cellphone (or maybe a real
> cellphone) and use the AT instruction to send the SMS. Isn't a ggod
> idea?
For low volumes, that can be done. You'd just use a serial port. There
are various unix apps IIUC that can send SMSes.
> I really don't know SMPP, I'm now lloking for info about it on the
> Internet... I'll tell you if I could use it. Do you suggest me to use
> it?
I use aql.com. they have http and smpp interfaces, and reasonable prices
for small scale operations.
Upayavira
Re: Cocoon & Short Message Service
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Simone Gianni wrote:
> Ciao Omar,
> I used this a few yars ago, to prototype an SMS application, and then
> moved to a commercial HTTP based interface :
> http://javasmslib.sourceforge.net/ . Otherwise, a few years ago, there
> was kannel that interfaced HTTP to an SMS modem/cellphone.
There is also:
http://smsj.sourceforge.net/
example:
> public class SmsSenderImpl implements SmsSender {
> private final static Log logger = LogFactory.getLog( SmsSenderImpl.class );
> private Properties props;
> private SmsTransport transport;
> private String originator;
>
> public Properties getProps() {
> return props;
> }
>
> public void setProps( Properties props ) {
> this.props = props;
> }
>
> public void init() {
> try {
> this.originator = this.props.getProperty( "originator",
> "123456789" );
> this.transport = SmsTransportManager.getTransport( "org.marre.sms.transport.gsm.GsmTransport",
> props );
> } catch ( SmsException e ) {
> throw new RuntimeException( e );
> }
> }
>
> public synchronized void send( String recipient, String content ) {
> try {
> SmsTextMessage textMessage = new SmsTextMessage( content );
> transport.connect();
> transport.send( textMessage,
> new SmsAddress( recipient ),
> new SmsAddress( this.originator ) );
>
> } catch ( Exception e ) {
> throw new RuntimeException( e );
> } finally {
> try {
> transport.disconnect();
> } catch ( Exception e ) {
> logger.error( e );
> }
> }
> }
> }
The only thing you have to do is plug your GSM terminal to a COM port
and enable serial communication in java.
--
Leszek Gawron lgawron@mobilebox.pl
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
Re: Cocoon & Short Message Service
Posted by Simone Gianni <s....@thebug.it>.
Ciao Omar,
I used this a few yars ago, to prototype an SMS application, and then
moved to a commercial HTTP based interface :
http://javasmslib.sourceforge.net/ . Otherwise, a few years ago, there
was kannel that interfaced HTTP to an SMS modem/cellphone.
Simone
Omar Adobati wrote:
> My idea was to connect something like a cellphone (or maybe a real
> cellphone) and use the AT instruction to send the SMS. Isn't a ggod
> idea?
>
> I really don't know SMPP, I'm now lloking for info about it on the
> Internet... I'll tell you if I could use it. Do you suggest me to use
> it?
>
> thanks,
> Omar
>
> On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
>
>> Omar Adobati wrote:
>> > Good morning,
>> >
>> > I'd like to manage in some way the sms sending using cocoon, but I
>> > have not easy clear ideas on how to realize this. Does anyone know the
>> > best, or maybe the not worst, way to try to implement this function?
>> > Suppose I have an XML file with all the information I need to generate
>> > the SMS, and that I could display the SMS contents in HTML or PDF (or
>> > anything else too) and also that I can manage the sending of e-mails
>> > [just to let you know my background... but I'm still a newbie in
>> > cocoon]
>> > Yes, I know I need an SMS gateway to send sms, but now I just need to
>> > know the way to manage it via cocoon, just a suggestion about it...
>> >
>> > P.S.
>> > I need this for my thesis, no profit reasons :)
>>
>> It really depends upon which provider you plan to use and what
>> interfaces they offer. It could be a custom HTTP one, or perhaps an SMPP
>> one.
>>
>> Do you have a provider in mind?
>>
>> Upayavira
>>
>>
>>
--
Simone Gianni
Re: please help (Portal)
Posted by dee <go...@yahoo.com>.
hi,
Thanks for the reply. i am using cocoon 2.1.8. but i also have 2.1.9 installed on my pc.
Ralph Goers <Ra...@dslextreme.com> wrote:
What version of Cocoon are you using? The current versions are a bit
broken. I've been going through the GroupBasedProfileManager and noticed
that it loads profiles by user, group and global. However, no group
profiles are defined and authentication.xsl won't copy the group name
into the users profile. As for roles, GroupBasedProfileManager doesn't
use them. AuthenticationProfileManager does but it is deprecated. If
you are using it then this should work.
Ralph
dee wrote:
> hi,
>
> i am new to using cocoon.I am trying to configure the cocoon portal
> fand use it as our company portal. but i am having problems doing
> that. could someone please spend two min and answer my simple query
> regarding the different profile views.
>
> At the moment I have a global profile in each of those folders
> (portal.xml) and also an additional portal-role-admin.xml. However, if I
> log on with a user (e.g. the sample-portal user "cocoon") that has admin
> privileges (it's role is admin), the profile loaded is always the global
> one. The role of that user is defined in a file called sunrise-user.xml
> could someone please tell me if the role based profile view works
> . i have followed the steps given in the cocoon website. if i need to
> do something more please tell me.
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Get on board. You're invited
>
> to try the new Yahoo! Mail Beta.
---------------------------------
Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups.
Re: please help (Portal)
Posted by Ralph Goers <Ra...@dslextreme.com>.
What version of Cocoon are you using? The current versions are a bit
broken. I've been going through the GroupBasedProfileManager and noticed
that it loads profiles by user, group and global. However, no group
profiles are defined and authentication.xsl won't copy the group name
into the users profile. As for roles, GroupBasedProfileManager doesn't
use them. AuthenticationProfileManager does but it is deprecated. If
you are using it then this should work.
Ralph
dee wrote:
> hi,
>
> i am new to using cocoon.I am trying to configure the cocoon portal
> fand use it as our company portal. but i am having problems doing
> that. could someone please spend two min and answer my simple query
> regarding the different profile views.
>
> At the moment I have a global profile in each of those folders
> (portal.xml) and also an additional portal-role-admin.xml. However, if I
> log on with a user (e.g. the sample-portal user "cocoon") that has admin
> privileges (it's role is admin), the profile loaded is always the global
> one. The role of that user is defined in a file called sunrise-user.xml
> could someone please tell me if the role based profile view works
> . i have followed the steps given in the cocoon website. if i need to
> do something more please tell me.
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Get on board. You're invited
> <http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/handraisers>
> to try the new Yahoo! Mail Beta.
please help
Posted by dee <go...@yahoo.com>.
hi,
i am new to using cocoon.I am trying to configure the cocoon portal fand use it as our company portal. but i am having problems doing that. could someone please spend two min and answer my simple query regarding the different profile views.
At the moment I have a global profile in each of those folders
(portal.xml) and also an additional portal-role-admin.xml. However, if I
log on with a user (e.g. the sample-portal user "cocoon") that has admin
privileges (it's role is admin), the profile loaded is always the global
one. The role of that user is defined in a file called sunrise-user.xml
could someone please tell me if the role based profile view works . i have followed the steps given in the cocoon website. if i need to do something more please tell me.
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
Re: Cocoon & Short Message Service
Posted by Omar Adobati <om...@gmail.com>.
My idea was to connect something like a cellphone (or maybe a real
cellphone) and use the AT instruction to send the SMS. Isn't a ggod
idea?
I really don't know SMPP, I'm now lloking for info about it on the
Internet... I'll tell you if I could use it. Do you suggest me to use
it?
thanks,
Omar
On 7/17/06, Upayavira <uv...@odoko.co.uk> wrote:
> Omar Adobati wrote:
> > Good morning,
> >
> > I'd like to manage in some way the sms sending using cocoon, but I
> > have not easy clear ideas on how to realize this. Does anyone know the
> > best, or maybe the not worst, way to try to implement this function?
> > Suppose I have an XML file with all the information I need to generate
> > the SMS, and that I could display the SMS contents in HTML or PDF (or
> > anything else too) and also that I can manage the sending of e-mails
> > [just to let you know my background... but I'm still a newbie in
> > cocoon]
> > Yes, I know I need an SMS gateway to send sms, but now I just need to
> > know the way to manage it via cocoon, just a suggestion about it...
> >
> > P.S.
> > I need this for my thesis, no profit reasons :)
>
> It really depends upon which provider you plan to use and what
> interfaces they offer. It could be a custom HTTP one, or perhaps an SMPP
> one.
>
> Do you have a provider in mind?
>
> Upayavira
>
>
>
Re: Cocoon & Short Message Service
Posted by Upayavira <uv...@odoko.co.uk>.
Omar Adobati wrote:
> Good morning,
>
> I'd like to manage in some way the sms sending using cocoon, but I
> have not easy clear ideas on how to realize this. Does anyone know the
> best, or maybe the not worst, way to try to implement this function?
> Suppose I have an XML file with all the information I need to generate
> the SMS, and that I could display the SMS contents in HTML or PDF (or
> anything else too) and also that I can manage the sending of e-mails
> [just to let you know my background... but I'm still a newbie in
> cocoon]
> Yes, I know I need an SMS gateway to send sms, but now I just need to
> know the way to manage it via cocoon, just a suggestion about it...
>
> P.S.
> I need this for my thesis, no profit reasons :)
It really depends upon which provider you plan to use and what
interfaces they offer. It could be a custom HTTP one, or perhaps an SMPP
one.
Do you have a provider in mind?
Upayavira
Re: Cocoon & Short Message Service
Posted by Reinhard Poetz <re...@apache.org>.
Omar Adobati wrote:
> On 7/13/06, Reinhard Poetz <re...@apache.org> wrote:
>> Omar Adobati wrote:
>> > Thankyou for the answer, I'm glad to read about it :)
>> >
>> >> We (= in one of my projects) wrote an SendSMSTransformer that works
>> >> analogous to
>> >> the SendMailTransformer. Another possibility is calling your SMS
>> >> gateway from
>> >> within a flow. *I* prefer the way of providing "message pipelines"
>> >> with special
>> >> purpose SendXYZ transformers as the manipulation of the content is
>> >> much simpler
>> >> (e.g. i18n) and is done the same way as all other view pipelines we
>> have.
>> >>
>> >
>> > So, if I'm not wrong, you suggest to me to write my own
>> > SendSMSTransformer, right?
>>
>> yes
>
> Where I can find some documentation about implementing my own transformer?
> I took a look to the cocoon wiki [1], but it wasn't so helpful as I
> hope. There's no information about the code. I'd like to have a kind
> of javadoc that would explain me how the code works.
which specific questions do you have? The best way to learn is looking at
something similar (therefore my hint to the SendMailTransformer -
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java)
that has already been implemented.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Re: Cocoon & Short Message Service
Posted by Omar Adobati <om...@gmail.com>.
On 7/13/06, Reinhard Poetz <re...@apache.org> wrote:
> Omar Adobati wrote:
> > Thankyou for the answer, I'm glad to read about it :)
> >
> >> We (= in one of my projects) wrote an SendSMSTransformer that works
> >> analogous to
> >> the SendMailTransformer. Another possibility is calling your SMS
> >> gateway from
> >> within a flow. *I* prefer the way of providing "message pipelines"
> >> with special
> >> purpose SendXYZ transformers as the manipulation of the content is
> >> much simpler
> >> (e.g. i18n) and is done the same way as all other view pipelines we have.
> >>
> >
> > So, if I'm not wrong, you suggest to me to write my own
> > SendSMSTransformer, right?
>
> yes
Where I can find some documentation about implementing my own transformer?
I took a look to the cocoon wiki [1], but it wasn't so helpful as I
hope. There's no information about the code. I'd like to have a kind
of javadoc that would explain me how the code works.
Thanks a lot,
Omar
[1] http://wiki.apache.org/cocoon/ImplementingTransformers
Re: Cocoon & Short Message Service
Posted by Reinhard Poetz <re...@apache.org>.
Omar Adobati wrote:
> Thankyou for the answer, I'm glad to read about it :)
>
>> We (= in one of my projects) wrote an SendSMSTransformer that works
>> analogous to
>> the SendMailTransformer. Another possibility is calling your SMS
>> gateway from
>> within a flow. *I* prefer the way of providing "message pipelines"
>> with special
>> purpose SendXYZ transformers as the manipulation of the content is
>> much simpler
>> (e.g. i18n) and is done the same way as all other view pipelines we have.
>>
>
> So, if I'm not wrong, you suggest to me to write my own
> SendSMSTransformer, right?
yes
> This is the idea I had when I was thinking about it, but I was not sure...
> Any suggestion in writing the transformer? I think i'll have a look to
> the SendMailTransformer, it should be useful...
that's the idea
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Re: Cocoon & Short Message Service
Posted by Omar Adobati <om...@gmail.com>.
Thankyou for the answer, I'm glad to read about it :)
> We (= in one of my projects) wrote an SendSMSTransformer that works analogous to
> the SendMailTransformer. Another possibility is calling your SMS gateway from
> within a flow. *I* prefer the way of providing "message pipelines" with special
> purpose SendXYZ transformers as the manipulation of the content is much simpler
> (e.g. i18n) and is done the same way as all other view pipelines we have.
>
So, if I'm not wrong, you suggest to me to write my own
SendSMSTransformer, right?
This is the idea I had when I was thinking about it, but I was not sure...
Any suggestion in writing the transformer? I think i'll have a look to
the SendMailTransformer, it should be useful...
Omar.
Re: Cocoon & Short Message Service
Posted by Reinhard Poetz <re...@apache.org>.
Omar Adobati wrote:
> Good morning,
>
> I'd like to manage in some way the sms sending using cocoon, but I
> have not easy clear ideas on how to realize this. Does anyone know the
> best, or maybe the not worst, way to try to implement this function?
> Suppose I have an XML file with all the information I need to generate
> the SMS, and that I could display the SMS contents in HTML or PDF (or
> anything else too) and also that I can manage the sending of e-mails
> [just to let you know my background... but I'm still a newbie in
> cocoon]
> Yes, I know I need an SMS gateway to send sms, but now I just need to
> know the way to manage it via cocoon, just a suggestion about it...
We (= in one of my projects) wrote an SendSMSTransformer that works analogous to
the SendMailTransformer. Another possibility is calling your SMS gateway from
within a flow. *I* prefer the way of providing "message pipelines" with special
purpose SendXYZ transformers as the manipulation of the content is much simpler
(e.g. i18n) and is done the same way as all other view pipelines we have.
> P.S.
> I need this for my thesis, no profit reasons :)
here it doesn't matter which background you have :-)
> Thanks for your time,
you're welcome!
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de