An easy way to do it, without resorting to SOAP, is to use an HTTP inbound-endpoint. Something like this should work:
<service name="pdfService">
<inbound>
<http:inbound-endpoint address="
http://localhost:9090/pdf" method="GET" synchronous="true" contentType="application/pdf"/>
</inbound>
<component class="com.company.pdfconverter"/>
</service>
Just make sure your returning the byte array from the output stream. GET requests to "
http://localhost:9090/pdf" should then return the generated PDF.
Cheers,
-jd
pocketom wrote:
Nobody any idea or hint how to solve this without setting up an own webserver? Can Muleserver handle this directly?