I do not think you understood. I have sent a little better documentation. Let me know your thoughts.
import org.datacontract.schemas._004._7.PushWcfService.Models.*;
assets Asset?[0];
function getAssets()
SysLib.writeStdout("getAssets before service " + CustomerID);
assets = iservice.GetAssetList(CustomerID);
SysLib.writeStdout("getAssets after service " + assetID);
end
Record Asset being imported above.
record Asset {@XMLRootElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models"}}
ApplicationType string? {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}};
AssetId bigint? {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models"}};
AssetName string? {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}};
ContactMonitoringPoints MonitoringPoint?[] {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}, @XMLArray{wrapped=true, names=["MonitoringPoint"]}};
TemperatureMonitoringPoints MonitoringPoint?[] {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}, @XMLArray{wrapped=true, names=["MonitoringPoint"]}};
UMDId bigint? {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}};
UMDName string? {@XMLElement{namespace="http://schemas.datacontract.org/2004/07/PushWcfService.Models", nillable=true}};
end
I have getAssets binded to a screen. I thought this code would call the function within the web service and bind to variable assets. When I run it comes back with error
EGL0100E An unhandled error occurred. Error: java.lang.NullPointerException.
EGL0002I The error occurred in ClientPage processing the getAssets function.
I looked and I have assets defined as 0 array length versus empty. What else should I look for? Thanks for your help.
kennetheld