Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add properties to this soap wsdl android
    text
    copied!<p>My Soap wsdl is:</p> <pre><code> &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;tem:AddTagDetails&gt; &lt;!--Optional:--&gt; &lt;tem:objtag&gt; &lt;tem:FKPersonID&gt;&lt;/tem:FKPersonID&gt; &lt;tem:FKConferenceID&gt;&lt;/tem:FKConferenceID&gt; &lt;!--Optional:--&gt; &lt;tem:TagName&gt;&lt;/tem:TagName&gt; &lt;tem:CreatedBy&gt;&lt;/tem:CreatedBy&gt; &lt;tem:ModifiedBy&gt;&lt;/tem:ModifiedBy&gt; &lt;/tem:objtag&gt; &lt;/tem:AddTagDetails&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>Am using this code to add properties to respective tags.</p> <p>SoapObject ad_property=new SoapObject(NAMESPACE2, METHOD_NAME2);</p> <pre><code> ad_property.addProperty("FKPersonID", Integer.valueOf(userValues.get(0))); ad_property.addProperty("FKConferenceID", Integer.valueOf(userValues.get(4))); ad_property.addProperty("TagName", tagName.getText().toString()); ad_property.addProperty("CreatedBy", Integer.valueOf(userValues.get(0))); ad_property.addProperty("ModifiedBy", Integer.valueOf(userValues.get(0))); </code></pre> <p>but am getting the exception as:</p> <pre><code> 07-15 02:03:29.401: WARN/System.err(583): org.xmlpull.v1.XmlPullParserException: unexpected type (position:END_DOCUMENT null@1:0 in java.io.InputStreamReader@450624b8) </code></pre> <p>how to resolve this Issue?</p> <p>methodnames: </p> <pre><code>private static final String METHOD_NAME2 = "AddTagDetails"; private static final String NAMESPACE2 = "http://tempuri.org/"; private static final String URL2 = "http://xxxx.xxxxxx/TagService.asmx?wsdl"; private static final String SOAP_ACTION2 = "http://tempuri.org/AddTagDetails" </code></pre> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload