Results 1 to 2 of 2

Thread: SOAP API set_entry

  1. #1
    Shearer is offline Junior Member
    Join Date
    Dec 2006
    Posts
    1

    Default SOAP API set_entry

    I have been using code of this website to enter leads from our website. Everytime I run the code the set_entry returns a login failed:

    stdClass Object
    (
    [id] => -1
    [error] => stdClass Object
    (
    [number] => 10
    [name] => Invalid Login
    [description] => Login attempt failed please check the username and password
    )

    )

    I can not see why it is not logged in as

    $result_array = $sugar_client->login($user_auth['user_auth'],$user_auth['application_name']);

    the login code return a session varable.

    Help needed urgently.

    Thanks in Advance,

    Bob

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: SOAP API set_entry

    Quote Originally Posted by Shearer
    I have been using code of this website to enter leads from our website. Everytime I run the code the set_entry returns a login failed:

    stdClass Object
    (
    [id] => -1
    [error] => stdClass Object
    (
    [number] => 10
    [name] => Invalid Login
    [description] => Login attempt failed please check the username and password
    )

    )

    I can not see why it is not logged in as

    $result_array = $sugar_client->login($user_auth['user_auth'],$user_auth['application_name']);

    the login code return a session varable.

    Help needed urgently.

    Thanks in Advance,

    Bob

    I have this for my login and it works fine.
    $result = $soapclient->call('login',array('user_auth'=>array('user_name' =>SOAP_USER,'password'=>md5(SOAP_PASS), 'version'=>'.01'), 'application_name'=>'SoapTest'));
    $session = $result['id']; //will return -1 if doesn't authenticate

    here I call the set by updating the last login field.
    //Update the Last Login Field
    $result = $soapclient->call('set_entry',array('session'=>$session,'modul e_name'=>'Contacts','name_value_list'=>array( array('name'=>'id','value'=>$id),
    array('name'=>'last_login_c','value'=>$now),
    array('name'=>'visit_count_c','value'=>($visit_cou nt + 1)))));


    Can you show more of your code in order to help?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •