Hi all,

I would like to set up following scenario:

JBI binding component (HTTP or JMS) receives XML document containing two
sections: first is XML data to be transformed to PDF and seconds holds email
recepient data. Binding component then  forwards the document to SE
component that transforms XML to PDF (using XSLT). Pdf binary content and
metadata is the passed to component that sends mail with pdf attachment. Is
such scenario possible with standard JBI components?

I'm planing to start with something like this:
http BC -- > XSLT SE --> Mail SE (or BC?)
                    |
JMS BC -->

Setup wsdl for http binding component (similar for JMS)

<?xml version='1.0' encoding='UTF-8'?>
<definitions name='Provider'
          targetNamespace='http://http.servicemix.org/Test'
          xmlns:tns='http://http.servicemix.org/Test'
             xmlns:http='http://schemas.xmlsoap.org/wsdl/http/'
             xmlns='http://schemas.xmlsoap.org/wsdl/'
    xmlns:jbi='http://servicemix.org/wsdl/jbi/'>

   <portType name='ConsumerInterface'>
   </portType>

   <binding name='ConsumerHttpBinding' type='tns:ConsumerInterface'>
  <http:binding verb="GET"></http:binding>
   </binding>

   <service name='XSLTService'>
      <port name='TestEndpoint' binding='ConsumerHttpBinding' >
   <http:address location="http://localhost:8192/InOnly";>
   </http:address>
   <jbi:endpoint role="consumer" defaultMep='in-only'/>
      </port>
   </service>

  </definitions>

Then the fun begins:
I create XSLT component. I knoe it should have service defined like
QName("http://http.servicemix.org/Test";, "XSLTService").
Can I use lw XSLT component and deploy it to lwcontainer componenta as SU?
Or should I use jsr181 component and let a POJO perfrom transformation?
Same goes for Email component.
How should I specify that XSLT component "forwrds" message to Email
component? Should that be done in Service Assembly using connection
elements?
Maybe those questions sound funny to you but I'm a beginner so...
Thanks in advance!
Cheers,
Simon











Reply via email to