Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsService Call Syntax
https://www.eclipse.org/forums/index.php/mv/msg/429641/974033/#msg_974033
Service Function:
function getUser(libuser String in) returns (userrec)
user userrec;
logEntry("getUser");
try
get user from dataSource
with #sql{
select * from Users
where user_key = :libuser
};
return (user);
onException(ex sqlException)
logException(ex);
end
end
Invocation:
call SQLService.getUser("Some String ID")
returning to pin_return
onException pin_onException;
end
function pin_return(userrec Users in)
statusMessage.text = "Return code = " + userrec.pin;
end
function pin_onException(exp AnyException in)
e ServiceInvocationException = exp;
statusMessage.text = e.message + "\n" +
e.detail1 + "\n" +
e.detail2 + "\n" +
e.detail3;
end
Error Message: IWN.VAL.3399.e The type userrec cannot be passed to the parameter userrec of the function pin_return. It is not assignment compatible with Users.
Thanks,
Gregory]]>Gregory Testa2012-11-06T20:24:00-00:00Re: Service Call Syntax
https://www.eclipse.org/forums/index.php/mv/msg/429641/974043/#msg_974043
It looks like you have the name and type backwards for function pin_return(userrec Users in).
It should be "pin_return(Users userrec in)" - EGL syntax is name, then type - so it thinks you want a parameter named userrec of type Users.
-Justin]]>Justin Spadea2012-11-06T20:30:30-00:00Re: Service Call Syntax
https://www.eclipse.org/forums/index.php/mv/msg/429641/974066/#msg_974066
Gregory Testa2012-11-06T20:58:17-00:00