• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

facing nullpointerexception while consuming kSOAP2 web service

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have implimented a SOAP web service using Axis. The web service adds two numbers and returns the sum. The code looks like this.

And I have published the web service and its working fine. If I execute it through Axis framework it's working perfectly fine.
And now I am tring to access the web service through Android Activity

This is the utility interface which contains the constants.


And this is the activity code.



The last line in the code is throwing NullPointerException. I know it's bacause "result" is being initialized to null. My Question is where I am going wrong. Please give me the solution on how to consume a web service which takes parameters and also returns some thing in response.

Thans and Regards,
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic