Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
mindus
Posts: 111
Registered: ‎11-05-2009

Ksoap2 (how to set response wait time)

[ Edited ]

Hi

  I am using KSoap2.jar in my blackberry application. Is it possible to set the response wait time using HttpTransport. 

 

 

Thanks

mindus

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Ksoap2 (how to set response wait time)

do you mean a connection timeout?
on a socket connection you can use socketconnectionenhanced.
on a bes connection you can use mdstimeout.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
mindus
Posts: 111
Registered: ‎11-05-2009

Re: Ksoap2 (how to set response wait time)

Hi

  Thanks for your response.

 

In my application i am sending the request to the server and i am getting a  response as follows

 

"Received a invalid response" (using transport.responseDump)

 

 

I suspect if my application wait for some more time the issue can be fixed so i want to increase the response wait time. For eg: set the response time to 10 secs like that.

 

Is it possible using ksoap2. 

 

Thanks

mindus

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Ksoap2 (how to set response wait time)

no, this is a server-side issue. you send a request, the server sends a response.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
mindus
Posts: 111
Registered: ‎11-05-2009

Re: Ksoap2 (how to set response wait time)

Hi,

   Thanks, i understood the issue, and i will check what is the problem in server side.

 

Is there is any forums where the similar problem of getting Received a invalid response is discussed.

 

Just for my knowledge i want to know about  is there is anyway to set the response wait time as i mentioned in my previous reply.

 

Thanks

Mindus

 

 

Please use plain text.
Developer
mindus
Posts: 111
Registered: ‎11-05-2009

Re: Ksoap2 (how to set response wait time)

Hi

  Can anybody have any idea about this issue?

 

 

Thanks

mindus

Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Ksoap2 (how to set response wait time)

you can use tcpmon to check the soap requests being sent and received.
transport.debug=true enabled you to access transport.request and transport.response.
you can use sopaui to test the webservice and see how the correct request should look.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.