• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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?
 
What are you doing in my house? Get 'em tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic