Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.0
How to save info*Engine XML response to a specific location?
I have an info*engine task that return an xml.
I'm looking to save the xml instead of showing into the browser.
Is there an easy way to do it?
Here are the errors that I faced
no error
Solved! Go to Solution.
@smartel wrote:I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.0
How to save info*Engine XML response to a specific location?
I have an info*engine task that return an xml.
I'm looking to save the xml instead of showing into the browser.
Is there an easy way to do it?
Here are the errors that I faced
no error
For xml parsing of an inputstream you can do: This is Java code
// the SAX way: XMLReader myReader = XMLReaderFactory.createXMLReader(); myReader.setContentHandler(handler); myReader.parse(new InputSource(new URL(url).openStream())); // or if you prefer DOM: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(new URL(url).openStream());
But to communicate over http from server to client I prefer using hessian library or springs http invoker lib
@smartel wrote:I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.0
How to save info*Engine XML response to a specific location?
I have an info*engine task that return an xml.
I'm looking to save the xml instead of showing into the browser.
Is there an easy way to do it?
Here are the errors that I faced
no error
For xml parsing of an inputstream you can do: This is Java code
// the SAX way: XMLReader myReader = XMLReaderFactory.createXMLReader(); myReader.setContentHandler(handler); myReader.parse(new InputSource(new URL(url).openStream())); // or if you prefer DOM: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(new URL(url).openStream());
But to communicate over http from server to client I prefer using hessian library or springs http invoker lib
Hello smartel,
I'm Charles from PTC Technical Support in Europe.
Regarding your question, Did you get a chance to review the information already provided?
Kind Regards,
Charles Gautier.