File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes SOAPTextElement in my SOAPBody Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
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: 128
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://aspose.com/file-tools
 
subject: SOAPTextElement in my SOAPBody
 
Similar Threads
problem with perl web services and java client
Extrange codes in the response from axis
NullPointerException returned from webservice
what's wrong with this SOAP1.2 MESSAGE?
Soap Envelope not version 1.1