Exemple #1
0
        public object __call(string function_name, PhpArray arguments/*, PhpArray options, PhpArray input_headers, PhpArray output_headers*/)
        {
            try
            {
                if (arguments.Count > 0)
                {
                    var item = arguments.GetArrayItem(0, true);

                    if (item != null && item.GetType() == typeof(PhpArray))
                    {
                        PhpArray arr = (PhpArray)item;
                        return wsp.InvokeCall(function_name, arr);
                    }
                }
            }
            catch (Exception exception)
            {
                SoapFault.Throw(ScriptContext.CurrentContext, "SOAP-ERROR", exception.Message, exceptions);
            }

            return null;
        }