Announcement Announcement Module
No announcement yet.
parser errors when attempting to include a response Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • parser errors when attempting to include a response

    Hi, I have a web service I based on the tutorial, except it has a response. I'm not sure how to construct the response, but I figured it should just be an Element of the xml that I want inside the soap body. However, I get this exception:
         [java] XML-22900: (Fatal Error) An internal error condition occurred.
         [java] 2007-08-07 09:29:23,860 [cs] WARN [] - Endpoint invocation resulted in exception - responding with SOAP Fault
         [java] javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
         [java] at oracle.xml.jaxp.JXTransformer.reportException(
         [java] at oracle.xml.jaxp.JXTransformer.transform(
         [java] at org.springframework.xml.transform.TransformerObjectSupport.transform(
         [java] at
         [java] at
         [java] at
         [java] at
         [java] at
         [java] at
    I don't understand the exception, but I tried to wrap my response in a soap envelope and now it runs cleanly. But my result doesn't look right - I've got two soap envelopes now (see below). Any suggestions?
    <env:Envelope xmlns:env="">
          <Envelope xmlns="">
             <sel:SSNInfoResult xmlns:sel="">
                <state xmlns="">U.S.A</state>
                <isValid xmlns="">true</isValid>
    Here's my invoker code:
    	protected Element invokeInternal(Element ssnInfoRequest) throws Exception {
          String ssn = ssnExpression.valueOf(ssnInfoRequest);
          SSNInfo ssnInfo = candidateService.getSSNInfo(ssn, null);
    		  log.debug("ran getSSNInfo");
          Element root = new Element("Envelope", "");
          Namespace ns = Namespace.getNamespace("sel",
    		  Element el = new Element("SSNInfoResult",ns);
           ... add a bunch of elements to el...
           return root;

  • #2
    You definitely don't want to create a SOAP envelope in your payload code. Spring-WS will wrap your response payload with the envelope for you.

    Regarding the XML exception: it seems like this is an Oracle-specific XML error. I tried googling for the error code, and I got some people who ran into the same thing: You might want to try some of the suggestions presented there.


    • #3
      Oracle parser wants two soap envelopes

      I was able to get past this problem by using Apache's XML Parsers instead of Oracles. This page has instructions for switching (for OC4J 10.1.3):