Download
Abstract
An "Error reading XML:" error occurs when an SCA JAX-WS service is invoked.
Download Description
PK94492 resolves the following problem:
ERROR DESCRIPTION:
When a JAX-WS Web service export binding is invoked which has xsi:type declarations on the attributes, the following error is generated:
javax.xml.ws.WebServiceException: com.ibm.websphere.sca.
ServiceRuntimeException: javax.ejb.
TransactionRolledbackLocalException:; nested exception is:
com.ibm.websphere.sca.ServiceRuntimeException: An error
occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
Caused By: java.io.IOException: Error reading XML: caused by: An
error occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
LOCAL FIX:
Remove the xsi:type declaration on the attributes
PROBLEM SUMMARY
USERS AFFECTED:
IBM WebSphere Application Server users of JAX-WS with SCA
PROBLEM DESCRIPTION:
An "Error reading XML:" error occurs when an SCA JAX-WS service is invoked.
RECOMMENDATION:
Install a fixpack containing this APAR
The IBM WebSphere Process Server supports the Service Component Architecture (SCA) programming model. The SCA programming model can host a JAX-WS web service application.
If the incoming message contains a xsi:type attribute, an error may occur. Here is an example of a message with an xsi:type attribute:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<my:echo xmlns:my="http://my.service/">
<data xsi:type="xsd:string>hello</data>
</my:echo>
<soapenv:Body>
<soapenv:Envelope>
Here is an example error that may occur:
javax.xml.ws.WebServiceException: com.ibm.websphere.sca.
ServiceRuntimeException: javax.ejb.
TransactionRolledbackLocalException:; nested exception is:
com.ibm.websphere.sca.ServiceRuntimeException: An error
occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
Caused By: java.io.IOException: Error reading XML: caused by: An
error occurred while parsing native data: The error message is:
java.io.IOException: Error reading XML.
PROBLEM CONCLUSION:
The SCA runtime uses a utility provided by the JAX-WS runtime to retrieve the payload of the message. The payload of the message is the xml element within the soapenv:Body. The payload also includes all necessary namespace declarations that are defined in the soapenv:Body and soapenv:Envelope.
The JAX-WS utility was not inspecting the contents of the xsi:type attribute. As a result, it failed to find and include the namespace for the prefix referenced in the xsi:type attribute. This missing namespace caused the error to occur.
The JAX-WS utility is changed to correctly inspect the xsi:type attribute and declare the associated namespace.
APAR PK94492 corrects this problem for the V6.1 WebSphere Application Server Feature Pack for Web Services.
The fix for this APAR is currently targeted for inclusion in
fix pack 7.0.0.9. Please refer to the Recommended Updates
page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Prerequisites
Please download the UpdateInstaller below to install this fix.
Installation Instructions
Please review the readme.txt for detailed installation instructions.
Technical Support
Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg24026521