0 Replies Latest reply on Mar 14, 2012 1:42 AM by Vincent Choy

    InvocationTargetException if php file contains require/include

    Vincent Choy

      Issue: InvocationTargetException Error when connect to php file. Is it a bug? How to solve it?

       

      Description: There is a error message when test the php service with flashbuilder function 'Data/Service'-> TestOperation/Configure Return Type. The solution is to remove the 'require' in the php and then flashbuilder works well and return correct return type.

       

      Error message: InvocationTargetException:There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.

       

      PHP file for testing:

      <?php

       

       

      require ("Random.php");

       

       

      class FUNS {

       

       

                public function ABC()

                {

                          return "Testing";

                }

       

       

      }

      ?>