I am using ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar
I am working on a project where i need the following soap request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mod="http://www.tmforum.org/xml/tip/model" xmlns:cust="http://www.tmforum.org/xml/tip/customer/cust">
<soapenv:Header/>
<soapenv:Body>
<mod:listProblemsRequest>
<!--Optional:-->
<mod:customer>
<cust:iD >1100000677</cust:iD>
</mod:customer>
</mod:listProblemsRequest>
</soapenv:Body>
</soapenv:Envelope>
but using KSOAP2 I am able to generate the following request:
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
<v:Header />
<v:Body>
<retrieveCustomerProfileRequest xmlns="http://www.tmforum.org/xml/tip/model">
<n0:customer xmlns:n0="http://www.tmforum.org/xml/tip/model">
<n1:iD i:type="d:string" xmlns:n1="http://www.tmforum.org/xml/tip/customer /cust">1100000990</n1:iD>
</n0:customer>
</retrieveCustomerProfileRequest>
</v:Body>
</v:Envelope>
How do I remove i:type="d:string"
from the SOAP request.
Please suggest a solution or any Workaround that could be done in Source code of KSOAP2 so that I may be able to generate the appropriate request.
Make sure that you have set these
soap
envelope properties:And in the
getPropertyInfo
for the object when returning the property info for the field make sure that you set the correct type e.g. :Where ever you are creating
just assign
sEnvelop.implicitTypes = true;
it will not create
"i:type="d:string"" or "i:type="d:long""
inner datatype tag and web service can execute successfullyI have found a workaround to my problem in ksoap :