Author Message
MikeGraden
Joined: May 16, 2017
Messages: 3
Offline
We recently upgraded to AEP 8.0 and POM 4. We're attempting to use the POM rest service to dynamically insert contacts. When we attempt to use the service we are getting the following:

<body>
<h1>HTTP Status 401 - Unauthorized</h1>
<hr class="line" />
<p><b>Type</b>Status Report</p>
>p<b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p>
<hr class="line" />
<h3>Apaache Tomcat/8.5.69</h3>
</body>

We are using a local user account setup on AEP with rights to all roles. We previously used SOAP for this in POM 3.1.X. That has been removed from POM 4. Any suggestions would be greatly appreciated.
  • [Thumb - Error.jpg]
[Disk] Download
MikeMalcorINI [Avatar]

Joined: Jan 14, 2015
Messages: 72
Offline
I'd verify that the username and password are correct (I think AEP8 requires some different password requirements so that may have changed).
I use Postman and have SSL certificate verification set to OFF, otherwise you'll want to exchange certs.
Here is some info from the POM Developers Guide

POM V4 Versioning and Supported Settings:
1. METHOD TYPE : GET/POST
2. Standard URL: Must be “https” nd use version v4 for 4.0.1 release https://<EP_Server_IP>/VP_POM_Service/v4/<resource-names>;
3. AUTHORIZATION:
Type: Basic Auth
Username: admin or org users (EP user having role to access the resource and specific operation)
Password: xxxxxx
4. HEADER:
Content-Type: application/json
X -Requested-With: RESTWeb (or rest)
MikeGraden
Joined: May 16, 2017
Messages: 3
Offline
Thanks for the information, we created a new user, now it is returning a 403 error when we try to pull the contact lists back using https://<EP Server IP>/VP_POM_Service/v4/contactlists with our server IP.
MikeGraden
Joined: May 16, 2017
Messages: 3
Offline
We were able to resolve this, it was an issue with the header in the server X -Requested-With: RESTWeb (or rest). Thanks for the help.
Go to:   
Mobile view