Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 08-06-2008, 04:18 AM   #1
Junior Member
 
Join Date: Jul 2008
Posts: 5
Friends: 0
View baran_khan's Profile   View baran_khan's Photo Album   View baran_khan's Blog   View Social Groups
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
Old 10-08-2008, 08:48 PM   #2
hej
Member
 
Join Date: Oct 2008
Location: Kansas City
Posts: 32
Friends: 0
View hej's Profile   View hej's Photo Album   View hej's Blog   View Social Groups
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
 

Thread Tools
Display Modes




Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.