aspose file tools
The moose likes Web Services and the fly likes SOAPTextElement in my SOAPBody Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "SOAPTextElement in my SOAPBody" Watch "SOAPTextElement in my SOAPBody" New topic
Author

SOAPTextElement in my SOAPBody

Darryl Failla
Ranch Hand

Joined: Oct 16, 2001
Posts: 127
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?

Darryl Failla
Sun Certified Java 2 Programmer
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: SOAPTextElement in my SOAPBody
 
Similar Threads
Soap Envelope not version 1.1
what's wrong with this SOAP1.2 MESSAGE?
NullPointerException returned from webservice
problem with perl web services and java client
Extrange codes in the response from axis