Hi , I try to get the value of flow service’s service type by Java service, but i get the null value in result panel.
I use the method in wm.server.services:serviceInfo of WmRoot in Intergration Server.It 's can get the param svc_type of IS webpage,
but in my java service, the value of svc_type is showed null.
Can you help me to resolve this issue?
My java service code as below:
IDataCursor idatacursor = pipeline.getCursor();
String serviceName = IDataUtil.getString(idatacursor, "serviceName");
IData idata1 = IDataFactory.create();
IDataCursor idatacursor1 = idata1.getCursor();
IDataUtil.put(idatacursor1, "service", serviceName);
String serviceType = "";
String fullname="";
try
{
IData idata2 = Service.doInvoke("wm.server.services", "serviceInfo", idata1);
IDataCursor idatacursor2 = idata2.getCursor();
fullname= IDataUtil.getString(idatacursor2, "fullname");
IData idata3 = IDataUtil.getIData(idatacursor2, "type");
IDataCursor idatacursor3 = idata3.getCursor();
serviceType=IDataUtil.getString(idatacursor3, "svc_type");
idatacursor2.destroy();
}
catch(Exception exception) {
exception.printStackTrace();
}
idatacursor1.destroy();
IDataUtil.put(idatacursor, "fullname", fullname);
IDataUtil.put(idatacursor, "serviceType", serviceType);
idatacursor.destroy();
Thanks a lot!