xmlrpc to app ...need help

I need some help in implement xmlrpc for dolphin7.


as i explore site code i have added a function name: dolphin.getMatchProfiles in index.php in xmlrpc folder.

            "dolphin.getMatchProfiles" => array(

                "function" => "BxDolXMLRPCSearch::getMatchProfiles",

                "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),

                "docstring" => "get search results by location",

            ),            


also i implemented this function in a file which i included. (BxDolXMLRPCSearch.php)

    function getMatchProfiles($sUser, $sPwd, $sNick, $sLang)
    {            
        $iIdProfile = BxDolXMLRPCUtil::getIdByNickname ($sNick);
        if (!$iIdProfile || !($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd)))
            return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1,"int")), "struct"));

        BxDolXMLRPCUtil::setLanguage ($sLang); 
     
        require_once( BX_DIRECTORY_PATH_INC . 'match.inc.php' );
        $sRet = getMatchProfiles($iIdProfile,false,'none');
        return new xmlrpcval ($sRet, "array");
    }

but when i try to use this function in iPhone app, it says response is not xml.

please let me know  if I  need to declare or implement in any other files to have it work?

Quote · 1 Jul 2011

The return value is not formatted correctly, each element of array must be xmlrpcval too, please refer to other functions in BxDolXMLRPCSearch.php for samples.

Also I recommend to wait for the next version of the app, it will support 3rd-party modifications, so you will be able to add functionality to it without modifying iPhone app source code and/or xmlrpc folder.

Rules → http://www.boonex.com/terms
Quote · 5 Jul 2011
When are you expecting to release this next version? Thanks for the clarification!
Quote · 5 Jul 2011

 Approx several weeks after 7.0.7 release

When are you expecting to release this next version? Thanks for the clarification!

 

Rules → http://www.boonex.com/terms
Quote · 6 Jul 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.