Function MyFunction

A simple function that return a "hello" message to the person.

Input section

Input parameters

ParameterTypeDescriptionRequired
genderGenderThe gender of the person.yes
personLastNameLastNameThe last name of the person.yes

Data section

This function defines no input data section.

Output section

Result codes

An error code is returned when an error occurs during the execution of the implementation.
NameDescription
_DisabledFunctionThe function is currently disabled.
_InternalErrorThere was an internal error.
_InvalidRequestIndicates that the request is considered invalid since it does not match the criteria defined by the specification.
_InvalidResponseIndicates that the implementation produced a response that does not match the criteria defined by the specification. Typical callers should treat this like an internal error.
NoVowelThe name does not contain any vowels.

Output parameters

ParameterTypeDescriptionRequired
message_textThe message returned to this person.yes

Data section

This function defines no output data section.

Examples section

Example 1: Missing parameter : lastName

Request:http://API_PATH?_function=MyFunction&_convention=_xins-std&personLastName=Bond+007
Response:<?xml version="1.0" encoding="UTF-8"?> <result errorcode="_InvalidRequest">    <data>       <missing-param param="gender" />       <invalid-value-for-type type="LastName" param="personLastName" />    </data> </result>
Test on:google-app-server mycomputer fakecomputer

Example 2: The name does not contain any vowels.

Request:http://API_PATH?_function=MyFunction&_convention=_xins-std&gender=f&personLastName=cqfd
Response:<?xml version="1.0" encoding="UTF-8"?> <result errorcode="NoVowel" />
Test on:google-app-server mycomputer fakecomputer

Example 3: Message returned.

Request:http://API_PATH?_function=MyFunction&_convention=_xins-std&gender=f&personLastName=Lee
Response:<?xml version="1.0" encoding="UTF-8"?> <result>    <param name="message">Hello Miss Lee</param> </result>
Test on:google-app-server mycomputer fakecomputer