Harm Verhagen wrote: > this is on 1.7.1 Hi Harm, Use the application/xml content type instead of text/xml, there was an issue with text/xml in 1.7.1 and has been fixed on the 2.1.0 release. Please refer to the issue [https://wso2.org/jira/browse/ESBJAVA-529] for more information.
<parameter name="transport.vfs.ContentType">application/xml</parameter> Thanks, Ruwan > > On Wed, Aug 5, 2009 at 4:35 PM, Paul Fremantle <[email protected] > <mailto:[email protected]>> wrote: > > Which ESB version are you using? > > Paul > > 2009/8/5 Harm Verhagen <[email protected] > <mailto:[email protected]>> > > typo: > > harm wrote: > >If I set ContentType to test/plain i.s.o test/xml the data > doest get send into the sequence. But now the everyting is > de-xmled. > > should be: > If I set ContentType to te*x*t/plain i.s.o test/xml the > data *does* get send into the sequence. But now the everyting > is de-xmled. > > > > > > > On Wed, Aug 5, 2009 at 4:27 PM, Harm Verhagen > <[email protected] <mailto:[email protected]>> wrote: > > I'm trying to read an xml file from disk, and handle that > in the wso2esb. > The format is xml, but they are not soap messages. > > I want to read them from file, process them in a seq and > then do a series of callouts using the iteration mediator. > (very similar to the wso2 webinar [1]) > > It seems however that VFS refuses to read an xml file that > is not soap ? > What am I missing ? > > > my config (tried both text/xml ) > <syn:proxy name="SCOFileReader" transports="vfs" > startOnLoad="true" trace="enable"> > <syn:target inSequence="sco-input" /> > <syn:parameter > > name="transport.vfs.MoveAfterErrors">file:///c:/Incoming/BTP_error</syn:parameter> > <syn:parameter > name="transport.PollInterval">5</syn:parameter> > <syn:parameter > name="transport.vfs.ActionAfterProcess">MOVE</syn:parameter> > <syn:parameter > > name="transport.vfs.MoveAfterProcess">file:///c:/Incoming/BTP_processed</syn:parameter> > <syn:parameter > > name="transport.vfs.FileURI">file:///c:/Incoming/BTP_inbox</syn:parameter> > <syn:parameter > name="transport.vfs.ActionAfterErrors">MOVE</syn:parameter> > <syn:parameter > > name="transport.vfs.MoveAfterFailure">file:///c:/Incoming/BTP_error</syn:parameter> > <syn:parameter > name="transport.vfs.FileNamePattern">.*\.xml</syn:parameter> > <syn:parameter > name="transport.vfs.ContentType">text/xml</syn:parameter> > <syn:parameter > name="transport.vfs.ActionAfterFailure">MOVE</syn:parameter> > </syn:proxy> > > > > Errors I'm getting. > 2009-08-05 15:48:59,640 [-] [vfs-Worker-1] ERROR > VFSTransportListener Error processing File URI : file:///c:/j > > ibe/boost/SCO/Incoming/BTP_inbox/S_USERDATA_20090702_153452_000006.xml > org.apache.axiom.soap.SOAPProcessingException: First > Element must contain the local name, Envelope , but found > SCORelations > at > > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:251 > ) > at > > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:2 > 09) > at > > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.ja > va:191) > at > > org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:172) > at > > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:1 > > > > If I set ContentType to test/plain i.s.o test/xml the > data doest get send into the sequence. But now the > everyting is de-xmled. > </Relation>
 > <Relation>
 > instead of > </Relation> > <Relation> > > > Any suggestions to read xml intput files that are not soap ? > > > [1] > > http://www.slideshare.net/wso2.org/wso2-scenarios-esb-webinar-july-1st > > > > _______________________________________________ > Esb-java-user mailing list > [email protected] <mailto:[email protected]> > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > > > > -- > > -- > Paul Fremantle > CTO and Co-Founder, WSO2 > OASIS WS-RX TC Co-chair > VP, Apache Synapse > > Office: +44 844 484 8143 > Cell: +44 798 447 4618 > > blog: http://pzf.fremantle.org > [email protected] <mailto:[email protected]> > > "Oxygenating the Web Service Platform", www.wso2.com > <http://www.wso2.com> > > > _______________________________________________ > Esb-java-user mailing list > [email protected] <mailto:[email protected]> > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > > ------------------------------------------------------------------------ > > _______________________________________________ > Esb-java-user mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > -- Ruwan Linton Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.org email: [email protected]; cell: +94 77 341 3097 blog: http://blog.ruwan.org _______________________________________________ Esb-java-user mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
