locked
SOAP request using Powershell RRS feed

  • Question

  • Hi All,

    I have a task to try and automate Cisco UCM tasks such as creating EM Profile,Add DN etc using MS Orchestrator & Powershell. When i go through the blogs i could see that Cisco provides AXL toolkit to facilitate these tasks. I tried using the MS ORchestrator webservices but got stuck with a known bug in SCO. So now left with POSH. I tried passing few queries which i saw online but could not get any response.

    I have downloaded a AXL Toolkit from CUCM but how can i use the wsdl files for doing the tasks. Any guidance or suggestions would be of much help.

    function Get-CUCMUser {
        param(
            [Parameter(Mandatory)][String]$UserID
        )
    
        $AXL = @"
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
    
    xmlns:ns="http://www.cisco.com/AXL/API/9.1">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:getUser>
             <userid>$UserID</userid>
          </ns:getUser>
       </soapenv:Body>
    </soapenv:Envelope>
    "@
        $XmlContent = Invoke-CUCMSOAPAPIFunction -AXL $AXL -MethodName getUser
        $XmlContent.Envelope.Body.getUserResponse.return.user
    }

     

    Justin

    Thursday, August 16, 2018 6:43 PM

All replies

  • For Cisco help post in a Cisco forum.  They can explain how to use their tools.  This is a Microsoft forum.  We cannot support third party tools.

    For access to web services see:

    help New-WebServiceProxy -online

    FOr exact instructions for tools ask Cisco.


    \_(ツ)_/

    Thursday, August 16, 2018 7:39 PM