Example: Inbound XML Transaction Request and Response Sample Code

The XML transaction update request is created by the inbound function and sent to the XML transaction API. Thee following code samples illustrate an inbound purchase order request and response. A detailed code sample is provided in Appendix B, XML Format Examples (All Parameters).

See Inbound XML Transaction Request and Response Format

This example shows an XML Transaction update request for an inbound purchase order:

<?xml version="1.0" encoding="utf-8" ?> 
- <!--  This an Inbound Purchase Order. 
  --> 
- <jdeRequest pwd="password" role="*ALL" type="trans" user="user" environment="environment">
- <transaction type="JDEPOIN" action="inbound">
- <key>
  <column name="EdiUserId">TEST</column>
  <column name="EdiTransactNumber">1995598</column>
  <column name="EdiBatchNumber">11004</column>
  <column name="EdiLineNumber">1.000</column>
</key>
</transaction>
</jdeRequest>

This example shows the inbound XML Transaction Update response:

 <?xml version="1.0" encoding="UTF-8" ?> 
- <jdeResponse role="*ALL" type="trans" user="user" xmlns="urn:Schemas-jdedwards-com:trans.response.JDEPOIN" environment="environment">
- <transaction type="JDEPOIN" action="inbound">
  <returnCode code="0">XML Request OK</returnCode> 
- <key>
  <column name="EdiUserId">TEST</column> 
  <column name="EdiTransactNumber">2995598</column> 
  <column name="EdiBatchNumber">11004</column> 
  <column name="EdiLineNumber">1.000</column> 
  </key>
  <writeSubsystemRecord>SUCCESS</writeSubsystemRecord> 
  </transaction>
  </jdeResponse>