This operator act similar to the WSEnrich operator but only calls an external xml-rpc server. Although, WSEnrich operator can do this, too. It is better to use this operator as the handling is easier.

#PARSER PQL
#RUNQUERY
timer = TIMER({
            period = 1000,
            source = 'timer'                    
          }                
        )

mapped = MAP({
              expressions = [
                ['1','a'],
                ['1','b']
              ],
              keepinput = true                        
            },
            timer
          )
          
enriched = XmlRpcEnrich({
                url = 'http://localhost:8000/RPC2',
                datafields = [['result', 'Integer']],
                arguments = ['a','b'],
                operation = 'add'              
              },
              mapped
            )
  • No labels