Is this URL Ok to Send Data using Get

hello guys,
I want to send parameter from MIDlet to Servlet
I m using Tomcat as my web server
If my External IP address is > 225.221.112.10
then how can i wrote in place of "localhost"
i m posting wht i did but it doesnt work, i still get NULL value in Servlet.
Here is my code
public void callServlet(String name){
String url =
"*http://225.221.112.10:8080/ServletClass/MyServlet?Hello="+name;*
**HttpConnection cn = null;**
try{
cn = (HttpConnection) Connector.open(url);
cn.setRequestMethod(HttpConnection.GET);
cn.openDataInputStream();
if(cn.getResponseCode() == cn.HTTP_OK){
// this print well, when i run MIDlet
System.out.println("Connection OK ! ");
please Help me out, its the base for my Project ,
Thank you

Hi nNiTIn,
I was wondering what the type of your project was, a C# project, or asp.net project?
If your project is asp.net, I would recommend you to turn to the asp.net forum, and the links below might be useful to you:
# how to send whatsApp message from asp.net??
http://forums.asp.net/t/1919622.aspx?how+to+send+whatsApp+message+from+asp+net+
# ASP.Net Forum
http://forums.asp.net
It would be helpful if you could share us more information about your issue.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • SAPGUI_PROGRESS_INDICATOR what is use of this fun module when sending data

    dear ,
    what is use of
    SAPGUI_PROGRESS_INDICATOR  fun module when sending data to FTP SERVER . POINTS MUST BE GIVEN

    Dear ,
    when i am trying to send data in internal table of type charterter declared below(i.e iresult) to FTP SERVER program giving the DATA ERROR = 3 when 'FTP_R3_TO_SERVER' fuction module is exected and file it not creating in ftp server . plz help me pointS must be given .
    the FTP_CONNECT ,FTP_COMMAND function modules are executing properly giving handle 1 and its sy-subrc = 0 .
    when 'FTP_R3_TO_SERVER' is executed it is giving SY-SUBRC = 3 ( DATA ERROR ) i.e it is failing to out internal table data in FTP SERVER . PLZ HIDE ME ITS URGENT .
    THIS IS CODE I USED .
    DATA : BEGIN OF iresult OCCURS 5,
    rec(450),
    END OF iresult,
    DATA :
    dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
    compress TYPE c VALUE 'N',
    host(64) TYPE c.
    DATA: hdl TYPE i.
    DATA: BEGIN OF result OCCURS 0,
    line(100) TYPE c,
    END OF result.
    DATA : key TYPE i VALUE 26101957,
    dstlen TYPE i,
    blob_length TYPE i.
    host = p_host .
    DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
    ID 'DSTLEN' FIELD dstlen.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    user = p_user
    password = p_password
    host = host
    rfc_destination = dest
    IMPORTING
    handle = hdl
    EXCEPTIONS
    not_connected = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = ftppath
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    CLEAR result .
    REFRESH result .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = 'ascii'
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    DESCRIBE TABLE iresult LINES lines.
    blob_length = lines * width .
    clear : lines.
    Delete the existing file
    CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = delfile
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    *End of deleting the existing file
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = hdl
    fname = ftpfile
    blob_length = blob_length
    TABLES
    blob = iresult
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF sy-subrc 0 .
    WRITE 'Error in writing file to ftp' .
    ELSE.
    WRITE 'File downloaded on the ftp server successfully'.
    ENDIF.
    ENDIF.
    ELSE.
    WRITE : 'Path on ftp not found : ' , ftppath .
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    handle = hdl.
    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
    EXPORTING
    destination = 'SAPFTP'
    EXCEPTIONS
    OTHERS = 1.
    ELSE.
    WRITE 'Could not connect to ftp' .
    ENDIF.
    ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'PASSWORD'.
    screen-invisible = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.

  • How to send data using serial Communication

    I want to make serial communication using RXTXcomm.jar file.I was written the code.From this I got the list of serial ports avilable on pc but then after when I was tring to send command to machine which is attached to port it didn't gave any reply.
    Tell me that how to send command to port?

    This is how I do it:// open port, get ownership
    SerialPort serialPort= (SerialPort)portId.open(APPLICATIONNAME, timeout);
    // no framing and no threshold
    serialPort.disableReceiveFraming();
    serialPort.disableReceiveThreshold();
    // communication speed, parity, stopbits and databits
    serialPort.setSerialPortParams(BAUDRATE, SerialPort.DATABITS_8,
         SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
    // no handshaking or other flow control
    serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);
    // timer on any read of the serial port
    serialPort.enableReceiveTimeout(TIMEOUT);
    // open streams for reading and writing
    InputStream is= serialPort.getInputStream();
    OutputStream os= serialPort.getOutputStream();... then you use the 'os' stream for writing and the 'is' stream for reading.
    kind regards,
    Jos

  • Send data using exel file to function generator

    Hi all,
    I have one function generator which I controll with LabVIEW, I attached here the simple code.
    I would like that code read some data from exel file .
    May you please help me?
    Thanks
    Attachments:
    DG4000General.vi ‏43 KB

    I used different example like the one that I attached but I can not connect with m device.
    Now I can read my datas from Exel but how can I send to generator?
    I really confused.
    thanks in advance
    Attachments:
    Untitled 1.vi ‏34 KB

  • Send request using GET operations

    hi all,
    how can i do a GET operation in my servlet to https url?
    i just can't imagine how to do that.maybe...
    1) do jsp which is has username & passwd input text
    2) submit the form into servlet
    3) in servlet, send both username & passwd to the https url
    can somebody give me an idea how to do that, or any sample to learn???

    Use java.net.HttpURLConnection, starting with a java.net.URL.
    GET is the default method.
    You don't need a JSP.
    There are tutorials on java.web.com about it. The networking trail.

  • Why do I only have 1x service this morning and cannot send texts or get service while everyone else around me with verizon have full coverage?

    My phone was working at 8:00 AM this morning and now it only gets 1x coverage and I cannot make any calls or texts and I have no internet service. Everyone else has full coverage that has Verizon and I want to know why. I already reset my network settings.

    Why would you think a problem with Verizon when you have already stated everyone else with Verizon has full coverage?
    Have you updated your iPhone to the new iOS 8/8.0.1/8.0.2??? Apple has been having problems with cellular connectivity with the new OS and is currently working on the 3rd update to iOS 8 in less than a month. Hopefully this will be pushed out soon and will fix many of the problems people have been having.

  • Using LoadVars in SSAS to send data to a php file

    I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
    Here is main.asc:
    <code>
    var variables = new LoadVars();
    variables.username = "uname";
    variables.send(http://url.abc.com/test.php,POST)
    </code>
    I can't compile with the second line. FMS just says: Sending error message: Compilation error
    How do I send variables to a HTTP URL?

    However that should be fine..
    This is sample way to send data using LoadVars
    var my_lv = new LoadVars();
    my_lv.name= "myname";
    my_lv.send("http://server/test.php", "_blank", "POST");
    Try keeping url and and POST method within "quotes". Also, method [POST/GET] is third parameter, second is target where results must be loaded (if any)..

  • Best Way to send data from InfoProvider to DBTable

    Hi all,
    I need some advices on this subject :
    I want to send some data, stocked in several InfoCubes, to a table.
    This cubes are linked by a multicube (for queries).
    I don't know the best way to send the data in a table :
    - Use Open hub on each cube to send data
    - Use ABAP code for extract data directly from MultiCube (possible?)
    - Use open hub on multiprovider (I think it's not possible to plug a open hub to the Multiprovider...)
    What is the best practice on that?
    Can you help me please?
    Thanks in advance,
    Adrien.

    Oh yes, my mistake.
    I didn't think abuot the APD solution.
    I think it should be a good one...
    With the ABAP, it seems very difficult indeed.
    I'm gonna check this way ! Thanks for your help Daniel !
    And except the licence cost, the Open hub should be a good solution??
    Edited by: Adrien Loire on Oct 1, 2010 10:34 AM

  • POST data using XML

    hi everyone...i want to upload a video to youtube from my desktop application. i went through the following link.
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
    it is for sending data using XML. but i don't know how to send data using XML. can someone give me an insight of data POST'ing using XML? any help is appreciated.

    actually i saw the following segment in this link :
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
    POST /resumable/feeds/api/users/default/uploads HTTP/1.1
    Host: uploads.gdata.youtube.com
    Authorization: AuthSub token="DXAA...sdb8"
    GData-Version: 2
    X-GData-Key: key=adf15ee97731bca89da876c...a8dc
    Content-Length: 1941255
    Slug: my_file.mp4
    Content-Type: application/atom+xml; charset=UTF-8
    <?xml version="1.0"?>
    <entry xmlns="http://www.w3.org/2005/Atom"
      xmlns:media="http://search.yahoo.com/mrss/"
      xmlns:yt="http://gdata.youtube.com/schemas/2007">
      <media:group>
        <media:title type="plain">Bad Wedding Toast</media:title>
        <media:description type="plain">
          I gave a bad toast at my friend's wedding.
        </media:description>
        <media:category
          scheme="http://gdata.youtube.com/schemas/2007/categories.cat">People
        </media:category>
        <media:keywords>toast, wedding</media:keywords>
      </media:group>
    </entry>

  • A Power User Can Not Send Data  - BPC Release 7.5.112.07 MS

    Hi BPC Community,
    We have a group of users who are able to send data to locked dimensions. We added a new power user and this person can not send data to locked dimensions (see attached screen-shot). The person is checked box as a "leader" in the Teams responsibility.
    Any suggestions?
    Thanks. Barry

    Hi
    Options
    • All = any user with member access write privilege
    • Owner = only users assigned as owner with member access write privilege
    • Mgr = Owner of parent dimension member is manager of child dimension member
    • Locked = no user regardless of authorization.
    Controlled By: Determines who can select the work status code
    • Both = owner of the specific member ID and the owner of the parent to the specific member ID
    • Owner = owner of the specific member ID
    • Mgr = owner of the parent to the specific member ID.
    also go through below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2064bb40-ea48-2e10-069c-cc6878a0f1cc?QuickLink=index&…
    https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&uact=8&ved=0CEIQFjAE&url=https%3A%2F%2Fhelp.sa…
    Hope this will help you.
    sushant

  • Freescale FRDM-K64F sending data over CANBUS.....

    I have setup J2ME embedded 8.1 on the FRDM-K64F. I was able to work with reconfigured GPIO  and access the accelerometer via I2C.
    How do you initialize and send data using CAN interface on the FRDM-K64F?

    To clearify for me, Are you stating the J2ME (at this time) can not use the CAN feature on frdm-k64f.....
    http://developer.mbed.org/platforms/frdm-k64f/

  • SAP fixed asset add-on. Not able to import master data using upload pgm.

    Hi all,
    I am trying to import fixed asset master data using an excel file into sap B1 2007a patch level 42. I am able to run the import transaction. It tries to process and then giving me a message ' Import end: Number of successfully imported assets: 0. Number of processed assets:2. We have looked at the event log file and couldn't find anything related to the upload.  I have gone through other posts and didn't face this issue. Any hellp is apreciated.
    Path which I am using to upload the fixed asset master master data: Administration --> Setup --> fixed asset --> import fixed asset master data.
    Following points (see below) also taken into account while creating the master data sheet.
    also replaced the ',' in the csv file to ';' before uploading and changed the fixed asset mode to 'transfer' in the administration --> system initialization > company detaills> basis initialization.
    Thanks
    Johnson zavier
    Mandatory:     Item Code = Asset Class; this Asset Class must be previous defined in the Asset Settings (don't change/delete anything in the item-master data - there are the Asset Classes Z-00u2026. Are stored          
         Description = Description of this Asset          
         Capitalization Date = do it like this (YYYY-MM-DD). This columne must be a text format          
         APC = Aquisition/Procuction Cost; when you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45          
         Quantity = only mandatory, when you use the same assets stored under one asset number. Example you have ten equal chairs, so you can handle this with one asset number and quantity ten          
         Dep01 = Depreciation area; this entry must be previous defined in the Asset Settings          
         Depr Start date 01 = do it like this (YYYY-MM-DD). This columne must be a text format. The beginning must be the first of the month. Please compare it in this case with the capitalization date          
         Useful Life 01 = calculated in months (not years)          
         Remaining Life 01 = calculated in months (not years)          
         Depr Type 01 = Depreciation Type must be previous defined in the Asset settings
         Ordinary Depr 01 = ordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
         Unplanned Depr 01 = unplanned/extraordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
         SpDpAcc1 01 = Special depreciation account; when you use special depreciations and you have it to balance on special accounts fill in this account. This is an exeption - in normal projects not needed
         SpDpKey2 01 = Special depreciation; when you use special depreciation you have to enter this cumulative value in this field. This is an exeption in normal projects not needed
         SpDpAccu2026 = for further special depreciation accounts; This is an exeption
         SpDpKey.. = for furhter special depreciation values; This is an exeption
    Optional:     Vendor Code = when using this please be aware that the vendor code is previous defined in the system
         all others = you can use if you want. The only limitation is the type/length of these fields
         When you are ready with your entries mark from the first free row on for instance the next 20 rows than right mouse key - delete rows. This is necessary to prevent that in the background are invisible signs
         After entering in this default excel all your assets, please save it as .csv file. (the grey message - relation to information of csv - please say yes; when you close than excel a furhter message - would you save.. - please say no now
         After entering all data please save it as .CSV file. First grey window (format information) please choose 'yes'. Second window (when you close this file) please choose 'no'.
         You have now a .csv file in hands right now for uploading into the fixed assets.
         This example you can use for a test-import based on the year 2004

    The issue was  because of the conflict of Depr. Start Date, Use Life and Remaining Life. After I corrected the data, it worked just fine. The note 876670 helped me to resolve this issue. Thanks to Adam at Toronto SAP Business one support for his expert analysis and suggestions.
    thanks
    johnson zavier
    Edited by: Johnson Zavier on Feb 19, 2009 11:10 PM
    Edited by: Johnson Zavier on Feb 19, 2009 11:20 PM

  • How can I get Sender Display Name using Get-MessageTrackingLog?

    Hi, could you please help me. We have got a monitoring system at work which monitors some devices, so if something wrong happening with these devices email is sent from MASTER email (Customer Name <[email protected]>) to us. I'm trying to get a list
    of all emails of that monitoring mailbox using PoweShell command
    Get-MessageTrackingLog and export them to CSV file. In the end of the day I need CSV file with 3 columns: TimeStamp, MessageSubject and SenderDisplayName! Yes, I need Sender Display Name cause all emails are sent from one MASTER email
    (Customer Name <[email protected]>) and only difference between them is sender Display Name which is cexactly what I need.   
    This is the code I'm using:
    Get-MessageTrackingLog -EventId Receive | Select Timestamp, MessageSubject, Sender | Export-CSV C:\NagiosAlerts.csv
    –NoTypeInformation
    So how can I get sender Display Name(Customer Name) using Get-MessageTrackingLog insted of Sender email (<[email protected]>)? 

    The DisplayName is not recorded in the Logs only the EmailAddresses are so there Is nothing you can do with Message Tracking to get this the way you want. You need to look at another property may soureIP or include something in the Subject
    of the Email (eg a customerId in the Subject is a much better option) to give you some differentiation. Otherwise you need to access the Email directly from the Mailbox it was sent to and then extract the DisplayName from the message (or use a journaling
    on those emails etc)
    Cheers
    Glen

  • ORA-39152 : While Impoting data using dbms_datapump utility

    Hi,
    Could anyone help me on this.
    I am importing data using dbms_datapump utility and setting 'Table_exists_action' ='APPEND',getting the error
    "ORA-39152: Table exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append".
    w_dp_handle := dbms_datapump.open(operation => 'IMPORT',
    job_mode => 'TABLE',
    remote_link => NULL,
    job_name => w_job_name);
    dbms_datapump.add_file(handle => w_dp_handle,
    filename => w_filename,
    directory => 'DATA_PUMP_DIR',
    filetype => dbms_datapump.ku$_file_type_dump_file);
    dbms_datapump.add_file(handle => w_dp_handle,
    filename => w_filename || '.LOG',
    directory => 'DATA_PUMP_DIR',
    filetype => dbms_datapump.ku$_file_type_log_file);
    dbms_datapump.set_parameter(handle => w_dp_handle,
    NAME => 'TABLE_EXISTS_ACTION',
    VALUE => 'APPEND');
    dbms_datapump.start_job(w_dp_handle);
    I know it is just a warning message,but i have to show the same log file generated to the user in which this Ora error is coming.
    Please guide me in removing this error.
    Thanks in advance for your help.

    Hi;
    What is DB version? Please see:
    ORA-39152 Table Exists Data Will be Appended to Existing Table [ID 818535.1]
    Also see:
    Import DataPump: Import of Object Types Fails With ORA-39083 ORA-02304 or ORA-39117 ORA-39779 [ID 351519.1]
    How to Transfer the Data Between Tables With Different Structures? [ID 1078211.1]
    Regard
    Helios

  • Socket not sending data.

    I am new to Flex and I am trying to use the Socket class using v4 beta of flex to send data to a .NET server written in C#.
    I can make the connect to the server ok using the flex client built as an air application but I cannot send any data.
    I do not get any exceptions thrown.
    I have written a Java client and it can send data using sockets to the server without any problems which means the server is ok.
    The server is running on the same box as the client which is a Windows XP system.
    Has anyone any ideas?

    Something like Wireshark (www.wireshark.org) can be useful in troubleshooting these sorts of issues. It will let you see when the data is actually sent and you can examine the packet to tell whether the client or the server is at fault for the garbled string.

Maybe you are looking for

  • How to copy entire message + header

    Folks, Is there some way (plug-in, applescript, anything) to select a message and to send to the clipboard the body of the message + the header. As it stands you can only copy the body of the email. The only way to get the lot appears to be saving th

  • Cfcalendar date formatting

    cfcalendar returns Tue Apr 22 00:00:00 GMT-0400 2008 but when I output dateFormat(TestDate,'mm/dd/yyyy') I get 04/22/2000 Is there a way to correctly parse that kind of timestamp? Thanks! <cfcalendar width="200" height="180" name="TestDate" selectedd

  • Viewing problem on 3. party cameras

    Hi All, One of our project we added axis P1355 & axis q6035 cameras with both onvif & Vapix profiles but in two methods there are a lot of latency and hesitation. We connected cameras with web browser and all acitons are perfect, all videos are runni

  • My iphone 4 has been shutting off randomly for about a week saying its dead when its not now it wont turn back on at all just giving me the charging picture

    my iphone 4 has been shutting off randomly for about a week saying its dead when its not now it wont turn back on at all just giving me the charging picture

  • Random Sync Loss Upon Export - HELP!

    So now I'm having an absolutely insane issue here. I am cutting in a DVCPro HD 720p60 project that originated on the Panasonic P2. The video was shot at 24pn and the frame rate is 23.98. I have finished cutting my project and despite my bizarre rende