Question on web service mobile client app for Android using ksoap2.

by Anjana » Fri, 23 Apr 2010 12:38:33 GMT


Sponsored Links
 Hi

I am creating web service clients in mobile devices (Android) through
the use of ksoap2 libraries.

 http://developer.ebay.com/DevZone/finding/Concepts/MakingACall.html 
states:
For the Finding API, no URL parameters or HTTP headers, including X-
EBAY-SOA-SECURITY-APPNAME can be specified in the SOAP header.

If they cannot be specified in SOAP header, how else can it done
(preferably using ksoap2 library). I tried appending parameters to the
URL, then calling AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL); (everything else prior to the call is done,
sorry for not posting the code) but this yields soap fault.

Any thoughts/ suggestions? Thanks.
Anjana.

--



Other Threads

1. Browser Back Button

Hello,

I see that there is no provision for navigating back on Android Browser. I
see that it does have a forward button. To go back, I am forced to use the
back button on the device but the problem with that it does not retain the
state of the page. I am curious if this is a feature or a bug ? If feature,
what is the rationale to do so? I have seen this behvaiour on Nexus One and
Motorola Devour.

-- 
Thanks,
Jaikishan

-- 

2. how to start application in last viewed activity in previous session

I'm writing an application consisting of several activities and, on
restarts, I'd like the application to initially display the
application's activity that was the last to display in the
application's previous session.

I save information about the last activity in SharedPreferences and
I'm trying to start that last activity with a call to
startActivity(intent) from my Application's onCreate handler.  The
problem is that if I don't set the intent's FLAG_ACTIVITY_NEW_TASK,
the result is a run-time exception message in logcat suggesting that I
should set the flag.  And if I set that intent flag, the correct
activity gets started but doesn't fully initialize resulting in null
pointer exceptions (which don't occur when I don't attempt to start
the activity from my Application class).

- - -

W/dalvikvm(  805): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime(  805): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  805): java.lang.RuntimeException: Unable to create
application com.test.tangled.TApplication:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK
flag. Is this really what you want?

- - -

Any tips on how to correctly start a particular activity from the
Application class's onCreate handler?

Thanks,
Greg

-- 

3. | WTB | htc hero / qliq......

4. When someone posts your paid app on a forum

5. Help/OOT:Ada apa dengan GMail?

6. Seeding program phones. Anyone tried to activate their droid on a private account yet?

7. NJ Court finds Owner-Operator to be Employee for Worker's Compensation Purposes