Skip to content

Log the SOAP's body of the response from WinRM in case of error#192

Merged
hierynomus merged 1 commit into
xebialabs:masterfrom
zerikv:master
Dec 8, 2016
Merged

Log the SOAP's body of the response from WinRM in case of error#192
hierynomus merged 1 commit into
xebialabs:masterfrom
zerikv:master

Conversation

@zerikv

@zerikv zerikv commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

Hello,

The SOAP response is logged only if the response is OK.
But when the WinRM service returns an error (for example a 500) the body of the SOAP response may contain a <Fault> tag with a child tag <Reason> with a detailed message which explains the cause of the error.
This message can be very helpful to troubleshooting the error (for example in me case the message explained that the quota limit for opened shells was exceeded).

Example of response:

<s:Envelope >
  <s:Header>
  .../...
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>w:QuotaLimit</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text>The WS-Management service cannot process the request. The maximum number of concurrent shells for this user has been exceeded. Close existing shells or raise the quota for this user.</s:Text>
      </s:Reason>
      <s:Detail>
.../...
      </s:Detail>
    </s:Fault>
  </s:Body>
</s:Envelope> 

Eric

@hierynomus hierynomus merged commit d0c6ade into xebialabs:master Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants