I'm using Postman and trying to do operations on a Lab Unity Connection.
I've imported the WADL into Postman, I can do get operations all day long. I'm using the default 'admin' account. I've confirmed it has System Admin privileges. I created another account called 'joeapi' and gave it all Roles possible just to test. Both accounts have the same behavior.
Whenever I try and to a PUT or a POST operation, I get:
HTTP Status 401 - Domain not Allowed.
type: Status report
message: Domain not Allowed.
description: This request requires HTTP authentication.
If I do a:
GET https://139.126.117.28/vmrest/users
And pass in the Basic Authorization of my admin/<password> I get bunch of XML (or JSON, if I send that I accept JSON).
As soon as I convert that to a POST and include the following XML in the body as per the examples on the docwiki, I get that "Domain Not Allowed" error above.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<User>
<Alias>jdoe</Alias>
<DtmfAccessId>7890</DtmfAccessId>
</User>
Anybody have any examples of working with Unity Connection 10.5 API that might help me get past my issue?
Anybody know what my issue is?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So I found I could do the 'add User' POST message using SOAP UI. I was using the chrome plugin for postman. I switched to the thick client version of Postman and was able to post the message to Unity and create the user. the only thing I did change in postman other than the default request was to disable checking of SSL in the settings.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.