Results 1 to 4 of 4

Thread: SOAP portal_login

  1. #1
    mark.tallis is offline Junior Member
    Join Date
    Mar 2007
    Posts
    4

    Default SOAP portal_login

    I am developing an interface in c# to Sugar using the soap api. I am using the soap request portal_login. For every login attempt I get the following error:

    Invalid Portal Client: Portal Client does not have authorized access
    [error number 12]

    I am using 5.0b and have set the contact’s portal settings. Below is the code I am using to access the soap request from c#

    Code:
     
    user_auth user = new user_auth();
    user.user_name = username;
    user.password = this.computeMD5String(Password);
    user.version = ".01";
    set_entry_result authentication_result = this.sugarClient.portal_login(user, username, "test");
    Is there anything else I need to do in sugar for the contact to get access via the portal_login request? I have set the username, password and made the portal active. The Customer Self-Service Portal in system settings is also active.

    I have tested this using the SOAP request login, and this work seamlessly when using a user account from sugar. Any help on this is greatly appreciated.

    Sugar on PHP5 apache accessing via soap using C# ASP.NET 2

    Thanks in advance

  2. #2
    mark.tallis is offline Junior Member
    Join Date
    Mar 2007
    Posts
    4

    Default Re: SOAP portal_login

    Not to worry I found where my problem was. Not only do you need a valid portal user and the contact has to have a portal name, password and made active, it helps if you set the License Management > Number of Portal Users to greater than 0.

  3. #3
    Mubi is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    40

    Default Re: SOAP portal_login

    I am having same problem. i have created a portal user but what still getting error.
    Could you please tell me in detail how did you get rid of this problem.


    Regards.
    Mubi

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: SOAP portal_login

    Hi Mubi

    Portal Users are allowed in the Licensed versions and you need to define how many users will be available in the portal.
    Go to Admin -> License Management and Update the Portal Users.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SOAP login() - Invalid Username/Password.
    By dsandor in forum Developer Help
    Replies: 12
    Last Post: 2010-12-07, 09:13 AM
  2. How do i do a simple SOAP request in PHP5?
    By ztolley in forum Developer Help
    Replies: 2
    Last Post: 2008-04-15, 12:22 PM
  3. SOAP Performance Issue Loading Accounts
    By artisticlight in forum General Discussion
    Replies: 1
    Last Post: 2007-07-20, 01:39 PM
  4. Soap & New Custom Fields
    By sacramentojoe in forum Developer Help
    Replies: 0
    Last Post: 2007-04-17, 04:04 PM
  5. SOAP and Applescript?
    By mattjones99 in forum Developer Help
    Replies: 5
    Last Post: 2006-02-08, 08:00 PM

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
  •