Http.Call error!

Hello

I'm calling a Web service, what he does is just authenticate the user name and password and return a string either 1 or - 1. While debugging, it is locked to httpTransport.call () for like a minute or more, then go to the exception giving error "java.io.InterruptedIOException: Local connection has expired after ~ 120000.

String ret=null;
 String error=null;
 String SOAPLOGINACTION = "http://nettechltd.net/wwwroot/ttweb/Service1.asmx/Authenticatee";
 String SOAPLOGINMETHOD = "Authenticate";
 String WSDL_TARGET_NAMESPACE = "http://nettechltd.net/wwwroot/ttweb/Service1.asmx";
 String SOAP_ADDRESS = "http://nettechltd.net/wwwroot/ttweb/Service1.asmx?WSDL";

 SoapObject rpc = new SoapObject(WSDL_TARGET_NAMESPACE,SOAPLOGINMETHOD);
         rpc.addProperty("username","test123");
         rpc.addProperty("password","test123");

    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    envelope.dotNet = true;
    envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    envelope.setOutputSoapObject(rpc);  
   HttpTransport  httpTransport = new HttpTransport(SOAP_ADDRESS);
   httpTransport.debug = true;
   httpTransport.setXmlVersionTag("");

   try
      {
          httpTransport.call(SOAPLOGINACTION, envelope);
          ret = (envelope.getResult()).toString();
          Dialog.alert(ret);
      }
        catch(Exception ex)
      {       error = ex.toString();
        }

Any suggestions are welcome.

There may be problem in your net connections, I tried this code and I got-1 as response.

Tags: BlackBerry Developers

Similar Questions

  • VAIO Updatenot - SVT15115CXS - HTTP 403 error work walk

    VAIO Update does not work - SVT15115CXS-

    Opens and tries to go to the Sony website, but gets

    HTTP 403 error refused; can connect but don't have permissions to view.

    Called Sony support and everything they said to do was to do a refresh and try again... tried and still the same error...

    Might be a bug...

    Try to check if you can ignore this by temporarily disabling your internet and your Windows Firewall security...

  • Cannot distinguish HTTP calls

    I use a "BOLD" v5.  My app in the Simulator, but when I load it on a device of the external web service HTTP calls fail.

    My phone is connected to my WiFi companies but the phone itself has NO service.  Is it a requirement for the phone to have the service in order to make these Cree HTTP?

    Initially, I was getting an error of the AFN.  I went and activated the AFN (do not know what to put in variables as the phone has no service) and now am getting an error "Radio is off.  I AM able to access the internet but not send the request HTTP calls.

    Any help would be greatly appreciated.

    You specify "= wifi interface" in your connection settings?

  • fax from Windows 7 on x 64 gives script error, line 2107 1 tank invalid procedure call error or argument, res//ieframe.dll/preview.js URL, know a fix for this?

    fax from Windows 7 on x 64 gives script error, line 2107 1 tank invalid procedure call error or argument, res//ieframe.dll/preview.js URL, know a fix for this?  Worked very well for server 2008r2.

    Hello

    1. you have recently installed Internet Explorer 9?

    If Yes, consult the following link:

    http://social.technet.Microsoft.com/forums/en-us/ieitprocurrentver/thread/b50f867e-3f67-4714-856A-59891fced4b9

    Let us know if the problem is solved or not.

  • MuseJSAssert: Selector function call error: TypeError: a.watch is not a function

    I am building a website in adobe muse and I downloaded on my servers from an external source no Muse.   But whem I look for my Web page in any browser being produced the following error: MuseJSAssert: selector function call error: TypeError: a.watch is not a function.   I appreciate if someone can help me with this error because I Don t find a solution on the internet (google).      I have download the catalyst activity of Muse and everything is OK, but whem I download an error on server FTP of Muse more is coming.   I don´nt understand and I need your help relly.

    Thank you for all


    NOTE: the web is:

    In BusinessCatalyst: home


    In 00webhost: home

    Please, try the suggestions mentioned in these discussions:

    https://forums.Adobe.com/thread/1313964

    MuseJSAssert: Error calling the function switch: TypeError: $(...). museMenu is not a function

    https://forums.Adobe.com/message/4991534

    Thank you

    Sanjit

  • loading file with the HTTP 404 error, according to the datasbase authentication scheme

    Hi, I am using the file browser to load the file, but has the HTTP 404 - File not found error. Of my application authentication schemes is the database (user identified by DAD)...

    In the page file to load, I have:
    browser of a files element called P2_FILE_NAME, region of a single report to display information from the downloaded file, the sql code is: select id, name, created_by, updated_by updated_on wwv_flow_files updated_on desc order.
    submit a button called.

    The problem is: if I run the page directly as APEX_PUBLIC_USER, the file is correctly loaded and displayed in the report area. However, if I go through the login page and open a session as long as user Dabase, then go to the file download page and try to load the file, it displays "the page cannot be found, HTTP 404 error.
    Any suggestion? Thank you in advance.

    Sue

    Sue - check with the person responsible for the implementation of your web server components.

    Scott

  • all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not helping

    all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not help somehow

    One possible cause is security software (firewall, antivirus) that prevents or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    You can try to reset (power off / on) of the router.

  • I Heve problem weth my call (error 53) pleace halp me

    I Heve problem weth my call (error 53) pleace halp me

    If you see an error message 53 in iTunes and 'Connect to iTunes' on your iOS device, follow the steps in this article to restore and recover your device using iOS 9.2.1 and iTunes on your Mac or PC.

    If you see the error 53 and your iPhone or iPad is stuck on the screen 'Connect to iTunes' - Apple Support

  • C410: Http 404 error: cannot download c410b win 10 x 64 driver

    Whenever I have try and download the driver win10 on the hp support site I get http 404 error...

    The requested URL /pub/softlib/software12/COL34152/mp-109793-2/PS_AIO_07_C410_140_408-4.exe was not found on this server.

    tried on different computers.  Even used HP print and scan to download doctor who completed but says download failed when it reached 100%.

    Any other link I can download this from?

    the file I need is PS_AIO_07_C410_140_408 - 4.exe

    I don't get an FTP address. The exact link I sent is as follows: http://support.hp.com/us-en/drivers/selfservice/HP-Photosmart-Premium-e-All-in-One-Printer-series---C4/4059515/model/4186826#Z7_3054ICK0KGTE30AQO5O3KA30R1

    Have you tried another browser, or the printer installation wizard?

  • HTTP 503 error when you try to deploy the project in Visual Studio

    I get a http 503 error when you try to deploy a project in Visual Studio-SQL Server 2005. What this mean and how can I solve this problem?

    Hello

    I suggest you refer to the following msdn link for the fix for the problem.

    http://msdn.Microsoft.com/en-us/vstudio/aa718325

  • Receive the message http 501 error / http 505 - please help

    Try to connect via a google account and e-mail at MandMDirect Web site.  Whenever I do this on any computer I get the error HTTP501/HTTP505.  I tried various changes according to the instructions to clear this problem but none have worked.

    One was to uncheck HTTP 1.1, another to uncheck 'Show friendly HTTP electronic error '.  When I made the second the next time I tried to log on to the reference number I got was #18.11f2645f.1334494826.34804dfo

    Please help how I got this phone yesterday and I thought it should work!

    Hello
    Try this:
    http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-website-error-messages-HTTP-errors
    b Eddie

  • HELP HTTP 404 error message

    Whenever I try to load google I get an HTTP 404 error message or it will load, but the page is empty. What should I do?

    Because you forgot to say how connect you to the Internet, I can suggest only you contact your Internet Service provider to ensure that your connection is viable. If that of the case, then start restricting the culprit in response:

    The first Question of troubleshooting: If the problem is new, what has changed between the time things worked and the time they do not have?

    The second issue of Windows troubleshooting: what is the status of virus/malware of the machine? If you think it's clean, what programs (and versions) allows you to determine this?

    Make sure that the computer is clean:
    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    Of course the question could be material, too. There is no way for me to know of here with so little information.

    Help us help you:

    http://www.elephantboycomputers.com/page2.html#Usenet (you can ignore the references to Usenet discussion groups / as you post on a web forum, but any suggestions on how to write the post are applies here too)

    http://support.microsoft.com/default.aspx/kb/555375 - how to ask a Question
    MS - MVP - Elephant Boy computers - don't panic!

  • HTTP 400 error

    Please HELP.every time I try to go on a Microsoft fs site, either directly or via a link iget the following report
    "HTTP 400 error. The request is malformed. "I can't even contact MS for help
    any ideas will be appreciated
    THX
    James

    This website lists the pages of possible causes and correct: http://www.checkupdown.com/status/E400.html. This should work for you.

  • HTTP 400 error by BES

    Hi all

    It is now over a day that I'm stuck with this problem.

    I have a client connection via a woman victim BES server connection failure. The application could not reach our Web site. He receives a HTTP 400 error.

    He's our first client behind a BES server, and we have not here a BES server.

    To check the connection method to use, I use the following code:

        private String getBlackBerryURLParam() {
            String bbParam;
            if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS)) {
                bbParam = ";deviceside=false";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_BIS_B)) {
                bbParam = ";deviceside=false;ConnectionType=***";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT, RadioInfo.WAF_WLAN, false)) {
                bbParam = ";interface=wifi";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT)) {
                bbParam = ";deviceside=true";
            } else {
                bbParam = "";
            }
            return bbParam;
        }
    

    (I got an error tolding me that the body of the message contains m d s-able blic (in a Word...), which is not allowed in this community.) Please remove this content before sending your message)

    He said that NO specific settings where on their BES server. He asked me to tell him what to change in his BES to allow the movement of our application.

    We are a member of the alliance, and our customer BIS-B works well...

    Do you have any idea? This problem is very urgent for us, cause Thursday (31/03) we will have a great event were we need to get this working!

    Thanks in advance for your lights...

    A touch of the RIM was told to try first using BIS - B, then with the doctors.

    Customer confirmed to me that it works.

    Then

        private String getBlackBerryURLParam() {
            String bbParam;
            if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_BIS_B)) {
                bbParam = ";deviceside=false;ConnectionType=****";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS)) {
                bbParam = ";deviceside=false";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT, RadioInfo.WAF_WLAN, false)) {
                bbParam = ";interface=wifi";
            } else if (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT)) {
                bbParam = ";deviceside=true";
            } else {
                bbParam = "";
            }
            return bbParam;
        }
    
  • Ugh... Requirement: A TimerTask making an HTTP call, parsing JSON, insertion into a SQLite database.

    How to implement a better design of the following?

    I have a UiApplication which has the following requirements:

    1. A static timer in the class that extends UiApplication.
    2. A class that extends screen and contains a class internal which extends TimerTask.
    3. When a user accesses to the screen, the TimerTask is started with:
      _timer.schedule(MyTimerTask, 1000, 15000);
      
    4. The first step is to do an HTTP call and return a valid JSON object which varies in structure - that is, it has a wide variety of paintings and JSON objects.
    5. The second step is to analyze and insert the JSON object values into tables in a SQLite database. The SQLite file is on the map.
    6. The third step is to read the updated SQLite table, loop through the table and build my ObjectListFields with the new values, and attach them to a VerticalFieldManager.
    7. The fourth step is to replace the old VerticalFieldManager with the new VerticalFieldManager and push the screen pop and updated then the current screen - so I have a stack of view high one single layer.

    Now the logic is actually on the spot, but since the TimerTask must cover every 15 seconds, I am a memory leak in all directions.

    To try to solve this problem, I have:

    • Cancelled the TimerTask with the onObscured and the onUiEngineAttached (false).
    • Restart the TimerTask with onExposed and onUiEngineAttached (true).
    • My DatabaseConnection closed the finally statement.

    However, when I look at the objects in Eclipse BlackBerry objects View when the TimerTask is not running, I still see 1 ~ 4 TimerTask objects and 1 ~ 4 DatabaseConnection objects.

    TimerTask both DatabaseConnection have a static instance (I don't have several entry points) with the following in my class that extends UiApplication:

    public static Timer _timer = new Timer();
    public static Database db = null;
    

    I attribute db when I need it with a call to DatabaseFactory.open within the class that extends TimerTask.

    Now that the business logic is correct, how to improve the design so I don't not leaking memory in every way?

    The statement closed the database is being called in, because I can set a breakpoint and see it has reached.

    Instead of onObscured/etc, you can move them into onVisibilityChange (boolean) is only in one place. Cancel your existing TimerTask before running a new, or at least check the TimerTask reference if you are only creating a... not just passing 'New TimerTask' in the calendar method without being able to track this object reference.

Maybe you are looking for