LOT-805 Free Dumps Study Materials
Question 13: Makayla is fetching employee data using a Web service. Here is the code from the script library
that she created from the WSDL: Class EMPLOYEE As XSD_ANYTYPE Public EMPNAME As
String Public EMPTITLE As String Public EMPEMAIL As String Public EMPPHONE As String Sub
NEW End Sub End Class Class EmpData As PortTypeBase Sub NEW Call Service.Initialize
("UrnDefaultNamespaceEmpDataService", _"EmpDataService.Domino",
_"http://ibm.com/app.nsf/EmpData?OpenWebService", "EmpData") End Sub Function
GETEMPINFO(EMPID As String) As EMPLOYEE Set GETEMPINFO =
Service.Invoke("GETEMPINFO", EMPID) End Function End Class Assuming that strID holds the
argument needed for the Web service method, how can Makayla display the employee's name
and title?
A. DimempFlds as New EMPLOYEE
B. GetEmpInfo(strID)
C. Msgbox empFlds(0) ", " empFlds(1)
D. DimempFlds as New EMPLOYEE
E. GetEmpInfo(strID)
F. EMPNAME "," empFlds.EMPTITLE
G. DimempInfo As New EmpData
H. Dimemp() As EMPLOYEE()
I. GetEmpInfo(strID)
J. Msgbox emp(0) ", " emp(1)
K. DimempInfo As New EmpData
L. Dimemp As Employee
M. GetEmpInfo(strID)
N. EmpName ", " emp.EmpTitle
Correct Answer: D