Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3022

Spring-Integration-WS fails to read an empty SOAP Message

    XMLWordPrintable

    Details

      Description

      I get the following answer from a SOAP Webservice call:

      <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Header/>
      <SOAP:Body/>
      </SOAP:Envelope>
      

      Spring Integration WS throws the following exception. It seems that it does not expect not null empty messages.

      Caused by: org.springframework.ws.client.WebServiceTransformerException: Transformation error: javax.xml.transform.TransformerException: An "{0}" übergebenes Source-Objekt hat keinen Inhalt.; nested exception is javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: An "{0}" übergebenes Source-Objekt hat keinen Inhalt.
              at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:608)
              at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:537)
              at org.springframework.integration.ws.SimpleWebServiceOutboundGateway.doHandle(SimpleWebServiceOutboundGateway.java:88)
              at org.springframework.integration.ws.AbstractWebServiceOutboundGateway.handleRequestMessage(AbstractWebServiceOutboundGateway.java:196)
              at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:134)
              at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73)
              ... 38 more
      Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: An "{0}" übergebenes Source-Objekt hat keinen Inhalt.
              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:739)
              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:340)
              at org.springframework.xml.transform.TransformerHelper.transform(TransformerHelper.java:138)
              at org.springframework.xml.transform.TransformerObjectSupport.transform(TransformerObjectSupport.java:96)
              at org.springframework.integration.ws.SimpleWebServiceOutboundGateway$SimpleResponseMessageExtractor.doExtractData(SimpleWebServiceOutboundGateway.java:146)
              at org.springframework.integration.ws.AbstractWebServiceOutboundGateway$ResponseMessageExtractor.extractData(AbstractWebServiceOutboundGateway.java:252)
              at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:596)
              ... 43 more
      Caused by: javax.xml.transform.TransformerException: An "{0}" übergebenes Source-Objekt hat keinen Inhalt.
              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:689)
              at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:727)
              ... 49 more
      

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            thackel Thomas Hackel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: