How to pass a document via a dsp page?

I have a flow service which requires a document as an input.
The input is to be taken from the user via a DSP page.

Thanks

Please check this documentation link below and look for section called “DSPs and building output templates”

http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite9-10/Compendium_Application_Integration_(on_premises)/index.html#page/appintgr_onpremise-compendium/to-using_dynamic_server_pages_23.html

HTH,
RMG

As fas as I know, DSP could only accepts String and String List.

If by document you mean a file: HTTP uploading a binary file to IS - webMethods - Software AG Tech Community & Forums

Form a xml and pass it as string from dsp to service and in service invoke xml ToDocument services