IBM Support

Configuring WebSphere 8.5.X to have an error code present in response XML when using soap Web Service

Question & Answer


Question

What needs to be changed in order to have an error code in a response XML instead of general “Internal Error” when running Maximo in WebSphere 8.5X

Cause

Without the configuration changes it is necessary to look into the System Out log for every error returned by Soup Web Service .

Answer

The response XML for Maximo web service running in WAS 8.5X


soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<soapenv:Fault xmlns:axis2ns1="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Code>
<soapenv:Value>axis2ns1:Server</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">Internal Error</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


The response XML for Maximo web service running in WAS 7.X


<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">


<soapenv:Body>
<soapenv:Fault xmlns:axis2ns1="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Code>
<soapenv:Value>axis2ns1:Server</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">nested exception is: psdi.util.MXSystemException: BMXAA4211E - Database error number -803 has occurred when operating on PERSON : Person=ERICO. Report the error to the owner of the deployment.</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail>
<Exception>org.apache.axis2.AxisFault: nested exception is: psdi.util.MXSystemException: BMXAA4211E - Database error number -803 has occurred when operating on PERSON : Person=STEVE. Report the error to the owner of the deployment.
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at psdi.iface.webservices.SoapFault.makeSoapFault(SoapFault.java:48)
at psdi.iface.webservices.EnterpriseWebService.processDocument(EnterpriseWebService.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

The following changes need to be done in WebSphere 8.5.x

In WebSphere Console Go to Servers>Server Types>Websphere application servers
Select the server name. In Server Infrastructure section on right,
Select Java and Process Management
then select Process definition
Under Additional properties select Java virtual machine
Under Additional properties select Custom properties
To create the new property
click the New button
set the name to 'webservices.unify.faults'
set the value to 'false'.

Restart the Application Server

For the same request the response will now look like below

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Receiver</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">BMXAA4211E - Database error number -803 has occurred when operating on PERSON : Person=STEVE. Report the error to the owner of the deployment.</soapenv:Text>
</soapenv:Reason>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

[{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"MEA: Generic","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21984967