Topic
  • 1 reply
  • Latest Post - ‏2013-01-28T09:07:37Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts

Pinned topic error: Illegal Argument: invalid type of element

‏2013-01-28T07:54:38Z |
Help me please! This is my connect-impl.js

var procedure1Statement = WL.Server.createSQLStatement("select * from GUARD where ID = ?");
function procedure1(param) {
return WL.Server.invokeSQLStoredProcedure({
procedure : "procedure1ByID",
parameters : param
});
}

And Invocation result is:
{
"errors": [
"Illegal Argument: invalid type of element"
],
"info": [
],
"isSuccessful": false,
"warnings": [
]
}
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: error: Illegal Argument: invalid type of element

    ‏2013-01-28T09:07:37Z  
    I fixed this error! ^^
    this is file <myadapter>-impl.js

    var statement = WL.Server.createSQLStatement("select * from GUARD");
    function get(param) {
    return WL.Server.invokeSQLStatement({
    preparedStatement : statement,
    parameters : param
    });
    }

    and write "<procedure name="get"/>" on file <myadapter>.xml

    Note: 2 words in bold must be the same!
    Thanks for read!