sure....it's pretty long so i'll give you an abbreviation....here's how the
constructor is setup...


    function appointmentDataService ()
    {
        // Define the methodTable for this class in the constructor
        $this->methodTable = array(
             "getAppointmentData" => array(
                "description" => "get data from event table",
                "access" => "remote"
            ),

            "updateAppointment" => array(
                "description" => "update an appointment",
                "access" => "remote"
            ),

            "deleteAppointment" => array(
                "description" => "delete an appointment",
                "access" => "remote"
            ),

            "getLocationDetails" => array(
                "description" => "delete an appointment location'",
                "access" => "remote"
            ),

            "getAppointmentDetails" => array(
                "description" => "delete an appointment details'",
                "access" => "remote"
            ),

           .
           .
           .
           .


        );

        $this->dbClass = new DBClass();


    }

and this is the method...


     /***********************************************************
     * FUNCTION: getAppointmentData( )
     *
     * DESCRIPTION: Returns a list of Appointments
     *
     * RETURNED: xml string
     **********************************************************/
    function getAppointmentData($uin)
    {
        // Do the query, return the record or null
        $taskList =  $this->dbClass->DBGetAppointmentData( $uin);

         $content = '<?xml version="1.0" standalone="yes"?>' .
            "\n<keepmeposted>\n";


          $content .= "<tasklist>\n";

          if ( $taskList && count( $taskList ) > 0 )
          {
            for ( $j = 0; $j < count( $taskList) ; $j++ )
            {
              $content .= "<task id=\"" . $taskList[ $j ][ "id" ] . "\" " .
                "state=\"" . $taskList[ $j ][ "state" ] . "\" " . ">\n";

              $content .= "<sstart>";
              $content .= "<date>" .
                date( "n-d-y", $taskList[ $j ][ "start" ] ) .
              "</date>\n";
              $content .= "<time>" .
                date( "g:i  a", $taskList[ $j ][ "start" ] ) .
              "</time>";
              $content .= "</sstart>\n";

              $content .= "<name>";
              $content .=$taskList[ $j ][ "name" ];
              $content .= "</name>\n";

              $content .= "</task>\n";
            }
          }
          else
          {
            $content .= "No Appointments.";
          }

          $content .= "</tasklist>\n";
          $content .= "</keepmeposted>\n";

         return  $content;
    }

if it's not in the actionscript then it has to be in the method table then
right??
p

On Thu, Mar 6, 2008 at 9:03 AM, Kevin Aebig <[EMAIL PROTECTED]> wrote:

>    That's the funny part. I've check the name of the method and the call
> about 300 times because that's what it's complaining about, but it's all
> right. Would you mind publishing your service method?
>
>
>
> !k
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *[p e r c e p t i c o n]
> *Sent:* Thursday, March 06, 2008 10:32 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] AMFPHP returning XML
>
>
>
> it sounds like a typo in your actionscript...i'm doing that very thing at
> the moment(returning an xml string using amfphp)
> p
>
> On Thu, Mar 6, 2008 at 8:27 AM, Kevin Aebig <[EMAIL PROTECTED]> wrote:
>
> Hey all,
>
>
>
> I've got a method I just added that returns back an XML string, but for
> some reason it's now throwing an error of AMFPHP_INEXISTANT_METHOD which
> makes no sense as the method has been verified otherways.
>
>
>
> I've got about 15 other methods in place and working, so the install is
> good and functional. I've verified that it's not some kind of caching issue
> by renaming the method and the call to something different and yet the error
> persists. As well, I've found other people online with the same unresolved
> issue.
>
>
>
> Has anyone returned back an XML tree string through AMFPHP 1.9 and did you
> have any difficulties?
>
> Cheers,
>
>
>
> !k
>
>
>
>  
>

Reply via email to