マイソープWSDLは次のとおりです。 この石鹸WSDLにプロパティを追加する方法アンドロイド
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:AddTagDetails>
<!--Optional:-->
<tem:objtag>
<tem:FKPersonID></tem:FKPersonID>
<tem:FKConferenceID></tem:FKConferenceID>
<!--Optional:-->
<tem:TagName></tem:TagName>
<tem:CreatedBy></tem:CreatedBy>
<tem:ModifiedBy></tem:ModifiedBy>
</tem:objtag>
</tem:AddTagDetails>
</soapenv:Body>
</soapenv:Envelope>
は、それぞれのタグにプロパティを追加するには、このコードを使用しています。
SoapObject ad_property =新しいSoapObject(NAMESPACE2、METHOD_NAME2);
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)));
けどとして例外を取得しています。この問題を解決する方法を
07-15 02:03:29.401: WARN/System.err(583): org.xmlpull.v1.XmlPullParserException: unexpected type (position:END_DOCUMENT [email protected]:0 in [email protected])
?
methodnames:
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"
おかげ
は正しく作成されたXMLですか? – jsp
はい、SOAPのUIでチェックされています。その中で応答を得ています – Udaykiran
あなたが参照しているWebサービスメソッドとは何ですか? – jsp