I have an external webservice, which has a method which returns a file:

"Create a postscript/pdf file from the division and return the file as an attachment to the XML/SOAP response."

Returns: The log file of the postscript formatter with the file attached
The sample which comes with this was written in java, it takes this produced file from above & shows it on a new webpage window.

Object att[] = port.getAttachments();
if ( att.length != 0 ) {
AttachmentPart ap = (AttachmentPart)att[0];
DataHandler dh = ap.getDataHandler();
File f = new File(dh.getName());
response.setContentType(dh.getContentType());
response.setHeader("Content-Disposition","filename=xpp.pdf");
response.setContentLength((int)f.length());
ServletOutputStream os = response.getOutputStream();
dh.writeTo(os);
os.flush();
os.close();
f.delete(); // Delete the file
How could i do the same with vb.net please, i don't know what data type to hold this returned data in, or what to do to this so that it can be bought up as a file in a different browser window. Thanks!