{"id":707,"date":"2011-01-13T20:33:09","date_gmt":"2011-01-13T19:33:09","guid":{"rendered":"http:\/\/www.lightsoft.se\/?p=707"},"modified":"2011-03-08T12:53:53","modified_gmt":"2011-03-08T11:53:53","slug":"ksoap2-with-timeout-for-httptransportse","status":"publish","type":"post","link":"https:\/\/www.lightsoftai.com\/?p=707","title":{"rendered":"ksoap2 with timeout for HttpTransportSE"},"content":{"rendered":"<p>KSoap2-Android have long be the library to use for soap request. But for our android development we also needed timeout when using soap requests.<\/p>\n<p>Currently Ksoap2 only support timeout for https, but we have modified version 2.5.2 to also support timout for http, that we needed. You will find the download below.<\/p>\n<p>Official KSoap2 project-page is found <a href=\"http:\/\/ksoap2.sourceforge.net\/\">here<\/a><br \/>\nAnd Official Ksoap2-Android <a href=\"http:\/\/code.google.com\/p\/ksoap2-android\/\">here<\/a><\/p>\n<p>[sourcecode language=&#8221;java&#8221;]<\/p>\n<p>    \/**<br \/>\n     * Creates instance of HttpTransportSE with set url<br \/>\n     *<br \/>\n     * @param url<br \/>\n     *            the destination to POST SOAP data<br \/>\n     *\/<br \/>\n    public HttpTransportSE(String url) {<br \/>\n        super(url);<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * Creates instance of HttpTransportSE with set url<br \/>\n     *<br \/>\n     * @param url<br \/>\n     *            the destination to POST SOAP data<br \/>\n     * @param timeout<br \/>\n     * \t\t\t  timeout for connection and Read Timeouts (milliseconds)<br \/>\n     *\/<br \/>\n    public HttpTransportSE(String url, int timeout) {<br \/>\n        super(url, timeout);<br \/>\n    }<br \/>\n[\/sourcecode]<br \/>\n[ad#LightSoft &#8211; Banner &#8211; Image]<\/p>\n<p>Download the entire jar file:<br \/>\n[download id=&#8221;1&#8243;]<\/p>\n<p>Or source: [download id=&#8221;2&#8243;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>KSoap2-Android have long be the library to use for soap request. But for our android development we also needed timeout when using soap requests. Currently Ksoap2 only support timeout for https, but we have modified version 2.5.2 to also support timout for http, that we needed. You will find the download below. Official KSoap2 project-page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[75,45,32,55],"class_list":["post-707","post","type-post","status-publish","format-standard","hentry","category-coding","tag-android","tag-development","tag-download","tag-soap"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=707"}],"version-history":[{"count":19,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/707\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/707\/revisions\/749"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}