• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customize soap body in Ksoap2

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

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>
</getInfoRequest>

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">
<type>1</type>
</v21:getInfoRequest>


Any ideas to customize the envelope body? Thanks in advance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic