Service Call Syntax [message #974033] |
Tue, 06 November 2012 15:24  |
Eclipse User |
|
|
|
trying to follow the tutorial for creating a service (using an MS SQL connection) and then calling the service in the handler code. Can't get past this one error message. Any ideas?
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds