Fixed return values of param-ref, exec operations in textproto.
Added XML discovery feature.