Saturday, June 2, 2012

Re: [android-developers] Re: Invoking a web service created in java

If you look at this link:
you will see that this problem is difficult to resolve, but there are some suggestions that may help you.

The problem is that there is a missing class that java on the desktop has, which is why you get the error on the android.

You may want to try using ksoap ( http://code.google.com/p/ksoap2-android/ ) instead of axis, and your problem may go away.

On Fri, Jun 1, 2012 at 11:51 PM, Bunty <gautam.imps@gmail.com> wrote:
No. I have got Axis.jar in my android project build path. the same
thing when i do in java project, it works excellently. But in android
project it does not.

Compilation error:

The type java.rmi.RemoteException cannot be resolved. It is indirectly
referenced from required .class files

and many more..seems like its not supported in android project.

Please help me with possible ways.

On Jun 2, 8:44 am, James Black <planiturth...@gmail.com> wrote:
> What kind of errors are you getting?
>
> It may be that you are missing a library, perhaps.
>
>
>
>
>
>
>
>
>
> On Fri, Jun 1, 2012 at 11:27 PM, Bunty <gautam.i...@gmail.com> wrote:
> > Hi all,
>
> > I need to invoke a web service from android app. I have the wsdl file
> > of a web service created in java, i don't have the source code of the
> > same.
>
> > In java, i use the "Generate Client" option to generate the files from
> > a wsdl and then invoke the web service via my java app using Axis.jar.
>
> > When i click the "Generate Client" option the files are generated
> > along with some compilation errors. But the same thing when i am doing
> > in an java app, the generated files does not have any compilation
> > errors.
>
> > Please inform the proper way of doing the same from the android
> > prospective.
>
> > Regatds,
> > Bunty
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Resume & Projects:http://careers.stackoverflow.com/jamesblack
>
> "I know that you believe you understand what you think I said, but I'm not
> sure you realize that what you heard is not what I meant."
> - Robert McCloskey

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--

"I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant."
- Robert McCloskey

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment