JBI does not assume anything about the content of the messages itself. Usually a WSDL description is used for that, so that services can communicate amongst themselves. JBI "normalizes" the messages, but does not use a "canonical" form: this implies that there is no protocol binding on the JBI bus, but the content of the messages are not specified further.
The jsr181 component will marshal the xml blob to a pojo invocation, which means that you need to specify what the data will looks like. If you don't want to do that, you can use another SE, like servicemix-bean, or if you want to transform the xml, the servicemix-saxon component (for example). On 10/23/07, Lukasz L. <[EMAIL PROTECTED]> wrote: > > I wanten to put jsr181 based su in a flow like that: > filePoller -> eip/pipeline -> jsr181 web service (as eip:transformer) -> > fileSender (as eip:target) > > the file polled has content: > <?xml version="1.0" encoding="UTF-8"?><BBB> xxx </BBB> > then at jsr181 service input I got an error: > org.codehaus.xfire.fault.XFireFault: Parameter BBB does not exist! > > This made me think that jsr181 service tries to read the message as some > kind of metadata not just a message so I thought it wanted soap message. > Output from file poller (and then eip/pipeline) is already a NM so why > jsr181 service doesn't want to accept it? Is it possible to put jsr181 > service in flow like that, also use it as service engine in inner bus flow? > Maybe I misuderstood something else. > > > gnodet wrote: > > > > What do you imply by "normalized messages" ? The JBI components can > > only interact with the NMR using normalized messages. > > And btw, the jsr181 component certainly does not support soap > > requests. The usual scenario is that the http BC normalizes the soap > > request and send it to the jsr181 component (as a normalized message). > > > > On 10/22/07, Lukasz L. <[EMAIL PROTECTED]> wrote: > >> > >> can jsr181 component receive normalized messages? As far as I tried it > >> accepted only saop and had problems with NM but I could miss something. > >> If > >> it cannot accept normalized messages then it is not JBI compliant. > > > > > > -- > View this message in context: > http://www.nabble.com/is-jsr181-component-jbi-compliant--tf4670575s12049.html#a13358857 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
