Interviewer - Server > Architecture > Web Service tier > Interview Web Service > Using IOM in the interview function
 
Using IOM in the interview function
When using IOM in the interview function, IOM must be defined as the first parameter name. When IOM is defined as the first parameter, the parameter does not need to be passed when the script program method is invoked.
For example, when the interview function is defined as the following:
Function SetNameAndAge(IOM, Name, Age)
  IOM.Question["RespondentName"].Response = Name
  IOM.Question["RespondentAge"].Response = Age
End Function
In this example, only the Name and Age parameters need to be passed; the IOM parameter is automatically added by the session engine when the script program method is invoked.
For example, the passed arguments for the previous example would be:
<Arguments>
  <Argument>
    <Name>Name</Name>
    <Value>Tom</Value>
  </Argument>
  <Argument>
    <Name>Age</Name>
    <Value>28</Value>
  </Argument>
</Arguments>
See also
Interview Web Service