MBlox setup in nowsms

MBlox setup in nowsms SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through March 09, 2004 » MBlox setup in nowsms « Previous || Next »
Author Message
Lars Nielsen
New member
Username: Larsmservice

Post Number: 16
Registered: 10-2003
Posted on Friday, December 12, 2003 - 03:14 pm:   

Anyone got a successfull mblox connection setup in nowSms ?

Basically i see more and more gatewys setting up their services up with a xml interface, which makes it hard to use nowsms to connect to it. mainly because of the POST that nowsms should make towards the xml interface.
Bryce maybe you guys should consider this.
How bout making a subfolder in nowsms called XMLPOST, just like you have the OTA folder today.
In the XMLPOST folder i could have the POSTs to gateways that aquires xml.
Something like

<message>
<to>@@sender@@</to>
<msg>@@message@@</msg>
</message>

the @@x@@ would be replaced by the data we POSt to nowms.

Do you get the picture Bryce ?

;-)Lars
Lars Nielsen
New member
Username: Larsmservice

Post Number: 17
Registered: 10-2003
Posted on Friday, December 12, 2003 - 03:16 pm:   

here is another person seeking your wisdom ;)

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

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1370
Registered: 10-2002
Posted on Friday, December 12, 2003 - 04:03 pm:   

That's a good idea Lars.

We've got other people asking us for non-XML based HTTP POST interfaces as well.

We could possibly kill two birds with one stone (an odd expression, but you get the idea) with this type of approach.

2birds.jpg

The file could allow a partial HTTP header (in case you need to specify a content-type for the POST), then a blank line, then the POST content with replaceable parameters like in the existing GET templates.

It won't happen today, but let me get this into the development queue ...
Lars Nielsen
New member
Username: Larsmservice

Post Number: 18
Registered: 10-2003
Posted on Friday, December 12, 2003 - 05:03 pm:   

Exactly Bryce.
One thing to remember though.
Some gateways with xml´interface want the xml packed into a parameter like:
http://somewhere.com?XMLDATA=<xml>xml feed here</xml>

XMLDATA= must not be urlencoded, but the xml feed must be urlecoded. So while youre at it maybe we could do something like we do today with @@data@@
Urlencode data could be packed in like this:
XMLDATA=##<xml>xml feed here</xml>##
Everything inside ## ## should then be urlencoded.

Finally. I dont really undestand why gateways are so up on xml. xml is great yes. But a simple POST is much easier for everyone, and less server rescourcefull. I use xml a lot with importing/exporting from databases. Things like javagames from macrospace, and so on. xml works great there. But when sending data to gateways i dont really see the big picture. Any server than can xml can also do ordinary POSTs.

I will actually use my weekend now to see if i can get nowsms to post xml data to mblox. Hopefully it should work. I'll let you know.


Have a nice weekend everybody.


;)Lars

Lars Nielsen
New member
Username: Larsmservice

Post Number: 19
Registered: 10-2003
Posted on Friday, December 12, 2003 - 05:43 pm:   

Maybe i'll take that back about getting it to work on nowsms. mainly because of the XMLDATA= must no be urlencoded, but the rest mu be urlencoded. I'll still give it a shot though.

I cant stop thinking about the idea of having xml files stored and to make nowsms use them.

You could have a connection in nowsms like this:

[HTTP - sms.bryce.dk:8080]
SenderAddress=72112
UserName=bryce
Password=theman
TemplateText=/Sender/servlet/MSSender?@@72112.xml@@
TemplateBinary=/Sender/servlet/MSSender?@@72112.xml@@
ServerType=Custom
HTTPUseAuth=No
SendLongMessage=yes

Then nowsms would go pickup the file i call in the @@ @@ tags.

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