Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2013

    How to cancel a .NET Web Service connection?

    Using the wscompile tool I generated one class in order to consume a .NET web service, but, I need to cancel the operation when the response is to huge that takes many seconds. I'm not talking about the timeout, the communication with the server is ready, but the XML is to huge or the network is so slow.

    Best regards

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Budapest, Hungary

    Re: How to cancel a .NET Web Service connection?

    In "normal" Java you simply close the Socket, and based on http://docs.oracle.com/javame/config...onnection.html, I would assume the same here. Of course here I also assume that you have access to the corresponding WhateverConnection object.

  3. #3
    Registered User
    Join Date
    Jun 2013

    Re: How to cancel a .NET Web Service connection?

    Thank you for take a while and response. Ok, but the two files generated by the wscompile tool are:

    MyWSConnectionSoap.java - interface that extends from java.rmi.Remote
    MyWSConnectionSoap_Stub.java - class that implements the MyWSConnectionSoap and javax.xml.rpc.Stub

    So, I'm sure I can not use the close() method, but let me know if I'm wrong.


Similar Threads

  1. Cancel asynchronous Service not working
    By blueskynorth in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-04-17, 13:51
  2. Replies: 2
    Last Post: 2008-01-08, 15:05
  3. How to cancel a http connection mid-way
    By capricious28 in forum Mobile Java General
    Replies: 0
    Last Post: 2007-08-10, 10:42
  4. Bluetooth cancel Connection
    By goonii in forum Bluetooth Technology
    Replies: 5
    Last Post: 2007-02-05, 21:26
  5. how to abort or cancel a http connection
    By yavour in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2007-01-17, 20:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts