Sms GateWay

hi all !
I m using Http interface for Sms gateway. i am using following scirpt bt it cant work.
script is not working.
please share some knowledge on it.
<script>
    var NowSMSServerAddress = "[http://127.0.0.1:8800/]";
    var NowSMSUserName = "test";
    var NowSMSPassword = "test";
    function HTTPGET(strURL)
        var strResult;
      xmlHttp = new XMLHttpRequest();
      Window.alert(strURL);
      Window.alert("message");     
      // Create an HTTP request.
      var temp = WinHttpReq.Open("GET", strURL, false);
    // Send the HTTP request.
      WinHttpReq.Send();
      // Retrieve the response text.
      strResult = WinHttpReq.ResponseText;
      alert(strResult);
   // Return the response text.
   return strResult;
var strRequest;
if (WScript.Arguments.Count() < 2)
   WScript.Echo ("Usage: " + WScript.ScriptName + " PhoneNumber1[,PhoneNumber2,...] NowSMSURLParameter1=Value1 [NowSMSURLParameter2=Value2] [NowSMSURLParameterN=ValueN]\r\n");
   WScript.Quit();
strRequest = NowSMSServerAddress + "/?PhoneNumber=" + encodeURIComponent(WScript.Arguments(0)) + "&User=" + encodeURIComponent(NowSMSUserName) + "&password=" + encodeURIComponent(NowSMSPassword) ;
for (i=1; i<WScript.Arguments.Count(); i++)
   var strTemp = WScript.Arguments(i);
   while (strTemp.indexOf("^") >= 0) {
      var temp = strTemp.indexOf("^");
      if (temp >= 0) {
         strTemp = strTemp.substr(0, temp) + strTemp.substr(temp+1);
   var equPos = strTemp.indexOf("=");
   if (equPos >= 0)
      strRequest += "&";
      strRequest += strTemp.substr(0,equPos+1);
      strRequest += encodeURIComponent(strTemp.substr(equPos+1));
   else {
      strRequest += "%20";
      strRequest += encodeURIComponent(strTemp);
/* WScript.Echo(strRequest);  */
WScript.Echo(HTTPGET(strRequest));
WScript.Echo(HTTPGET(strResult));
</script>
one more thing i would like to ask is that what is the main use of ActiveXObject.
Edited by: kavit_gamot on Jan 27, 2009 3:41 AM

err , i'm not a regular at any javascript forums , so cant recommend . But i'd recommend you to google for one.

Similar Messages

  • I want to integrate SMS gateway to Cisco ISE 1.2 and my question is SMS notifications are supported for Guest self−registration

    I want to integrate SMS gateway to Cisco ISE 1.2 and my question is 
    SMS notifications are supported for Guest self−registration Services ? or it should be done by Sponsor 

    I'm not sure I understand the question.  Do you want to log in to the Sponsor Portal using AD credentials?
    Create an Identity Source Sequence using AD as an Authentication Source.  Go to Administration > Identity Management > Identity Source Sequences.  Either Edit or +Add a Sequence and choose from the Authentication Sources shown.
    Then choose that Identity Source Sequence by going to Administration > Web Portal Management > Settings.  Double-click Sponsor from the Left Menu and click Authentication Source.  Choose the Identity Source Sequence.  Click Save.
    I hope this helps.
    Please Rate Helpful posts and mark this question as answered if, in fact, this does answer your question.  Otherwise, feel free to post follow-up questions.
    Charles Moreton

  • Cisco Prime Infra and SMS gateway integration

    Hello,
    Can anyone point me to right documents or resources to integrate cisco prime infra 2.x with SMS gateway?
    Is there any way I can get SMS alerts for critical events in Cisco Prime Infra 2.x?
    Any suggestion is highly appreciated.
    Regards,
    Girish

    Not directly.
    If you configure PI to email you on alerts, many carriers allow you receive SMS via an email address - i.e. <your_number>@<your_carrier>

  • Oracle Database 10g Integration with SMS gateway

    Dears
    my company system should integrate with SMS gateway to send the customer SMS, actually i haven't any information about Database Integration methods in general(first time to do that) and In particular about SMS gateway
    Please help ASAP and try to provide with any useful links
    Thanks So much for all
    Moro
    Edited by: user11359385 on Feb 21, 2011 6:23 AM

    What do you expect - us having crystal balls that will tell us what interface methods and protocols your SMS Gateway support?
    Find out what the API is for that Gateway and then we can talk of how to use that API from PL/SQL.
    But not knowing the API.. how on earth should we know what to from from a PL/SQL perspective to interface with it? Does it use a TCP interface? Named pipes? RPC calls? DCOM calls? Corba? SOAP? JMS?
    There's a huge number of very different types of interfaces that service software can support. Without knowing what that interface is, it simply is not possible to tell you how to use that interface from PL/SQL.

  • ISE integration with SMS gateway required license

    Hello All,
    We have cisco WLC with guest wireless access configured to use local database. the managment requires new solution to send cridintials to user throug SMS after the user signup through portal.
    we decided to use the cisco ISE. my question is what is the required license to integrate ISE with WLC and SMS gateway. should we use the Basic license, advanced or the wireless license.
    Thanks,
    Amr

    Hi Charles,
    why do you say "you would need Base and Plus Licenses at a minimum"? 
    Looking at the ISE licensing guide (table 2):
    http://www.cisco.com/c/en/us/products/collateral/security/identity-services-engine/datasheet-c78-730772.pdf
    it seems that Guest Portal services are already included in Base License (and all the AAA stuff too),
    therefore enough for the "Wireless Guest Access with SMS authentication" needed by Amr.
    Finally, the advantage of 'Base' license is that is Perpetual ...no annual fee to pay ;-)
    Regards.
    Gio

  • SMS gateway integration with UCCX 7.0

    I have a question, can we perform SMS gateway integration with Cisco Unified Contact Center Express 7.0 premuim license?

    Just to enhance Somar's response a bit: The CCX Premium licnese activates an SMTP subsystem in CCX. This allows you to send emails from within a script. As long as the SMS gateway can accept SMTP you should be able to make it work.

  • Sending above 254 characters through coldfusion sms gateway

    I have been sending SMS using coldfusion sms gateway. If am sending below 254 characters, it works perfectly but when I need to send above 254 characters, I use the messagePayload attribute and convert the message to binary. The message sends OK but only the first 25 characters are displayed
    on the phone. I have gone through the coldfusion documentation but what I don't understand is "The messagePayload field can contain up to 64K bytes;
    it must start with 0x0424, followed by 2 bytes specifying the payload length, followed by the message contents."
    Adobe didn't state any specific example on how this would be implemented. Kindly send an example on how this would be implemented.
    If anyone knows any other method of sending long messages, please share it cos my .Net friends are laughing at me, telling me coldfusion is wack

    quote:
    are the unicode SMS getting thru? have you updated your cf
    server, there's one
    Are you referring to ColdFusion 7.0.1 Updater Paul?
    Yes I did install the updater. I just found out that my
    problem is not unicode problem at all. Basically every return
    receipt that I received from the SMPP Gateway has err:1 in the
    message. All I did is log every CFEvent that I received from the
    SMPP server if error occurs. The example is:
    STRUCT ->
    CFCPATH -> ....
    GATEWAYID -> My Gateway
    ORIGINATORID -> 86???????????
    CFCMETHOD -> onIncomingMessage
    DATA ->
    esmClass -> 4
    sourceAddress -> 86???????????
    priority -> 0
    registeredDelivery -> 0
    messageLength -> 135
    protocol -> 0
    destAddress -> *my number*
    MESSAGE -> id:*some hex message id* sub:001 dlvrd:0
    submit date:0606270957 done date:0606270957 stat:REJECTD err:1
    text:esting routing,
    dataCoding -> 0
    GATEWAYTYPE -> SMS
    and everytime I got an error, I only receive that message.
    However after I called the SMPP support team just now, they said
    that on their end they actually send out two messages to my server
    and in my end, my logger only log one message for every SMS sent.
    The thing really bugging me is, does coldfusion hiding some
    of the messages they received from the server, or does it have some
    kind of funny thing going on. Well, frankly I don't know much about
    Coldfusion, I just been using it for about 6 months.

  • How to develop connection between SMS gateway and Servlet????

    Hi! Friends,
    I m working on an application through which we can send SMS to any GSM mobile.
    It is a web based application and the tool i m using is Java Servlet....
    I want to know that how can i connect the application to SMS Gateway....
    Is it possible to do using servlet. If yes please let me know....
    Waiting for ur positive reply......

    >
    I m working on an application through which we can send SMS to any GSM mobile.
    It is a web based application and the tool i m using is Java Servlet....Kindly elaborate your Application Structure means, you are using some 3rd party SMS GATEWAY or
    you are using Mobile as SMS GATEWAY
    I want to know that how can i connect the application to SMS Gateway....There are various methods for that. But according SMS GATEWAY provider you have to use it.
    Is it possible to do using servlet. If yes please let me know....Possible
    Sachin Kokcha

  • [OT] SMS gateway providers

    Hi,
    I need to send bulk SMS on behalf of clients from within AIR.
    Could someone provide pointers to SMS service
    centers/providers, who have affordable prices and a stable API
    gateway (HTTP oder SOAP, for easy Flex integration).
    Thanks for assistance,
    Stefan

    quote:
    Originally posted by:
    rtalton
    Check out Ribbit! They have a Flex sdk to do messaging and
    voice communications. Fairly cheap, too.
    http://developer.ribbit.com/platform/features
    http://developer.ribbit.com/platform/pricing
    Thx! Is Ribbit active yet? I thought, Ribbit is still in some
    BETA/ALPHA level. Isn't it so?

  • Sending messages through ColdFusion SMS gateways problem

    Hi,
    Has anyone done this working? I have tried many ways and all the advices and the website that i create the test it looks like working, but i am not getting any sms.
    I have also followed this: http://www.adobe.com/devnet/coldfusion/articles/smsgateway.html
    and still no luck. I think maybe is connected with the configuration file, because i am not sure about this source address and so on.
    Can anyone please help me?
    Kind regards!

    where i can see what it says?

  • How to connect to SMS Gateway using servlet?????? pls help me out...

    Hi! Friends,
    I m working on an application through which we can send SMS to any GSM mobile.
    It is a web based application and the tool i m using is Java Servlet....
    I want to know that how can i connect the application to SMS Center....
    Is it possible to do using servlet. If yes please let me know....
    Waiting for ur positive reply......

    Certainly it's possible.
    Look for a telecom provider in your neighbourhood and ask if they have a Java API and then use it.

  • How to implement a SMS and WAP Gateway  ?

    Folks Hi !!
    I'm a newbie at wireless Java, but I am interested to know how can I implement a gateway application/server that works both as an SMS and WAP gateway.
    I've read some documents on Kannel(open source WAP gateway), but I am interested to know if there are any resources available that would be of help to implement one in Java (API for SMS, WAP etc).
    The second question I have is:
    Where do CIMD2, SMPP, UCP etc. come into Messaging picture ? Do they complement WAP for sending/receving SMS ?(pls excuse me, if I sound weird, I am trying to make sense of things :p )
    I appreciate any help or suggestions to resources.
    Thanks a ton in advance !!
    Cheers :)

    An SMS Gateway needs to communicate with the SMSC using some way or another. You have many options:
    1- Connect a simple GSM phone to the serial port of your pc and use it to send and receive messages.
    2- A GSM modem (like Nokia Premicell, Siemens M20..)
    3- Connect directly to the SMSC.
    If you choose the third option, then there must be a specific protocol to use to talk to the SMSC. Your SMSC might support one or more of these protocols:
    1- SMPP (The good java api for this protocol is available http://opensmpp.logica.com)
    2- UCP (see: http://www.cmg.com)
    3- CIMD2 (see: http://www.nokia.com)
    -- Hani.

  • About SMS from mobile user to gateway to server and versa

    Hi,
    I am new in this field, need help in the following problems and situations, prefer source code.
    I am actually doing the following tasks, I need to develop the code
    -mobile user sms their bid to sms gateway.
    -server logs the bid.
    -if server receive their bid, send back OK sms to mobile user.
    -if server receive their bid, but the bid is higher than others(most lowest 5) , send back NOT OK sms to mobile user.
    -if bid closed, inform all mobile users that the bid has closed.
    I import 4 of this,
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    Thanks for helping and replying!!

    hi,
    SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
    There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
    Seimens has some phone with their own api's to send sms.Check out seimens site for more info
    BTW, What do you mean buy sending SMS to Server????
    If you want to send message to server you can do it with Http.
    HTH
    phani

  • Issue while sending SMS from JavaMail in languages like Russian & Japanese

    Hi,
    We have a requirement to send multi lingual SMS to users mobile number.
    We are using JavaMail API for this. The only changes we have done to send SMS (instead of EMAIL) using a standard JavaMail code are –
    1)     Use the suffix @sms after the mobile number. For eg: 919923456789@sms.<domain>.com.
    2)     Use “text/plain” instead of “text/html” while setting the content type.
    The SMS is sent fine for English and French but we get junk characters for languages like Japanese and Russian even on phones which support these languages.
    Could anyone please advice on the below points –
    1)     Is this a limitation with respect to JavaMail? If yes, is there any other api that can be used?
    2)     Does some setting needs to be done in the SMS gateway to enable sending SMS in Japanese and Russian?
    3)     Does some setting needs to be done in the mobile phone to receive SMS in Japanese and Russian?
    Any help on this issue will be appreciated.
    Thanks and Regards,
    Jacob

    Thanks for your replies...... Please find below the code snippet where I am setting the encoding.....Could you please confirm if this is the correct way?
    String subject = "\u0421\u0442\u0430\u0442\u0443\u0441 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F";
    String body = "\u0421\u0442\u0430\u0442\u0443\u0441 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F";
    *//Both 'body' and 'subject' are set as the russian translation of 'Status last updated'.*
    MimeMessage msg = new MimeMessage(mailSession);
    msg.setHeader("Content-Type", "text/plain; charset=UTF-16");
    msg.setSubject(subject, "UTF-16");
    msg.setText(body, "UTF-16");
    I tried this but still not getting correct text. If I try with "UTF-16BE"/"UTF-16LE", then I do not get an SMS at all. I have tried with UTF-8 as well.
    Does it matter if I change the phone language before/after I receive the message in a language different from the currently set phone language?
    I am based out of India and am trying to send these messages to some of my colleagues who are all using Indian service providers. I have tried this on phones which have Russian as a language option.
    Regards,
    Jacob

  • Password Reset Portal SMS Gate Not Working

    trying Microsoft code to enable One-Time Password with SMS Gate, no luck to make it work. Anyone can advise what's wrong of this code? 
    Customer sms gateway requires POST method with 3 parameters: "password", "hp" and "smsmessage"
    namespace Microsoft.IdentityManagement.Samples
        using System;
        using System.Collections.Generic;
        using System.Globalization;
        using System.Net;
        using System.Text;
        using Microsoft.IdentityManagement.SmsServiceProvider;
        using System.Web;
        using System.Security.Cryptography;
        using System.IO;
        public class SmsServiceProvider : ISmsServiceProvider
            public void SendSms(string mobileNumber,
                                string message,
                                Guid requestId,
                                Dictionary<string, object> deliveryAttributes)
                mySMSProvider.SendSms(mobileNumber, message);
        class mySMSProvider
            static string RequestURL = "http://smsgw.abc.com/smsgateway/smsforad.php";
            mySMSProvider()
            public static int SendSms(string userMobileNumber, string message)
                WebClient wc = new WebClient();
                string requestData;
                requestData = Microsoft.IdentityManagement.Samples.mySMSProvider.GetRequestData(userMobileNumber, message);
                byte[] postData = Encoding.ASCII.GetBytes(requestData);
                byte[] response = wc.UploadData(mySMSProvider.RequestURL, postData);
                string result = Encoding.ASCII.GetString(response);  // result contains the error text
                int returnValue = System.Convert.ToInt32(result.Substring(0, 6), NumberFormatInfo.InvariantInfo);
                return returnValue;
            public static string GetRequestData(string mobile, string message)
                string myrequestData;
                myrequestData = "password=" + "password123"
                     + "&hp=" + System.Web.HttpUtility.UrlEncode(mobile)
                     + "&smsmessage=" + System.Web.HttpUtility.UrlEncode(message);
                return myrequestData;
    Jason

    There is some "well known" issue if you put more than one class into the dll. Try to insert all the logic to the SmsServiceProvider class.
    Borys Majewski, Identity Management Solutions Architect (Blog: IDArchitect.NET)

Maybe you are looking for

  • Best consumer color calibration device?

    What is currently the best consumer-based color calibration device available? I need to calibrate (2) Dell IPS monitors and a Brother MFC-9840CDW color laser printer. Thanks!

  • Reversal Posting was not happened

    Hi Gurus, It's a high prioroty issue please give your inputs. I have done the posting to FI. But after some time done Reversal posting due to some reasons. After this the employee in the pc00_m99_cipc where we can see posting s are not done. The prob

  • Extended stats partial implementation (multi-column stats) in 10.2.0.4

    Hi everyone, I saw a note today on ML, which says that new 11g's feature - [Extended statistics|http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/stats.htm#sthref1177] - is partially available in 10.2.0.4. See [Bug #5040753 Optimal index

  • Goods Movement for Inspection

    We are in need automatic proposal of goods movement on Goods Receipt against purchase order. If Material is active for QM, then it has to be proposed movement type 103 otherwise it proposed for 101.

  • My macbook pro runs extremely slow. I've tried everything on the forums, but nothing has worked.

    I made an account just for this. My macbook pro is extremely slow, but only some of the time. When I normally browse it isn't that bad, but using any flash application or playing any game results in a 100-400 (sometimes 350%) CPU usage of the flashpl