On Thu, Jul 28, 2011 at 7:37 PM, De Vleeschauwer Nele < [email protected]> wrote:
> Hi, > > Thanks for the reply... I was wondering if this will not cause any > problems when large files need to be processed... > Synapse uses Axiom and StAX for processing XML/SOAP. Therefore XML content is streamed through the service bus most of the time. Synapse doesn't build the XML infoset unless it really has to (pull parsing). This enables Synapse to process large XML documents while keeping the memory usage to a minimum. > > Another question: when I'm using xpath expressions, do I need to start > from the soapEnv tag each time? > Not necessarily. If you are referring to some element in the SOAP body you can start with '//' Thanks, Hiranya > > -----Original Message----- > From: Hiranya Jayathilaka [mailto:[email protected]] > Sent: donderdag 28 juli 2011 16:04 > To: [email protected] > Subject: Re: Default soap envelope question > > If you can explain what you are trying to achieve with the plain XML > messages we might be able to help better. > > Thanks, > Hiranya > > On Thu, Jul 28, 2011 at 7:33 PM, Hiranya Jayathilaka > <[email protected]>wrote: > > > > > > > On Thu, Jul 28, 2011 at 7:06 PM, De Vleeschauwer Nele < > > [email protected]> wrote: > > > >> Hi, > >> > >> When using Apache Synapse, I've noticed that each message that is > sent > >> is encapsulated in a soap envelope. > >> According to the documentation, this is related to the configuration > of > >> the Message Builders and Formatters. > >> For the moment I would like to send a plain xml to synapse > >> (content-type: application/xml). Inside my axis config file there is > no > >> builder nor formatter configured for this content-type. > >> But when I log the incoming message, I see that it is still a soap > >> message... > >> How can this be changed ? > >> > > > > Synapse uses SOAP as the intermediary message format. Every message > > received by Synapse (SOAP, XML, plain text, JSON) will be represented > as a > > SOAP envelope as long as it's in the service bus. Synapse has default > > builders and formatters for processing plain XML and that's why your > XML > > messages are getting converted into SOAP without any issues. This is > > intended behavior. > > > > Thanks, > > Hiranya > > > > > >> > >> > >> > >> > >> > >> ----------------------------------------- > >> Visit our website! http://www.nbb.be > >> > >> "DISCLAIMER: The content of this e-mail message should not be > >> construed as binding on the part of the National Bank of Belgium > >> (NBB) unless otherwise and previously stated. The opinions > >> expressed in this message are solely those of the author and do not > >> necessarily reflect NBB viewpoints, particularly when the content > >> of this message, or part thereof, is private by nature or does not > >> fall within the professional scope of its author." > > > > > > > > > > -- > > Hiranya Jayathilaka > > Associate Technical Lead; > > WSO2 Inc.; http://wso2.org > > E-mail: [email protected]; Mobile: +94 77 633 3491 > > Blog: http://techfeast-hiranya.blogspot.com > > > > > > -- > Hiranya Jayathilaka > Associate Technical Lead; > WSO2 Inc.; http://wso2.org > E-mail: [email protected]; Mobile: +94 77 633 3491 > Blog: http://techfeast-hiranya.blogspot.com > -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com
