Questions tagged [httptransportse]

12 questions
3
votes
4 answers

java.lang.NullPointerException: println needs a message soap

that my source code, private static final String URL = "http://footballpool.dataaccess.eu/data/info.wso"; private static final String NAME_SPACE = "http://footballpool.dataaccess.eu"; private static final String METHODE_NAME =…
Zouhair
  • 611
  • 2
  • 8
  • 15
3
votes
1 answer

How can I cancel soap call in ksoap2?

I am using this code for calling webservice method by ksoap2: SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; …
Bob
  • 22,810
  • 38
  • 143
  • 225
2
votes
0 answers

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden

I am getting following error while using the SharePoint web service: com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden at …
gkbstar
  • 615
  • 1
  • 6
  • 16
1
vote
2 answers

how to set timeout for: `google-client spreadsheet api`?

I'm using google-client api for spreadsheet. I get a time out after 20 seconds. How can i set the timeout to a custom value? private Sheets initService(GoogleCredential credential) throws GeneralSecurityException, IOException { final…
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
1
vote
1 answer

HttpTransportSE requestDump gives NullPointerException

I'm trying to access a webservice in Android via Ksoap2 for Android. The SoapObject is created OK, the S.O.P of the bodyOut outputs the desired strings. But when I do a requestDump of the HttpTransportSE object I create to make the call, a…
chamilad
  • 1,619
  • 3
  • 23
  • 40
1
vote
0 answers

cancel httpTransport.call using ksoap in android

I using ksoap lib for connecting to my Webservice. my scenario is showing a progress dialog call my Webservice 3-1. if done dismiss the dialog 3-2. if the user cancels dialog then cancels calling operation but I don't know how can I cancel call…
max
  • 5,963
  • 12
  • 49
  • 80
0
votes
1 answer

Android Studio Soap Xml Request format not printing

The below Android soap xml request/resposen is printing in Eclipse. But, In Android Studio, Response is print, Request in XML format not printing. mySample Code: Android Ksoap Xml request AndroidHttpTransport httpTransport = new…
0
votes
1 answer

ksoap2 ver. 2.5.2 HttpTransportSE returns null no matter what I try

Disclaimer: I AM a newbie at Android programming :( I have seen a similar question posted here, but the solution did not work for me. I AM trying to meet all the criteria for a properly posted question so please bear with me. I wrote a C# client to…
0
votes
1 answer

Using response.Dump

Can somebody please tell me how to use response.Dump? my code Errors out after this line: androidHttpTransport.call(SOAP_ACTION, envelope); With a org.xmlpull.v1.XmlPullParserException: expected: START_TAG error, so I want to compare the xml files…
bbesase
  • 791
  • 4
  • 18
  • 31
0
votes
0 answers

How to send large custom object to .net webservice in android

I am able to send custom object to my .net webservice and my webmethod is working absolutely fine. I tested that code on multiple phone and result was success but when I was trying it on samsung mobile it started to give me exception. I found that…
user2376920
  • 242
  • 1
  • 7
  • 19
0
votes
1 answer

Ksoap2 with https uses a lot of bandwitch How to optimize connections?

I'm writing an app that connect to an https web service many times using ksoap2 and the data usage of the app is high. I think it's high because I'm doing the connection every time i invoke the WS. There is a way to use the same connection for my…
David
  • 150
  • 1
  • 10
0
votes
1 answer

android ksoap error in httptransportse.call();

Please any one help me with this bug... Here is ma Java code: public class MainActivity extends Activity implements Serializable { private static final String Url = "http://c.knotbiz.com/knotbizjob.asmx"; private static final String…