- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
10-10-2019 05:28 AM
I am trying to access the GetPassword using SOAP from postman on my CCP server.
Here is my postman code in HTTP
============================
POST /AIMWebService/V1.1/AIM.asmx?op=GetPassword HTTP/1.1
Host: 192.168.3.204
Content-Type: text/xml
SOAPAction: http://192.168.3.204/AIMWebService/V1.1/AIM.asmx?op=GetPassword
User-Agent: PostmanRuntime/7.17.1
Accept: */*
Cache-Control: no-cache
Postman-Token: 254fac07-20a5-4812-9fc9-3d79ff90dab5,3595b208-c558-4842-9531-cb55c117d935
Host: 192.168.3.204
Accept-Encoding: gzip, deflate
Content-Length: 667
Connection: keep-alive
cache-control: no-cache
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetPassword xmlns="http://192.168.3.204/AIMWebService/V1.1/AIM.asmx">
<passwordWSRequest>
<AppID>AIMWebService</AppID>
<Safe>VaultInternal</Safe>
<Folder>Root</Folder>
<Object>activedirectory.ubusha.demo.pass</Object>
<UserName>bindaccount</UserName>
<ConnectionTimeout>120</ConnectionTimeout>
</passwordWSRequest>
</GetPassword>
</soap:Body>
</soap:Envelope>
Here is the error I am getting in Postman when I run the above
====================================================
soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://192.168.3.204/AIMWebService/V1.1/AIM.asmx?op=GetPassword. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Here is me using the CP on the same server as proof that my APPID and safes are setup correctly
==================================================================================
PS C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk> .\CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=AIMWebServ
ice /p Query="Safe=VaultInternal;Folder=Root;Object=activedirectory.ubusha.demo.pass" /o Password
Password123!
PS C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk>
10-11-2019 05:34 AM
POST /AIMWebService/V1.1/AIM.asmx?WSDL HTTP/1.1
Host: 192.168.3.204
Content-Type: text/xml
User-Agent: PostmanRuntime/7.17.1
Accept: */*
Cache-Control: no-cache
Postman-Token: 5bebb958-bfdd-4996-9dd9-f37f626c4a5b,196b1b09-ff07-4c43-be81-4dee7a565456
Host: 192.168.3.204
Accept-Encoding: gzip, deflate
Content-Length: 497
Connection: keep-alive
cache-control: no-cache
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<GetPassword xmlns="https://tempuri.org/">
<!-- Optional -->
<passwordWSRequest>
<AppID>AIMWebService</AppID>
<Safe>VaultInternal</Safe>
<Folder>Root</Folder>
<Object>activedirectory.ubusha.demo.pass</Object>
<UserName>bindaccount</UserName>
<ConnectionTimeout>120</ConnectionTimeout>
</passwordWSRequest>
</GetPassword>
</Body>
</Envelope>Cannot tell you how happy I am right now XD
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

