JAX-WS server-side SOAPHandler that returns fault gets “Internal Error” on WebSphere v8

后端 未结 5 869
春和景丽
春和景丽 2021-02-05 12:04

I have a server-side JAX-WS SOAPHandler (on WebSphere v8) that in certain cases needs to respond to the client with a SOAP response that it has in a String variable

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 13:10

    I had the same problem and was able to solve it by disabling the unified fault handling (it's not a bug, it's a feature!).

    On the WAS Developer console

    https:////ibm/console/login.do
    

    do as described here (for WAS8):

    Click Servers > Server Types. , and either WebSphere application servers > server_name or WebSphere proxy servers > server_name. Next, in the Server Infrastructure section, click Java and process management > Process definition , and select either Control, Servant, or Adjunct. Then click Java virtual machine > Custom properties.

    There, add a new property webservices.unify.faults and set the value to false.

提交回复
热议问题