•  
      request #7866 query on tuleap soap api function
    Infos
    #7866
    kannan (kannanc)
    2015-03-25 09:07
    2015-02-12 14:39
    7873
    Details
    query on tuleap soap api function
    Hi,
    I received this error while trying to use soap function getMyProjects($sessionkey)

    Fatal error: Uncaught SoapFault exception: [Client] Function ("getMyProjects") is not a valid method for this service in /usr/share/tuleap/src/www/xe_dashboard/common.php:215
    Stack trace:
    #0 /usr/share/tuleap/src/www/xe_dashboard/common.php(215): SoapClient->__call('getMyProjects', Array)
    #1 /usr/share/tuleap/src/www/xe_dashboard/common.php(215): SoapClient->getMyProjects('707b72679370cb4...')
    #2 /usr/share/tuleap/src/www/xe_dashboard/artifact.php(35): getMyProject()
    #3 {main}
    thrown in /usr/share/tuleap/src/www/xe_dashboard/common.php on line 215

    Could you provide needfull help?
    my tuleap version is version 7.0.99.45
    Trackers
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    dylan bowden (dylan)
    Closed
    2015-03-25
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    • Status changed from New to Closed
    • Assigned to changed from None to dylan bowden (dylan)
    • Close date set to 2015-03-25
    User avatar
    kannan (kannanc)2015-02-18 05:52
    Hi dylan,

    Thanks for your valuable response,As you told i tried,now its working fine

    Thanks
    User avatar
    dylan bowden (dylan)2015-02-16 09:12
    Hi,

    although you don't seem to calling "getMyProjects" in the below, I'll assume it's bad copy/paste. Anyway, I'll take a wild guess that you're using the tracker wsdl for a non tracker resource.
    $host_tracker = $host .'/plugins/tracker/soap/?wsdl';

    try using this instead with core methods:
    $host_tracker = $host .'/soap/?wsdl';
    User avatar
    kannan (kannanc)2015-02-13 11:16
    $host = $config['tuleap']['host'];
    $userName = $config['tuleap']['username'];
    $password = $config['tuleap']['password'];
    $host_login = $host .'/soap/?wsdl';
    $host_tracker = $host .'/plugins/tracker/soap/?wsdl';
    // SOAP options for debug
    $soap_option = array(
    'cache_wsdl' => WSDL_CACHE_NONE,
    'exceptions' => 1,
    'trace' => 1
    );

    $client_login = new SoapClient($host_login, $soap_option);
    $session_hash = $client_login->login($userName,$password)->session_hash;

    $client_tracker = new SoapClient($host_tracker, $soap_option);
    return $response = $client_tracker->getArtifactReports($session_hash,$group_id,$artifact_id);
    User avatar
    dylan bowden (dylan)2015-02-12 14:51
    Hi, could you attach the code you used to call the SOAP API? My guess is that the url you use is wrong.