function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi
Is there any way to generate XML file with the QueryResult object?
Thanks,
--bdr
When you create a Query to invoke on sforce, the query automatically is an XML document. Meaning when result is returned in a form of ResponseDocument, you automatically have an XML document.
for example:
//-->This is an XML doument
QueryResponseDocument queryResponseDocument = $scon.stub.query( queryDocument, $scon.sessionHeaderDocument, null, null, null);
//-->Therefore you can print to view the content or Pipe it to a file
System.out.println(queryResponseDocument);
//-->The actual response it also an XML file therefore you can system print to view its output
//-->or pipe it to a file on your local/remote disc
QueryResponse queryResponse = queryResponseDocument.getQueryResponse();
System.out.println(queryResoonse);
//--> Print the actual query result
QueryResult queryResult = queryResponse.getResult();
System.out.println(queryResult);
When you create a Query to invoke on sforce, the query automatically is an XML document. Meaning when result is returned in a form of ResponseDocument, you automatically have an XML document.
for example:
//-->This is an XML doument
QueryResponseDocument queryResponseDocument = $scon.stub.query( queryDocument, $scon.sessionHeaderDocument, null, null, null);
//-->Therefore you can print to view the content or Pipe it to a file
System.out.println(queryResponseDocument);
//-->The actual response it also an XML file therefore you can system print to view its output
//-->or pipe it to a file on your local/remote disc
QueryResponse queryResponse = queryResponseDocument.getQueryResponse();
System.out.println(queryResoonse);
//--> Print the actual query result
QueryResult queryResult = queryResponse.getResult();
System.out.println(queryResult);