CA Service Management

Expand all | Collapse all

Error using webservice

  • 1.  Error using webservice

    Posted Jun 20, 2017 02:37 PM

    Hi guys i tried to use web service to create and update 

    site

    Location

    Department

    Organization

    position

    Contacts

     

    the issue is when i tried to create organization via webservice obtain this mensage "Security violation in CreateObject. AHD03300:This operation requires Function Access for organization equal to View or Modify" i check the user and role have modify in funtion but obtain the same error anny ideas?



  • 2.  Re: Error using webservice

    Broadcom Employee
    Posted Jun 20, 2017 03:38 PM

    What is the access type's "SOAP Web Service API Role  " of the login() user?

    This is the role you would need to check if it has view or modify rights to "organization".



  • 3.  Re: Error using webservice

    Posted Jun 20, 2017 05:00 PM

    i create new acces type called webservices whith new role in this role  called webservices , I verify in the "SOAP Web Service API Role  "  is webservices and function access for organization is modify

    I add capture for this

     

     



  • 4.  Re: Error using webservice

    Broadcom Employee
    Posted Jun 20, 2017 05:09 PM

    do you mind let us know what WS soap API call gave you the error?

    I would like to see the login() call so can be sure what is the userid you use to login.

    If it is createObject(), do you mind let us know the exact arguments?



  • 5.  Re: Error using webservice

    Posted Jun 21, 2017 05:03 PM

    Please See the video



  • 6.  Re: Error using webservice

    Broadcom Employee
    Posted Jun 21, 2017 05:55 PM

    So your userid is ServiceDesk

    can you show us the detail of this user on the web interface?



  • 7.  Re: Error using webservice

    Posted Jun 22, 2017 03:39 AM

    Hi Jonathan,

     

    If you login directly to the web interface with this user, are you able to create these records manually with no issue?

     

    Kind Regards,

    Brian



  • 8.  Re: Error using webservice

    Posted Jun 22, 2017 09:19 AM

    yes, i testing this i create new organization manually 



  • 9.  Re: Error using webservice

    Posted Jun 22, 2017 09:18 AM

    i testing using servicedesk and testing create a new user is the same error for both 



  • 10.  Re: Error using webservice

    Posted Jun 22, 2017 08:27 AM

    Hi Jonathan,

     

    Are you using default webservices policy? If yes, is the proxy contact updated with the ServiceDesk user? If you are not using default policy, then ensure newly created policy and error type has symbol and code in upper case. If you still see the same error, then disable antivirus/ firewall temporarily on client and SDM servers and try the method again.

     

    Thanks,



  • 11.  Re: Error using webservice

    Posted Jun 22, 2017 01:31 PM

    i created position and department but organization say this error



  • 12.  Re: Error using webservice

    Posted Jun 22, 2017 10:16 AM

    For everyone,

     

    Via webservice, the userid is CASE SENSITIVE.

     

    It will let you login, but you will not have access to anything

     

     

    I've lost half of my hair with this one.

     

     

    Hope this helps.



  • 13.  Re: Error using webservice

    Posted Jun 22, 2017 01:49 PM

    Hi everyone  checking using SoapUI

    1- Login response succesfull

    Login result SDM

     

    2-Call metod Create Object

     

    3- response 



  • 14.  Re: Error using webservice

    Broadcom Employee
    Posted Jun 23, 2017 12:49 PM

    Not sure how you got this response. I used the same as you did and I got

    "Uneven name-value pairs to update"

    what you should use is"

    <attrVals>
                <!--1 or more repetitions:-->
                <string>name</string>
                <string>testing</string>

    </attrVals>

    "

    But that should not be the reason why you original script failed on this method. Can you show us the contact detail of

    ServiceDesk contact?



  • 15.  Re: Error using webservice
    Best Answer

    Posted Jun 27, 2017 04:39 PM

    In this case check

    1- UID is Case sesitive (same used in SDM and AD)

    2- user is no locked in AD
    3- user with  "webservices" role has Function access --> inventory = modify,  ci = modify, organization = Modify.