WLS 10.3: Issue unmarshalling SOAP Response from JAX-RPC service control. (Doc ID 1268007.1)

Last updated on FEBRUARY 24, 2017

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

You will notice different behavior if Webservice is invoked via JAX-RPC Service Control  and XML Bean Service Control.
With a JAX-RPC Service Control you will be thrown an exception during the unmarshalling process from a SOAP response to  JAX-RPC Web Service Classes.

You would have this exception for some types:
<faultstring>fr.edf.distribution.sge.b2b.services.types.Tension cannot be cast to java.math.BigInteger</faultstring>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.ClassCastException: fr.edf.distribution.sge.b2b.services.types.Tension cannot be cast to java.math.BigInteger
at com.bea.staxb.runtime.internal.IntegerTypeConverter.print(IntegerTypeConverter.java:52)
at com.bea.staxb.runtime.internal.SimpleContentBeanMarshaller.print(SimpleContentBeanMarshaller.java:52)
at com.bea.staxb.runtime.internal.RuntimeBindingProperty.getLexical(RuntimeBindingProperty.java:154)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeCharData(PushMarshalResult.java:639)

Changes

Upgrading from WLS 8.x to 10.3.0.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms