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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

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

smartel
12-Amethyst

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

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

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.

Announcements


Top Tags