7.25贵宾查询出文档集合返回Json
方法名称:searchDocumentsByFilterFormat2Json(String formName, Map<String, Object> parameters,String applicationId)
我用的这个,没有你们写的domainUserId,我是用的android平台调用的
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
new Thread(new Runnable() {
private String namespace = "http://client.webservice.myapps.cn/";
private String methName = "searchDocumentsByFilterFormat2Json";
private String id = "11e3-3185-48f84b5e-af27-65e01fe8c268";
@Override
public void run() {
SoapObject request = new SoapObject(namespace, methName);
request.addProperty("formName", "getData");
request.addProperty("applicationId", id);
String jsonStr="{}";
request.addProperty("jsonStr", jsonStr);
//request.addProperty("pwd", "123");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
HttpTransportSE ht =
new HttpTransportSE("http://192.168.210.102:8090/obpm_whkc/services/DocumentService");
try {
ht.call(namespace +methName , envelope);
SoapObject soapObject = (SoapObject) envelope.getResponse();
System.out.println(soapObject.getProperty("id"));
} catch (IOException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
}
}
}).start();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
} |