Re: Exchanging XML Documents

2007-09-27 Thread Paul Fremantle
Fatima My apologies for not getting back sooner. If you want to return XML from a file you can read it into an OMElement like this: File file = new File(path); // your file FileInputStream fis; StAXOMBuilder builder; OMElement el ; try {

Exchanging XML Documents

2007-09-26 Thread Fátima Milla Olaya
Hi, I want to exchange arbitrary XML documents with my webservice. In the WSDL definition I use xsd:anytype and when I create the java classes with wsdl2java the object is OMElement. How can I manage this object to parse to an XML file? Thanks

Re: Exchanging XML Documents

2007-09-26 Thread Paul Fremantle
Hi OMElement is the represenation of XML that Axis2 uses. It is similar to DOM. Do you already have the XML in an object (DOM, SAX, StAX, String, byte[]), or do you want to create the XML in your program? There are answers for all of these but I figured it would be easier to start with your

Re: Exchanging XML Documents

2007-09-26 Thread Fátima Milla Olaya
Paul Fremantle a écrit : Hi OMElement is the represenation of XML that Axis2 uses. It is similar to DOM. Do you already have the XML in an object (DOM, SAX, StAX, String, byte[]), or do you want to create the XML in your program? There are answers for all of these but I figured it would be