에 CrmDiscoveryService에 연결 ksoap를 사용할 때 요청을 처리 할 수 없습니다, 여기에 문제가 온다 '비누 : 서버' faultstring : '서버가 요청을 처리 할 수 없습니다.' faultactor : '널 (null)'세부 : [email protected]SOAPFault에-서버가 안드로이드
//here is namespace,endpoint,soapaction and methodname
public final static String DISCOVERY_NAMESPACE = "http://schemas.microsoft.com/crm/2007/CrmDiscoveryService/";
public final static String DISCOVERY_ENDPOINT_URL = "https://dev.crm5.dynamics.com/MSCRMServices/2007/Passport/CrmDiscoveryService.asmx";
public final static String SOAPACTION = "http://schemas.microsoft.com/crm/2007/CrmDiscoveryService/Execute";
private String MethodName = "Execute";
//below is the code connectting to crmdiscoveryservice
SoapObject rpc = new SoapObject(DISCOVERY_NAMESPACE, MethodName);
RetrievePolicyRequest retrievePolicyRequest = new RetrievePolicyRequest();
PropertyInfo info = new PropertyInfo();
info.name = "parameters";
info.type = retrievePolicyRequest.getClass();
info.setValue(retrievePolicyRequest);
rpc.addProperty(info);
HttpTransportSE ht = new HttpTransportSE(DISCOVERY_ENDPOINT_URL);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.encodingStyle = "utf-8";
envelope.setOutputSoapObject(rpc);
try {
ht.call(SOAPACTION, envelope);
if (envelope.getResponse() != null) {
SoapPrimitive response = (SoapPrimitive) envelope.bodyIn;
Log.e(tag, response.toString());
}
} catch (IOException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
}
그리고 나 자신 RetrievePolicyRequest 정의했다. 나는 여러 번 시도했지만, 여전히이 문제를 가지고 있으며, 어떤 사람들은이 문제를 해결하는 방법을 알고 있습니까?
감사합니다.