Android Forums

Go Back   Android Forums > Google Android > Android Development

Click Here To Register!
Reply
 
Thread Tools Search this Thread Display Modes
Old 08-06-2008, 11:18 AM   #1
Junior Member
 
Join Date: Jul 2008
Posts: 5
I am trying to connect to the web service using ksoap2. For some reason I am getting this XMLPullParserException.

any Idea what that could be about. My code is as below:

PHP Code:
        SoapObject request = new SoapObject(NAMESPACE"AuthenticateUser");
        
SoapObject inAddIntegers = new SoapObject(NAMESPACE,"AuthenticateUser");
        
inAddIntegers.addProperty("Username""bkhan@gmail.com");
        
inAddIntegers.addProperty("Password""astegic");
        
request.addProperty("AuthenticateUser"inAddIntegers);
        
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        
        
envelope.setOutputSoapObject(request);
        
envelope.dotNet=true;
        
tv.setText("baran khan");
         try {
        
//edit.setText("mfine");
        
AndroidHttpTransport transport = new AndroidHttpTransport(URL);
        
transport.call("http://tempuri.org"+SOAP_ACTIONenvelope);
        
Object result envelope.getResponse();
        
tv.setText(result.toString()); 
baran_khan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Old 10-09-2008, 03:48 AM   #2
hej
Junior Member
 
Join Date: Oct 2008
Location: Kansas City
Posts: 25
Have you tried verifying the actual URL that your code puts together, and manually pasting it into a browser? This would be the easiest way to spot check and make sure the URL is valid and the service is returning a proper XML document.
hej is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Unlocked G1 Phones

All times are GMT. The time now is 05:09 AM.



SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.
Copyright (c) 2008 TalkAndroid.com. All rights reserved.