My office was recently "upgraded" to Weblogic 10.3 and my
SOAP app that worked before will not work now. I create my send my SOAP message to the server and HTTPServletRequest inputStream data is shown below:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getData xmlns:ns1="" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<immuncd xsi:type="xsd:string">000</immuncd>
<birthdt xsi:type="xsd:string">19960727</birthdt>
</ns1:getData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
It's all nice and clean but when I convert this to a SOAP message with:
SOAPMessage message = messageFactory.createMessage(mimeHeaders, request.getInputStream());
SOAPBody requestBody = message.getSOAPPart().getEnvelope().getBody();
I end up with a SOAPBody containing SOAPTextElement objects that cause ClassCastException. Can anyone tell me the root of this problem. Is it a WebLogic issue?