• Post Reply Bookmark Topic Watch Topic
  • New Topic

Customize soap body in Ksoap2  RSS feed

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="https://api.xxxxxx.com/abc/def/v2">
<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="https://api.xxxxxx.com/abc/def/v2">

Any ideas to customize the envelope body? Thanks in advance!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!