Lotus Using Web Services in IBM Lotus Domino 8 Applications - 190-805 Exam Practice Test
Frances has a Web services client that generates the following SOAP message when calling a Domino Web service that has been written in LotusScript: <?xml version='1.0' encoding='UTF8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body><ns1:GETPERSONINFO xmlns:ns1="urn:DefaultNamespace"SOAPENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <PNAME xsi:type="ns1:PERSONNAME"><FIRSTNAME xsi:type="xsd:string">Billy Bob</FIRSTNAME> <LASTNAME xsi:type="xsd:string">Brubaker</LASTNAME> </PNAME> </ns1:GETPERSONINFO> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Based on the structure of this message, which of the following represents the possible signature of the LotusScript function that implements the "GetPersonInfo" method?
Correct Answer: D
What specifies the format of the parameters within the Body element of an incoming SOAP request?
Correct Answer: B
Selina wrote a LotusScript Web service method with the following structure:
Public Function lookupPersonInfo (personName As String, f As WS_FAULT) As PersonInfo '** do
the lookup, return the information in our custom PersonInfo data type End Function What is the
purpose of the WS_FAULT parameter in the Function definition?
Public Function lookupPersonInfo (personName As String, f As WS_FAULT) As PersonInfo '** do
the lookup, return the information in our custom PersonInfo data type End Function What is the
purpose of the WS_FAULT parameter in the Function definition?
Correct Answer: D
Roosevelt wants to write a Domino Web service that queries the Notes database in which it resides, and returns a String result based on that query. What is the easiest way for him to write this Web service?
Correct Answer: D
In a Domino Web service defined with a SOAP message format of Document/literal, where are the complex data types (if any) defined in the WSDL file?
Correct Answer: B
Ruth wants to build a Domino Web service that returns a complex data type when called by SOAP request. The data type will be called AccountInformation, and will contain the vendor name and the account balance. How would she define this in the Web service?
Correct Answer: O
Jakob is developing the EmployeeInfo Web service in his Domino database. He has created the GetEmployeeInfo public class in the Web service, which includes the getEmpID function. Jakob has not populated any of the Web service properties yet. He wants consumers of the Web service to be able to receive the output of the getEmpID function. What must be entered for the "Port Type class" on the Basic tab of the Web service properties?
Correct Answer: B
Otto has has developed CORBA applications in the past to allow external systems to access Domino data. His manager has now asked him if he can develop some Domino Web services. Otto sees that Web services use SOAP. What are some of the characteristics of SOAP?
Correct Answer: D
Samantha has created a Web service to return an employee pay rate. How can Samantha secure this Web service?
Correct Answer: D
Examine the following WSDL excerpt: <wsdl:portType
name="GetEmployeeInfo"> <wsdl:operation name="GETEMPNAME"> <wsdl:input
message="impl:GETEMPNAMERequest" name="GETEMPNAMERequest"/><wsdl:output
message="impl:GETEMPNAMEResponse"
name="GETEMPNAMEResponse"/></wsdl:operation>
<wsdl:operation name="GETEMPID"><wsdl:input message="impl:GETEMPIDRequest"
name="GETEMPIDRequest"/><wsdl:output message="impl:GETEMPIDResponse"
name="GETEMPIDResponse"/></wsdl:operation> </wsdl:portType> Paola is developing a Domino Web service to supply the appropriate response(s) for the operations represented in the WSDL. How many of what type(s) of LotusScript code blocks must she create?
name="GetEmployeeInfo"> <wsdl:operation name="GETEMPNAME"> <wsdl:input
message="impl:GETEMPNAMERequest" name="GETEMPNAMERequest"/><wsdl:output
message="impl:GETEMPNAMEResponse"
name="GETEMPNAMEResponse"/></wsdl:operation>
<wsdl:operation name="GETEMPID"><wsdl:input message="impl:GETEMPIDRequest"
name="GETEMPIDRequest"/><wsdl:output message="impl:GETEMPIDResponse"
name="GETEMPIDResponse"/></wsdl:operation> </wsdl:portType> Paola is developing a Domino Web service to supply the appropriate response(s) for the operations represented in the WSDL. How many of what type(s) of LotusScript code blocks must she create?
Correct Answer: D