1

I need an http inbound streaming channel similar to the ftp-streaming adapter channel (http://docs.spring.io/spring-integration/docs/4.3.9.RELEASE/reference/html/ftp.html#ftp-streaming) but I could not find one, is it supported in SI? In case not, is it possible a workaround?

I need to receive a soap message from an http streaming channel, transform a message using SAX and then send it to a http outbound stream channel

gllambi
  • 648
  • 1
  • 7
  • 18
  • Would you mind elaborating more what is that "HTTP Streaming"? Thanks – Artem Bilan Apr 19 '17 at 16:31
  • something like having an InputStream as payload so I can sign or encrypt the payload using the streaming capabilities of wss4j https://ws.apache.org/wss4j/streaming.html. Here's an old post asking for the same I think http://stackoverflow.com/questions/17096563/spring-integration-returning-stream – gllambi Apr 24 '17 at 03:44

1 Answers1

1

Well, if you talk about SOAP and SAX, you don't need to worry about InputStream. There is SourceHttpMessageConverter which is present in the int-http:inbound-channel-adapter. It can produce SAXSource for you.

What only you need is:

request-payload-type="javax.xml.transform.sax.SAXSource"

configuration option.

Artem Bilan
  • 113,505
  • 11
  • 91
  • 118