John
I can write an xslt that outputs text.  What would the synapse.xml
look like to make the response be non-xml (without soap envelope
wrappers, but including the appropriate http headers like mime-types
for the non-xml content)?
Well, I have tried this with non http/s transports such as JMS where this is used frequently.. The XSLT mediator will detect plain text output and automatically wrap it in a text element. Basically the message will always be a SOAP "infoset" within Synapse - a SOAP infoset is usually serialized into XML, but internally its just the model that we keep the "message" as and not in its XML representation.

So yes, you can continue to set transport headers on this message using the property mediator etc
I think that I would prefer to write a synapse mediator that would set
the servletresponse (non-xml response payload and http headers).
Would something like that be possible?
sure

asankha

Reply via email to