SAX Writer Reference > SAX Writer API Methods > buildQdocFromProDataSet
  
buildQdocFromProDataSet
This method creates an entire QDoc, including the SOAP details. The node names in the QDoc are the same names as the buffers and fields in the ProDataSet. This method requires that the QDoc syntax and output type are already set.The following table lists parameters of buildQdocFromProDataSet.
 
Parameter Name
Type
Description
I/O
Req
phDataSet
Handle
Handle to the dataset with the QDoc data in.
I
Yes
pcSenderURL
Character
URL that identifies the sending application.
I
Yes
pcReceiverURL
Character
URL that identifies the receiver in QXtend.
I
Yes
pcConfirmationLevel
Character
Indicates the confirmation level required (QDoc Syntax 1.0 only).
I
No
pcMessageID
Character
Any character ID that identifies this message.
I
Yes
pcQdocName
Character
Name of the QDoc that is being created.
I
Yes
pcQdocVersion
Character
Version number of the QDoc.
I
Yes
pcQdocNamespace
Character
Namespace of the QDoc
I
No
plScopeTransaction
Logical
Identifies whether QXtend processes the entire QDoc as a single transaction.
I
Yes
plSuppressRespDetails
Logical
Identifies whether QXtend returns a detailed response QDoc.
I
Yes
plMnemonicsRaw
Logical
Identifies whether the QDoc contains the mnemonic or the specific language value for translatable values.
I
Yes
pcDomain
Character
The domain in QAD Enterprise Applications that this data is loaded in to.
I
No
pcUsername
Character
The user name used to log in to QAD Enterprise Applications.
I
No
pcPassword
Character
The password for the user.
I
No
pcLanguage
Character
The ISO Language Code
I
No
Note: There is an overloaded method for buildQdocFromProDataSet, which accepts pcSessionID (character) as an input in place of the username and password. If a session ID value is supplied to this overloaded method (for example, TMP12345), then the QDoc that is generated has the session ID in the QDoc session context. See the following example:
<qcom:ttContext>
<qcom:propertyQualifier>QAD</qcom:propertyQualifier>
<qcom:propertyName>sessionID</qcom:propertyName>
<qcom:propertyValue>TMP12345</qcom:propertyValue>
</qcom:ttContext>