SOAP exceptions are not interoperable with other service providers
 Technote (troubleshooting)
 
This document applies only to the following language version(s):
English
 
Problem(Abstract)

If you use non-IBM Web service engine to get Web service fault from WebSphere Application Server Web service engine, you might encounter SOAP exceptions that are not interoperable with other service providers.
 
Symptom
Exceptions using a user-defined exception in WSDL is not being handled by other application service providers. For example, if using an XMLBus 5.4 Client and WebSphere 5.1 Server, the program throws this error:

Caught Unexpected SFXException
FaultCode: ns1421613216:WSExceptionType
FaultString: com.ibm.cio.WSExceptionType: Access Control Error
FaultDetail: null

The problem does not happen when using V5.1 client and a V5.1 server.
 
Cause

A wire capture from the V5.1 server looks like this:


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:ns1421613216=('http://cio.ibm.com/CommonHeader/v1')
xmlns="">ns1421613216:WSExceptionType</faultcode>
<faultstring xmlns="">
<![CDATA[com.ibm.cio.WSExceptionType: Test
Application Exception]]></faultstring>
<detail xmlns="">
<WSExceptionType
xmlns=('http://cio.ibm.com/CommonHeader/v1')
<Message>Test Application
Exception</Message>
<ErrorCode>99</ErrorCode>
</WSExceptionType>
<stackTrace
xmlns="http://websphere.ibm.com/webservices/">

The exception should look like this:

<?xml version='1.0' encoding='utf-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m1=('http://cio.ibm.com/CommonHeader/v1')
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring/>
<detail>
<m1:WSException xsi:type="m1:WSExceptionType">
<m1:Message
xsi:type="xsd:string">theMessage</m1:Message>
<m1:ErrorCode xsi:type="xsd:int">10</m1:ErrorCode>
</m1:WSException>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
Resolving the problem
Due to design considerations, this limitation will not be fixed in version 5.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 5.1.1
Software edition:
Reference #: 1173489
IBM Group: Software Group
Modified date: Aug 16, 2004