Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Customize soap body in Ksoap2

and teet
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm trying to call a web service thru Ksoap 2.5 now. My question is if there is anyway to customize soap xml body?

Right now ksoap generates the following code snippet:

<getInfoRequest xmlns="">
<type i:type="d:int">1</type>

And the web service server complains that "The soap message you provided is invalid."

If I change the snippet in the following way, the code will work:

<v21:getInfoRequest xmlns:v21="">

Any ideas to customize the envelope body? Thanks in advance!
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!