UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

SOAPRequestWrite Syntax SOAPRequestWrite(Request, reqDoc, docTypeFlag) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description Outputs the SOAP request in XML format to a string or to a file. Parameters The following table describes each parameter of the syntax. Parameter Description 1-758 UniBasic Commands Reference Request Handle to the request created with SOAPCreateRequest. [IN] reqDoc Depending on docTypeFlag, either an output string containing the SOAP request content, or a path to a file where the SOAP request content will be written. [OUT] docTypeFlag A flag indicating whether reqDoc is an output string that is to hold the request content, or a path to a file where the SOAP request content will be written. ? 0 – reqDoc is a file where the request content will be written upon successul completion. ? 1 – reqDoc is a string that will hold the request upon successful completion. [IN] SOAPRequestWrite Parameters

Return Codes The return code indicating success or failure. The following table describes the value of each return code. Return Code Description 0 Function completed successfully. 1 Invalid request handle. 2 Unable to open the file named by reqDoc. 3 Unable to write to the file named by reqDoc. SOAPRequestWrite Return Codes You can also use the UniBasic STATUS() function to obtain the return status from the function. SOAPRequestWrite 1-759

Return Codes<br />

The return code indicating success or failure. The following table describes the value<br />

of each return code.<br />

Return<br />

Code Description<br />

0 Function completed successfully.<br />

1 Invalid request handle.<br />

2 Unable to open the file named by reqDoc.<br />

3 Unable to write to the file named by reqDoc.<br />

SOAPRequestWrite Return Codes<br />

You can also use the <strong>UniBasic</strong> STATUS() function to obtain the return status from the<br />

function.<br />

SOAPRequestWrite 1-759

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!