0
私は以下のコードを使用してsoap Webサービスにアクセスしています。しかし、私は例外を取得しています。助けてください。[Android]:androidのsoap Webサービスにアクセス中にkmlparserの例外が発生しました
例外:
org.xmlpull.v1.XmlPullParserException: expected:
START_TAG {http://schedmas.xmlsoap.org/soap/envelope/}
Envelop (position:START_TAG<definitions targetNamespace='urn:schedule'>@2:425 in [email protected])
コード:
public SoapObject soap(String METHOD_NAME, String SOAP_ACTION, String NAMESPACE, String URL) throws IOException, XmlPullParserException {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); //set up request
request.addProperty("access_key", "5rrtrtr");
request.addProperty("type", "facebook");
request.addProperty("access_secrete", "5rtrt");
request.addProperty("message", "5");
request.addProperty("date", "2010/12/16");
request.addProperty("time", "05:10:00");
request.addProperty("ampm", "AM");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request); //prepare request
HttpTransportSE httpTransport = new HttpTransportSE(URL);
httpTransport.debug = true;
httpTransport.call(SOAP_ACTION, envelope); //send request
SoapObject result=(SoapObject)envelope.getResponse(); //get response
return result;
}