What steps will reproduce the problem?
I am trying to create a new property inside a SoapObject that will contain
simple string properties with attributes to them like this:
<Power Unit="kw">1500</Power>
here is the code i am using for my samples below.
final SoapObject powerObject= new SoapObject(namespace, "CostOfRepairs");
powerObject.addAttribute("Unit", getPowerUnit());
PropertyInfo powerObjectProperty = new PropertyInfo();
powerObjectProperty .setName("");
powerObjectProperty .type = String.class;
powerObjectProperty .setValue(getPower());
powerObjectProperty .addProperty(powerObjectProperty);
root.addSoapObject(powerObject); // this is my root for the hierarchy
What do you see instead?
The best that i could reach is the following:
<Power Unit="kw"><>1500</></Power>
i even tried to add everything as a string but that encodes the <> tags.
<Power Unit"kw">1500</Power>
What version of the product are you using? On what operating system?
ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar on android.
Please provide any additional information below.
Original issue reported on code.google.com by darkogro...@gmail.com on 19 Mar 2012 at 8:15
Original issue reported on code.google.com by
darkogro...@gmail.com
on 19 Mar 2012 at 8:15