CA Service Management

 View Only

AssignBusinessUnitRoles with PAM

  • 1.  AssignBusinessUnitRoles with PAM

    Posted Jan 08, 2020 02:43 AM
    Edited by Markus Hergeth Jan 08, 2020 04:46 AM
    Hi Team,

    I want to use the assignBusinessUnitRoles SOAP Call in PAM but I don't get the correct Syntax. In SoapUI it works fine with

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <soapenv:Header/>
    <soapenv:Body>
    <ser:assignBusinessUnitRoles soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <sessionID xsi:type="soapenc:string">060a832c-d6d1-44c2-9b9a-3b473cb8df36</sessionID>
    <userid xsi:type="soapenc:string">ID123</userid>
    <businessunitroles xsi:type="urn:ArrayOf_xsd_string" soapenc:arrayType="xsd:string[]" xmlns:urn="urn:usmUserService">
    <ArrayOf_xsd_string>Orga1=catalogenduser</ArrayOf_xsd_string>
    </businessunitroles>
    </ser:assignBusinessUnitRoles>
    </soapenv:Body>
    </soapenv:Envelope>

    But I don't know how to do it in PAM with the SOAP Operator. I tried without success:

    <assignBusinessUnitRoles xmlns="urn:usmUserService">
    <sessionID>060a832c-d6d1-44c2-9b9a-3b473cb8df36</sessionID>
    <userid>ID123</userid>
    <businessunitroles>array__</businessunitroles>
    </assignBusinessUnitRoles> 


    the array__ is initialaized with:

    Process.array = ['Orga1=catalogenduser','Orga2=catalogenduser'];

    And the error message I get is:

    soapenv:Server.generalException
    businessunit roles cannot be null

    com.ca.usm.soap.axisInterfaces.PropertyNotSetException

    How do I correctly pass the Array to the SOAP Webservice?

    Thanks and best regards,
    Markus


    ------------------------------
    Senior Technical Consultant
    Fujitsu Services GmbH
    ------------------------------