Driver_Girl Trusted Contributor.
Trusted Contributor.
358 views

Soap Driver Returning 401 Error

Jump to solution

I have used Soap UI to send the same exact message to the service with the user and password the driver is using and it works just fine.  Seems to be something unique to the driver.  

I am at a loss, if anyone has anything to try please let me know.  

 

Here is my trace

[08/07/19 12:17:19.992]:IdM_Email.log ST:IdM_Email_Soap: Drivershim received xml request
[08/07/19 12:17:19.992]:IdM_Email.log ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.7.2.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>



<user.app.pre.hire>
<Who>IdMEmailSoap</Who>
<UserId>V80010</UserId>
<Fullname>Punk, Private (IS)</Fullname>
<MyId>V80010</MyId>
<managerID>A79018</managerID>
<correlationID>V80010</correlationID>
</user.app.pre.hire>
</user.app.pre.hire>


</input>
</nds>
[08/07/19 12:17:19.993]:IdM_Email.log ST:IdM_Email_Soap: Value of boolean flag 'remove-existing' is : false
[08/07/19 12:17:19.993]:IdM_Email.log ST:IdM_Email_Soap: HTTPSubscriberTransport.send()
[08/07/19 12:17:19.993]:IdM_Email.log ST:IdM_Email_Soap: Preparing HTTP POST connection to https://XXXXX.XXXXX.com/WebServices/IdMWorkflowService.svc
[08/07/19 12:17:19.994]:IdM_Email.log ST:IdM_Email_Soap: Setting up SSL connection..........
[08/07/19 12:17:19.996]:IdM_Email.log ST:IdM_Email_Soap: Setting the following HTTP request properties:
[08/07/19 12:17:19.996]:IdM_Email.log ST:IdM_Email_Soap: Authorization:
[08/07/19 12:17:19.996]:IdM_Email.log ST:IdM_Email_Soap: SOAPAction: urn:XXXXX.com/idm/workflow/InvokeWorkflow
[08/07/19 12:17:19.996]:IdM_Email.log ST:IdM_Email_Soap: Content-Type: text/xml; charset=utf-8
[08/07/19 12:17:20.035]:IdM_Email.log ST:IdM_Email_Soap: Did HTTP POST with 416 bytes of data to https://XXXXX.XXXXX.com/WebServices/IdMWorkflowService.svc
[08/07/19 12:17:22.794]:IdM_Email.log ST:IdM_Email_Soap: IOExecption : Server returned HTTP response code: 401 for URL: https://XXXXX.XXXXX.com/WebServices/IdMWorkflowService.svc
[08/07/19 12:17:22.795]:IdM_Email.log ST:IdM_Email_Soap: Response code and message: 401 Unauthorized
[08/07/19 12:17:22.797]:IdM_Email.log ST:IdM_Email_Soap: The following bytes (which are base64 encoded) were received as a response to our request on the subscriber channel. They cannot be converted to XML:
[08/07/19 12:17:22.797]:IdM_Email.log ST:IdM_Email_Soap: PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmljdC5kdGQiPg0KPGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPg0KPGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1pc28tODg1OS0xIi8+DQo8dGl0bGU+NDAxIC0gVW5hdXRob3JpemVkOiBBY2Nlc3MgaXMgZGVuaWVkIGR1ZSB0byBpbnZhbGlkIGNyZWRlbnRpYWxzLjwvdGl0bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCEtLQ0KYm9keXttYXJnaW46MDtmb250LXNpemU6LjdlbTtmb250LWZhbWlseTpWZXJkYW5hLCBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmO2JhY2tncm91bmQ6I0VFRUVFRTt9DQpmaWVsZHNldHtwYWRkaW5nOjAgMTVweCAxMHB4IDE1cHg7fSANCmgxe2ZvbnQtc2l6ZToyLjRlbTttYXJnaW46MDtjb2xvcjojRkZGO30NCmgye2ZvbnQtc2l6ZToxLjdlbTttYXJnaW46MDtjb2xvcjojQ0MwMDAwO30gDQpoM3tmb250LXNpemU6MS4yZW07bWFyZ2luOjEwcHggMCAwIDA7Y29sb3I6IzAwMDAwMDt9IA0KI2hlYWRlcnt3aWR0aDo5NiU7bWFyZ2luOjAgMCAwIDA7cGFkZGluZzo2cHggMiUgNnB4IDIlO2ZvbnQtZmFtaWx5OiJ0cmVidWNoZXQgTVMiLCBWZXJkYW5hLCBzYW5zLXNlcmlmO2NvbG9yOiNGRkY7DQpiYWNrZ3JvdW5kLWNvbG9yOiM1NTU1NTU7fQ0KI2NvbnRlbnR7bWFyZ2luOjAgMCAwIDIlO3Bvc2l0aW9uOnJlbGF0aXZlO30NCi5jb250ZW50LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNGRkY7d2lkdGg6OTYlO21hcmdpbi10b3A6OHB4O3BhZGRpbmc6MTBweDtwb3NpdGlvbjpyZWxhdGl2ZTt9DQotLT4NCjwvc3R5bGU+DQo8L2hlYWQ+DQo8Ym9keT4NCjxkaXYgaWQ9ImhlYWRlciI+PGgxPlNlcnZlciBFcnJvcjwvaDE+PC9kaXY+DQo8ZGl2IGlkPSJjb250ZW50Ij4NCiA8ZGl2IGNsYXNzPSJjb250ZW50LWNvbnRhaW5lciI+PGZpZWxkc2V0Pg0KICA8aDI+NDAxIC0gVW5hdXRob3JpemVkOiBBY2Nlc3MgaXMgZGVuaWVkIGR1ZSB0byBpbnZhbGlkIGNyZWRlbnRpYWxzLjwvaDI+DQogIDxoMz5Zb3UgZG8gbm90IGhhdmUgcGVybWlzc2lvbiB0byB2aWV3IHRoaXMgZGlyZWN0b3J5IG9yIHBhZ2UgdXNpbmcgdGhlIGNyZWRlbnRpYWxzIHRoYXQgeW91IHN1cHBsaWVkLjwvaDM+DQogPC9maWVsZHNldD48L2Rpdj4NCjwvZGl2Pg0KPC9ib2R5Pg0KPC9odG1sPg0K
[08/07/19 12:17:22.799]:IdM_Email.log ST:IdM_Email_Soap: Response Doc
[08/07/19 12:17:22.799]:IdM_Email.log ST:
<nds dtdversion="2.0">
<source>
<product build="20180222_0541" instance="IdM_Email_Soap" version="4.1.0.0">Identity Manager Driver for SOAP</product>
<contact>NetIQ Corporation</contact>
</source>

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Knowledge Partner
Knowledge Partner

Re: Soap Driver Returning 401 Error

Jump to solution

401 means error with your request...

 

So decode the B64 and you get:




401 - Unauthorized: Access is denied due to invalid credentials.

<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->



Server Error

 
  401 - Unauthorized: Access is denied due to invalid credentials.
  You do not have permission to view this directory or page using the credentials that you supplied.
 


 

Which is saying your account you logged into the SOAP API is bad.

 

View solution in original post

0 Likes
4 Replies
Knowledge Partner
Knowledge Partner

Re: Soap Driver Returning 401 Error

Jump to solution

401 means error with your request...

 

So decode the B64 and you get:




401 - Unauthorized: Access is denied due to invalid credentials.

<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->



Server Error

 
  401 - Unauthorized: Access is denied due to invalid credentials.
  You do not have permission to view this directory or page using the credentials that you supplied.
 


 

Which is saying your account you logged into the SOAP API is bad.

 

View solution in original post

0 Likes
Driver_Girl Trusted Contributor.
Trusted Contributor.

Re: Soap Driver Returning 401 Error

Jump to solution

I get that and trust me I have changed the password and everything else I can think of.  I take the same user and password that the driver is using and plug it into SOAP UI and send over information to the same endpoint and the request works just fine.  

That is why I am baffled.  😬

0 Likes
Knowledge Partner
Knowledge Partner

Re: Soap Driver Returning 401 Error

Jump to solution
Are you supposed to have two </user.app.pre.hire> lines right after each other in this example?
Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
Driver_Girl Trusted Contributor.
Trusted Contributor.

Re: Soap Driver Returning 401 Error

Jump to solution

Thanks for the reply, when I cut and pasted that I missed that tag, but its there.  

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.