• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

SOAPTextElement in my SOAPBody

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic