Closed spring-operator closed 9 years ago
Artem Bilan commented
Mauro, please, find the linked #5742 ticket with the same premise. Right, that one is as New Feature
not Bug
, but it would be better do not treat it as a bug, because the SimpleWebServiceInboundGateway
says for itself :).
So, let's continue our discussion from there!
I close this one as superseded
.
Artem Bilan commented
Duplicates #5742
Mauro Molinari opened INT-3775 and commented
I don't know if this is a bug or an unavoidable problem (in which case, probably a mention in the documentation would be useful). I want to receive a message from a web service inbound gateway and unmarshal it with JAXB2. The incoming message contains a MTOM attachment.
Given that I have configured Spring Web Services and my JAXB2 unmarshaller in order to enable MTOM support, I then have two possibilities:
MarshallingWebServiceInboundGateway
by specifying my MTOM-enabled (un)marshaller on theint-ws:inbound-gateway>
tagSimpleWebServiceInboundGateway
(i.e.: no (un)marshaller specified on the tag) and then connect it to anUnmarshallingTransformer
which uses my MTOM-enabled (un)marshallerThe second solution may allow to perform some extra processing between the receiving of the SOAP message body and its unmarshalling and in any case (if no such extra processing is performed) I would expect it to be equivalent to the first solution. But what I observe is that in the second case the MTOM attachment is lost: the
InputStream
of theDataHandler
of the field corresponding to the XSD element of the binary attachment in the JAXBElement instance that constitutes the unmarshalled payload, returns no bytes. The rest of the XML message is intact.Affects: 4.1.6
Issue Links:
5742 MTOM Support
("is superseded by")