Search code examples
httpexceptionhttp-status-code-404webmethods

webMethods pub.client.http throws error on 401


I am using webMethods from the SAG and it seems if the service

pub.client.http

throws an exception on status code 401 "Unauthorized".

This leads me to the problem that I cannot handle the status code because nothing is written to the pipeline.

getLastError

does contain the string "Unauthorized" but not the status code. Except that I do not want to start parsing exception messages...

Any ideas?


Solution

  • Asked a SAG senior consultant. This is the normal behavior. There is no flag which you can set to enforce suppression of this exception...