cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

How to save info*Engine XML response to a specific location?

smartel
6-Contributor

How to save info*Engine XML response to a specific location?

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

1 ACCEPTED SOLUTION

Accepted Solutions


@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

View solution in original post

2 REPLIES 2


@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

cgautier
17-Peridot
(To:smartel)

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.

Top Tags