Hi all! I would like to have a BPS process that uses MTOM attachment in responses and requests. In our architecture BPS processes are called through ESB, so I tried to get a workaround following this guide https://docs.wso2.com/pages/viewpage.action?pageId=33136025
When I try to call the service with SOAPUI [cid:[email protected]] I obtain "Mime parts not found. Stream ended while searching for the boundary" So I've develop a service MTOMFileDownloader that write a response with an attachment without read anything. I've added this part to synapse_sample_51.xml <filter source="get-property('Action')" regex="urn:getFile"> <property name="example" value="mtom"/> <send> <endpoint> <address uri="http://localhost:9000/services/MTOMFileDownloader" optimize="mtom"/> </endpoint> </send> </filter> It works only if the axis process is configured to work with MTOM (i.e. if has <parameter name="enableMTOM">true</parameter> in its services.xml), but in this way Axis do the job, becuse if I remove enableMTOM parameter in service.xml I don't get the attachment, but only the base64 encoded message. So now I can work with MTOM with axis processes but not with BPS processes. Moreover, even if I will be able to enable MTOM in ESB, it is that the correct way to avoid traffic without MTOM messages? I think that messages between BPS and ESB would be sent without MTOM, so my first aim (i.e. avoid not MTOM messages traffic) would be eluded -------------------------------------------------------- SEDA Spa - Gruppo KGS Roberto Lardera T: F: M: E: [email protected] -------------------------------------------------------- Il messaggio di posta elettronica che avete ricevuto e gli eventuali allegati sono destinati esclusivamente ai loro destinatari originali e possono contenere informazioni protette dal segreto professionale e/o riservate. Nel caso siate stati inclusi tra i destinatari per errore, Vi preghiamo di comunicare l'accaduto al mittente e di cancellare dal Vs. sistema sia il messaggio che le eventuali copie, nonche eliminare le stampe prodotte. Vi diffidiamo, comunque, dal divulgare, diffondere o utilizzare in qualsiasi modo il contenuto del messaggio e gli eventuali allegati. Qualsiasi uso o divulgazione non autorizzati potrebbero costituire reato. Il presente messaggio potrebbe contenere opinioni personali dell'autore e non necessariamente riflettere le posizioni di SEDA Spa - Gruppo KGS --------------------------------------------------------
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
