KSOAP2 Android - Create SOAP Request with complex queries -


i trying create following soap request ksoap2 android

expected -

 <?xml version="1.0" encoding="utf-8"?>  <s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  <s:body>   <rootnow xmlns="http://tempuri.org/">      <category xmlns:a="http://aboutsoap.com/anything"      xmlns:i="http://www.w3schools.org/2014/instance">         <a:categoryone>            <a:child1>hello</a:child1>            <a:child2>hello</a:child2>            <a:child3>true</a:child3>            <a:child4>hello</a:child4>         </a:categoryone>         <a:categorytwo>hello</a:categorytwo>         <a:categorythree>helloworld</a:categorythree>         <a:categoryfour i:nil="true" />      </category>    </rootnow>   </s:body>  </s:envelope> 

i have tried creating propertyinfo classes , soapobjects , able following response

actual -

<?xml version="1.0" encoding="utf-8"?>  <s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  <s:body>   <rootnow xmlns="http://tempuri.org/">      <n0:category xmlns:n0="http://aboutsoap.com/anything">         <n0:categoryone>            <n0:child1>hello</n0:child1>            <n0:child2>hello</n0:child2>            <n0:child3>true</n0:child3>            <n0:child4>hello</n0:child4>         </n0:categoryone>         <n0:categorytwo>hello</n0:categorytwo>         <n0:categorythree>helloworld</n0:categorythree>         <n0:categoryfour i:nil="true" />      </n0:category>    </rootnow>  </s:body> </s:envelope> 

here getting prefix category , 1 namespace shown using ksoap2 how can create expected soap request?

one silly question - getting prefix n0. can use a prefix? or doesn't make difference request

edited rephrasing question. how can create soap object having name , 2 namespaces , no prefix attached?

e.g.

       <category xmlns:a="http://aboutsoap.com/anything"         xmlns:i="http://www.w3schools.org/2014/instance"> 

and how can provide namespace xmlns:a="http://aboutsoap.com/anything node child


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -