0
我有一個鋸齒陣列發送到wcf web服務的問題。該方法期望studentId和鋸齒狀數組與學生相關的信息。這裏是在C#中的方法簽名發送Jagged數組作爲參數WCF服務在Android中使用KSOAP2
String[][] SearchStudent(string studentId, String[][] additionalInformation);
根據KSOAP維基頁面,下面的一段代碼應該已經工作。我也試過用Hashtable;它返回相同的錯誤消息。
SoapObject additionalInformation = new SoapObject(NAMESPACE, "SearchStudent");
additionalInformation.addProperty("StudentFirstName", "John");
additionalInformation.addProperty("StudentLastName", "Doe
additionalInformation.addProperty("StudentDOB", "06101990");
SoapObject request = new SoapObject(NAMESPACE, "Authenticate");
request.addProperty("sessionId", params[0]);
request.addProperty("additionalInformation ", AuthParams);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.bodyOut = request;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(url);
androidHttpTransport.debug = true;
(new MarshalHashtable()).register(envelope);
androidHttpTransport.call(SOAP_ACTION + "SearchStudent", envelope);
SoapObject sResult = (SoapObject)envelope.getResponse();
我收到消息無效參數錯誤消息。 我在這裏做錯了什麼?
找不到頁面! – CodeIt