hi
Well When i tried to access my web service then during debug time i
got following exception ::

org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http://
schemas.xmlsoap.org/soap/envelope/}Body (position:END_TAG </{http://
schemas.xmlsoap.org/soap/envelope/}env:Fault>@2:595 in
[EMAIL PROTECTED])

E/AndroidRuntime(  554):        at
org.kxml2.io.KXmlParser.exception(KXmlParser.java:243)

E/AndroidRuntime(  554):        at
org.kxml2.io.KXmlParser.require(KXmlParser.java:1374)

E/AndroidRuntime(  554):        at org.ksoap2.SoapEnvelope.parse(Unknown
Source)

E/AndroidRuntime(  554):        at
org.ksoap2.transport.Transport.parseResponse(Unknown Source)

E/AndroidRuntime(  554):        at
org.ksoap2.transport.AndroidHttpTransport.call(AndroidHttpTransport.java:
82)

E/AndroidRuntime(  554):        at
com.android.i3content.Test.playVideo(Test.java:74)

E/AndroidRuntime(  554):        at com.android.i3content.Test
$1.onClick(Test.java:56)

E/AndroidRuntime(  554):        at android.view.View.performClick(View.java:
1515)

E/AndroidRuntime(  554):        at
android.widget.ImageButton.performClick(ImageButton.java:80)

E/AndroidRuntime(  554):        at android.view.View.onKeyDown(View.java:
2280)

E/AndroidRuntime(  554):        at
android.view.KeyEvent.dispatch(KeyEvent.java:401)

E/AndroidRuntime(  554):        at
android.view.View.dispatchKeyEvent(View.java:2206)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at android.policy.PhoneWindow
$DecorView.superDispatchKeyEvent(PhoneWindow.java:1071)

E/AndroidRuntime(  554):        at
android.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:884)

E/AndroidRuntime(  554):        at
android.app.Activity.dispatchKeyEvent(Activity.java:1377)

E/AndroidRuntime(  554):        at android.policy.PhoneWindow
$DecorView.dispatchKeyEvent(PhoneWindow.java:1058)

E/AndroidRuntime(  554):        at
android.view.ViewRoot.handleMessage(ViewRoot.java:564)

E/AndroidRuntime(  554):        at
android.os.Handler.dispatchMessage(Handler.java:80)

E/AndroidRuntime(  554):        at android.os.Looper.loop(Looper.java:71)

E/AndroidRuntime(  554):        at
android.app.ActivityThread.main(ActivityThread.java:2506)

E/AndroidRuntime(  554):        at
java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  554):        at
java.lang.reflect.Method.invoke(Method.java:380)

E/AndroidRuntime(  554):        at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1170)

E/AndroidRuntime(  554):        at
android.os.ZygoteInit.main(ZygoteInit.java:1121)

E/AndroidRuntime(  554):        at android.dalvik.NativeStart.main(Native
Method)

do u have any idea abt that .plz help me....


On Mar 12, 9:04 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> You probably don't want to access a "web service" from Android,
> actually. Let me clarify that, it depends what you mean by web
> service.  If you mean an HTTP resource that's using REST or AtomPub,
> or the like, then sure, that makes sense (and I have several apps that
> do that, using Google Base, Yahoo! APIs, etc).  If you mean SOAP, then
> you will have a lot of overhead that you probably don't actually want
> on a mobile device.
>
> If you already have a SOAP service you want to hit, create a SOAP
> proxy on a server, one that turns your SOAP into something RESTy, and
> then use that.  Android includes SAXParser, that with a quick handler
> makes for a good way to read XML data, and if you need to you can also
> construct your own POSTs and GETs, etc.
>
> This is one of the reasons I always use a service "bean" and then
> expose my service with several different protocols (REST, APP, SOAP,
> etc) - different clients and devices will have different capabilities
> and requirements.
>
> Don't get me wrong, there probably are several ways you *could* run
> SOAP requests from Android, I am just saying in performance and
> complexity terms, you may not actually *want* to do that.
>
> On Mar 12, 9:26 am, jacek <[EMAIL PROTECTED]> wrote:
>
> > I am working on fast web service code for Android, concentrating
> > on very efficient XML parsing and transformations.
> > Check outhttp://ambrosoft.comandespecially the Amazon Music CD's
> > demo
> > which you can download and play with.
>
> > On Mar 12, 3:42 am, chitgoks <[EMAIL PROTECTED]> wrote:
>
> > > baaah, i think ill be on hiatus with android till their webservice feature
> > > comes up. i tried looking for possible ways
> > > to call a webservice but all i find is ksoap and youd have to include its
> > > jar file for compilation. problem is how the jar file can be converted to 
> > > be
> > > part of an apk file. using android asset packaging tool?
>
> > > > On Wed, Mar 12, 2008 at 1:52 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
>
> > > > > The Android SDK does not include any explicit APIs for using web
> > > > > services.
> > > > > This has been logged as a feature request earlier.
>
> > > > > Thanks,
> > > > > Megha
>
> > > > --
> > > > Website:http://chitgoks.freehostia.com
> > > > Java Casino Games:http://chitgoks.tripod.com
> > > > My Blogs:
> > > >http://chitgoks.blogspot.com
> > > >http://wuhtevah.blogspot.com
> > > >http://disneyusa.blogspot.com
>
> > > --
> > > Website:http://chitgoks.freehostia.com
> > > Java Casino Games:http://chitgoks.tripod.com
> > > My 
> > > Blogs:http://chitgoks.blogspot.comhttp://wuhtevah.blogspot.comhttp://disney...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to