Sending XML Settings to get OTA file ... Search Search

Now SMS/MMS Gateway » WAP Technical Discussions (not for product support) » Sending XML Settings to get OTA file dynamically « Previous Next »

Author Message
vijay
New member
Username: Vizaise

Post Number: 1
Registered: 06-2007
Posted on Monday, June 25, 2007 - 10:55 am:   

Hi experts

I need to send XML Document to get OTA format dynamically thru programm.


can any one suggest me the way..

Thanks in advance

viZAi
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7277
Registered: 10-2002
Posted on Monday, June 25, 2007 - 07:52 pm:   

If you're using NowSMS ...

To send the settings in an automated fashion, you can use HTTP POST, using either PAP, or this simple HTTP POST interface that we have for any of the document types supported by "Send XML Settings" ...

Open an HTTP connection to the port for the NowSMS web interface, and then issue an HTTP POST:

POST /?PhoneNumber=xxxxxxxx&OTA=POST HTTP/1.0
Content-Length: yyyyyy
(*insert blank line here to end HTTP Header*)
<xml settings document>

When submitting an OTA request in this manner, the HTTP POST request must include a “Content-Length:” header. This should match the length of your XML document.

NowSMS will scan the XML content to automatically determine what the content type is ... so that it can be encoded properly for sending over the air.

If you need to use a PIN on the settings (not typically used with rights objects, but used with other XML documents), add "&OTAPIN=xxxx" to the URL, along with "&OTAPINTYPE=USERPIN" or "&OTAPINTYPE=NETWPIN".

The only other bit that I should mention is user authentication. If you have NowSMS configured to require user accounts for message submission, then you need to specify which of the "SMS Users" accounts is used by the submission. To do this, include "&User=username&Password=password" in the URL request. (Or you can use an HTTP Basic Authentication "Authorization:" header.)
vijay
New member
Username: Vizaise

Post Number: 2
Registered: 06-2007
Posted on Tuesday, June 26, 2007 - 09:50 am:   

Bryce
Thanks for the reply..
I got the answer from ur post.

And I'ld like to know, how to send http post request from c#/Java.

A bit confusing in this
<xml settings document>
where should i put this

thanks in advacne
vijay
New member
Username: Vizaise

Post Number: 3
Registered: 06-2007
Posted on Wednesday, June 27, 2007 - 05:27 am:   

Hi
Can anybody tell how to do HTTP Post request for the OTA..
POST /?PhoneNumber=xxxxxxxx&OTA=POST HTTP/1.0
Content-Length: yyyyyy
(*insert blank line here to end HTTP Header*)
<xml settings document>

for this in C#/JAVa

How should I handle this XML content...

I've done as below(C#)

string postData = "PhoneNumber=89998998&OTA=POST";

postData = postData + "\n\n";
postData = postData + "<xmlContent Goes here>"

byte[] byteArray = Encoding.UTF8.GetBytes(postData);


Is this correct...

And i need to get The OTA File from this request...
Can anybody help me in this pleasee

vijay
New member
Username: Vizaise

Post Number: 4
Registered: 06-2007
Posted on Wednesday, June 27, 2007 - 11:31 am:   

Cool , its working...

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to register with this discussion board.
Password:
Options: Automatically activate URLs in message
Action:

Search Search Tree View Tree View   Home Home
Login Login / Register Topics Topics Search Last 1|3|7 Days   Previous Page Previous Next Next Page

© Copyright 2002-2007 by Now Wireless Limited
Airport House, Purley Way, Croydon, London, CR0 0XZ, UK
UK Tel: +44-20-8286-8080 US Tel: +1.410.833.8711
email : nowsms@now.co.uk