question: public static Map < String , Object > testXmlRpcAdd ( DispatchContext dctx , Map < String , ? > context ) { Locale locale = ( Locale ) context . get ( "locale" ) ; Map < String , Object > response = ServiceUtil . returnSuccess ( ) ; Integer num1 = ( Integer ) context . get ( "num1" ) ; Integer num2 = ( Integer ) context . get ( "num2" ) ; if ( UtilValidate . isEmpty ( num1 ) || UtilValidate . isEmpty ( num2 ) ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ServiceTestXmlRpcMissingParameters" , locale ) ) ; } Integer res = num1 + num2 ; response . put ( "resulting" , res ) ; return response ; }
target:  Service to receive information from xml-rpc call