190-805 Demo and Sample
Note: Answers are below each question.
Samples are taken from full version.
No. Messagebox statements are front end calls. A messagebox statement in a back end routine will result in an abend.
Yes. Messagebox statements within a LotusScript Web service are returned to the Web service consumer as WS_FAULT String values.
Yes. Messagebox statements within a LotusScript Web service will write output to the server log. Sofie can browse the log to see these messages.
No. Messagebox statements only display to UI. Since a Web service executes in the back end, the messagebox statements are ignored and produce no output.
Donnie wants to write a LotusScript Web service method what returns an array of Strings. Which one of the following Function definitions will do this?
Function getArray() As String()
Function getArray() List As String
Function getArray() As XSD_STRINGARRAY
Function getArray() As STRINGARRAY_HOLDER
Lorraine is examining a WSDL file for her Domino Web service. What role does the Message element have in the file?
It stores the actual data being sent to the Web service.
It defines messages that can be displayed to the end user.
It defines error messages that can be returned to the browser.
It is an abstract definition of data being communicated to or from the Web service.
Liz wrote a LotusScript Web service method with the following structure: Public Function lookupPersonInfo (personName As String) As PersonInfo '** do the lookup, return the information
in our custom PersonInfo data typeEnd Function PersonInfo is a complex data type that is used
to return various pieces of information in a single object. How does Liz need to define this complex data type in her LotusScript Web service code?
As a separate Public class
As a separate Private class
As a custom LotusScript Type
As a Private Function called PersonInfo_Type within the class that defines the Web service
Chuck has the following class defined as a complex data type in his LotusScript Web service: Public Class PersonInfo Public FirstName As String Public LastName As String PhoneNumber As String Private Email As String Public Function FullName () As String
FullName = FirstName + " " + LastName End Function End Class What properties of that
complex data type will be visible to a consumer o25f this Web service?
FirstName and LastName
FirstName, LastName, and FullName
FirstName, LastName, and PhoneNumber
FirstName, LastName, PhoneNumber, and Email
Nils is developing a Domino Web service to return employee data. The Web service will accept an employee name, and return the ID, phone number, and salary of the employee. Nils had
started to code a separate public function to return each of these data items, but is wondering if he can create a Web service that will accept the employee name and return all 3 desired fields at
once. Can he do this in Domino? Why or why not?
Yes. Nils can code a public sub with 4 parameters: one input parameter and three inout parameters.
Yes. Nils can code a public function with 4 parameters: one input parameter and three output parameters.
No. Domino Web services must include a public class. That class may include functions and subs, but subs cannot return values, so Nils must use functions.
No. Domino Web services must include a public class, and that public class must expose a
public function for each defined operation. Each function returns a
Collin is writing a Domino Web service to provide product inventory information. What signature of the getQuantity function in his Web service would result in this WSDLbeing part of the associated WSDL document? <wsdl:message name="GETQUANTITYResponse"> <wsdl:part
</wsdl:message>: <wsdl:operation name="GETQUANTITY" parameterOrder="PRODID">
<wsdl:input message="impl:GETQUANTITYRequest" name="GETQUANTITYRequest"/><wsdl:output message="impl:GETQUANTITYResponse" name="GETQUANTITYResponse"/></wsdl:operation>
Private Function GETQUANTITY( PRODID As String ) As Long
Public Function getQuantity( ProdID As String ) As Double
Public Function getQuantity( ProdID As String ) As Integer
Private Function GETQUANTITY( PRODID As String ) As Single
Gloria has coded the GetAccountBalance class in the Declaration section of her Web service. What WSDL element will map to this class name?
Question: 94 26
Jerry has coded a function called ConnectToProvider in the GetAccountBalance class in the Declaration section of his Web service. What WSDL element will be used to control the request to and response of the function?
Jose wrote the following LotusScript Web service class: Class NumberTest
Function GetOne () As IntegerGetOne = 1 End Function Public Function GetTwo () As Integer GetTwo = 2 End Function Private Function GetThree () As Integer GetThree = 3 End Function End Class If "NumberTest" is defined as the PortType class in the Web service design element,
which of these methods will be available to remote clients that need to call this Domino Web
GetOne and GetTwo
GetOne, GetTwo, and GetThree
None of the methods will be available, because the Class was not declared to be Public
Avery has the following method in his Web service class: Public Function GetEmployeeID(personname As String) As Stringresult=GetEmployeeDocument(personname) If
result = "OK" Then GetEmployeeID =GetIDField("ID") Else GetEmployeeID = "ERROR" End If End Function Private Function GetEmployeeDocument(personname As String) As String Set
employeedb=New NotesDatabase("","employee.nsf") Set employeeview = employeedb.GetView("EmployeeName") Set
employeedoc = employeeview.GetDocumentByKey(personname, True)
End Function Private Function GetIDField(FieldName As String) Set item=vendordoc.GetFirstItem(FieldName) If item Is Nothing Then GetIDField="" Exit Function ElseGetIDField=Cstr(item.Values(0)) End If End Function He is trying to call the GetEmployeeDocument method from his SOAP call, but it does not work. Why is this happening?
The GetEmployeeDocument method is defined as Private.
The GetEmployeeDocument method returned an invalid SOAP string.
The GetEmployeeDocument method did not receive a String argument.
The "fieldName" parameter in the GetEmployeeDocument method acts as an inout parameter.
Read more Details »