public class SyncReturnRequest extends ReturnRequest
Constructor and Description |
---|
SyncReturnRequest() |
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createSyncCriteriaElement()
This method builds the SyncCriteria element and adds it as a child of syncElement_.
|
protected org.w3c.dom.Element | createSyncElement()
This method builds the Sync element and adds it as a child of dataAreaElement_ .
|
protected org.w3c.dom.Element | createSyncExpressionElement()
This method builds the SyncExpression element and adds it as a child of syncCriteriaElement_.
|
protected org.w3c.dom.Document | getRequestBod()
This method gets the request Business Object Document.
|
protected java.lang.String | getXSDFileName()
This method gets the name of the XSD file corresponding to Synch return BOD message
|
protected void | unmarshallCustomerElement(Return rma, org.w3c.dom.Element custElement)
This method unmarshalls the Customer element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
This method unmarshalls the response BOD.
|
protected org.w3c.dom.Document getRequestBod()
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Element createSyncElement()
The following outline shows the structure of the DataArea element and its construction:
<oa:Sync confirm="Always"> <oa:SyncCriteria> <!-- constructed by createSyncCriteriaElement() --> . . </oa:SyncCriteria> </oa:Sync>
protected org.w3c.dom.Element createSyncCriteriaElement()
The following sample shows the structure of the SyncCriteria element and its construction:
<oa:SyncCriteria expressionLanguage="XPath"> <oa:SyncExpression/> <!-- createSyncExpressionElement() --> </oa:SyncCriteria>
protected org.w3c.dom.Element createSyncExpressionElement()
The following samples indicate the structure of the SyncExpression element and its construction:
If the service request ID is "com.ibm.commerce.telesales.addReturnItem":
<SyncExpression action="Add">ReturnItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.deleteReturnItem":
<SyncExpression action="Delete">ReturnItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateReturnItem":
<SyncExpression action="Change">ReturnItem<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.updateReturn":
<SyncExpression action="Change">Return</SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.approveReturn":
<SyncExpression action="Approve">Return<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.submitReturn":
<SyncExpression action="Submit">Return<SyncExpression>
If the service request ID is "com.ibm.commerce.telesales.duplicateReturn":
<SyncExpression action="Copy">Return<SyncExpression>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)
protected void unmarshallCustomerElement(Return rma, org.w3c.dom.Element custElement)
<Customer> <MemberId>100</MemberId> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Customer>