April 15, 2016

OTM Inbound Integrations (XML)

There are several ways of bringing in data into OTM system. Below are some of the methods:
  • via XML that follows Glog XML schema posted from a middleware applications like Oracle SOA, webMethods, Mulesoft, etc
  • Manaul XML uploads by OTM users
  • CSV Uploads
  • DB.XML Uploads
  • REST-API Calls
  • HTTP Post Requests from programming languages like PLSQL, etc
XML Inbound Integrations:

Most common way of receiving OTM Inbound data is via XML files from middleware applications. OTM can read XML files which are in the format specified by GlogXML Schema(OTM Standard XML Schema). You can download this schema from :


Business Process Automation > Integration > Integration Manager > Retrieve Schemas > GlogXML.xsd

This file will describe the data structure for each OTM element like 'Location', 'Order Release', 'Shipment', etc along with some documentation.

Say, if we want to upload a new location to OTM, you follow below steps:

1. Read the GlogXML.xsd and identify the XML structure for element "Location". Once you map your input data values to OTM XML elements, you will end up coming with XML file similar to one below:
  • <Transmission>
       <TransmissionHeader>
         <UserName>DBA.ADMIN</UserName>
         <Password>CHANGEME</Password>
         <IsProcessInSequence>Y</IsProcessInSequence>
       </TransmissionHeader>
       <TransmissionBody>
          <GLogXMLElement>
           <Location>
                <TransactionCode>IU</TransactionCode>
                <LocationGid>
                   <Gid>
                      <DomainName>ABC</DomainName>
                      <Xid>TEST SH OTM CORPORATION-45769</Xid>
                   </Gid>
                </LocationGid>
                <LocationName>TEST SH OTM COR,CLUTE,TX,USA</LocationName>
                <Address>
                   <AddressLines>
                      <SequenceNumber>1</SequenceNumber>
                      <AddressLine>1039 EAST PLANTATION</AddressLine>
                   </AddressLines>
                   <City>CLUTE</City>
                   <ProvinceCode>TX</ProvinceCode>
                   <PostalCode>32830</PostalCode>
                   <CountryCode3Gid>
                      <Gid>
                         <Xid>USA</Xid>
                      </Gid>
                   </CountryCode3Gid>
                </Address>
                <LocationRefnum>
                   <LocationRefnumQualifierGid>
                      <Gid>
                         <Xid>ORIGIN</Xid>
                      </Gid>
                   </LocationRefnumQualifierGid>
                   <LocationRefnumValue>CUSTOMER</LocationRefnumValue>
                </LocationRefnum>
                <LocationRefnum>
                   <LocationRefnumQualifierGid>
                      <Gid>
                         <Xid>CUSID</Xid>
                      </Gid>
                   </LocationRefnumQualifierGid>
                   <LocationRefnumValue>1130</LocationRefnumValue>
                </LocationRefnum>
                <LocationRefnum>
                   <LocationRefnumQualifierGid>
                      <Gid>
                         <Xid>CUSNM</Xid>
                      </Gid>
                   </LocationRefnumQualifierGid>
                   <LocationRefnumValue>MOORE SUPPLY CO</LocationRefnumValue>
                </LocationRefnum>
                <LocationRole>
                   <LocationRoleGid>
                      <Gid>
                         <Xid>CUSTOMER</Xid>
                      </Gid>
                   </LocationRoleGid>
                </LocationRole>
                <Corporation>
                   <CorporationName>OTM CORPORATION</CorporationName>
                </Corporation>
             </Location>
          </GLogXMLElement>
        </TransmissionBody>
     </Transmission> 
2. Save this file with extension '.xml'
3. Once you have XML ready, you can upload to OTM as below: Goto Business Process Automation -> Integration -> Integration Manager -> Upload XML/CSV Transmission and Browse XML File. 
4. Click Upload.


5. You will see following log:


6. Note the transmission number from the log
7. Navigate to Business Process Automation -> Integration -> Transmission Manager
8. Query for transmission and you should see transmission status as ‘PROCESSED’. 

In case of errors Report button displays error reasons like foreign key reference missing etc.

Posting XML from Other middleware applications like Oracle SOA/BPEL, webMethods, Mulesoft, etc

Middleware applications can post XML using below details:

Method: POST
OTM Servlet: https://<OTM Application URL>/GC3/glog.integration.servlet.WMServlet
Body Type: Raw
File format: XML
Authorization: Basic Auth (Get domain INTEGRATION username and password credentials from OTM Admin)

Sample Payload to update VOUCHER status:

<Transmission xmlns="http://xmlns.oracle.com/apps/otm/transmission/v6.4">
        <TransmissionHeader>
            <AckSpec>
                <ComMethodGid>
                    <Gid>
                        <Xid>HTTPPOST</Xid>
                    </Gid>
                </ComMethodGid>
                <AckOption>ERROR</AckOption>
            </AckSpec>
        </TransmissionHeader>
        <TransmissionBody>
            <GLogXMLElement>
                <GenericStatusUpdate>
                    <GenericStatusObjectType>VOUCHER</GenericStatusObjectType>
                    <Gid>
                        <DomainName>DPSCM</DomainName>
                        <Xid>20240823-00001310</Xid>
                    </Gid>
                    <TransactionCode>IU</TransactionCode>
                    <Status>
                        <StatusTypeGid>
                            <Gid>
                                <DomainName>DPSCM</DomainName>
                                <Xid>PAYMENT STATUS</Xid>
                            </Gid>
                        </StatusTypeGid>
                        <StatusValueGid>
                            <Gid>
                                <DomainName>DPSCM</DomainName>
                                <Xid>PAYMENT_RECEIVED</Xid>
                            </Gid>
                        </StatusValueGid>
                    </Status>
                </GenericStatusUpdate>
            </GLogXMLElement>
        </TransmissionBody>
    </Transmission>

Sample Response from OTM for above request:

<otm:TransmissionAck xmlns:otm="http://xmlns.oracle.com/apps/otm/transmission/v6.4" xmlns:gtm="http://xmlns.oracle.com/apps/gtm/transmission/v6.4">
    <otm:EchoedTransmissionHeader>
        <otm:TransmissionHeader>
            <otm:ReferenceTransmissionNo>311245595</otm:ReferenceTransmissionNo>
            <otm:AckSpec>
                <otm:ComMethodGid>
                    <otm:Gid>
                        <otm:Xid>HTTPPOST</otm:Xid>
                    </otm:Gid>
                </otm:ComMethodGid>
                <otm:AckOption>ERROR</otm:AckOption>
            </otm:AckSpec>
        </otm:TransmissionHeader>
    </otm:EchoedTransmissionHeader>
</otm:TransmissionAck>

Using Reference Transmission Number, you can query OTM transmission screen to see if the message is posted to OTM without any errors.

Other methods:

Review below topics for loading data into OTM using other methods:

https://www.oracle-otm.com/2026/03/csv-data-uploads.html

https://www.oracle-otm.com/2026/03/posting-data-to-otm-using-http-request.html

Note: Please post corrections(if any) to 'learnotm@outlook.com' 

30 comments:

  1. nice blog please help me learn OTM

    ReplyDelete
  2. How to change Object id in transmission refnum to shipment/order?

    ReplyDelete
  3. Just take the raw xml and make changes and re upload the xml file.

    ReplyDelete
  4. Thanks for writing a amazing,good,great article, although I never
    comment but the writing of this article made me to do so.

    Thanks again.
    conor mcgregor vs floyd mayweather fight download online

    ReplyDelete
  5. Can we update the Location details, say Name (Not mandatory) ? while few transactions have been made with Location name already.

    ReplyDelete
  6. This website was... how do you say it? Relevant!!
    Finally I have found something that helped me. Appreciate it!

    ReplyDelete
  7. Amazing article...Helped a lot..Thank you

    ReplyDelete
  8. Amazing article and great help...

    ReplyDelete
  9. Could anyone tell why i_transaction_no is -1 in i_log table?

    ReplyDelete
  10. Nice Share, Keep working hard!! :)

    ReplyDelete
  11. Thanks for sharing your thoughts. I truly appreciate your efforts
    and I will be waiting for your further post thank you once again.

    ReplyDelete
  12. I like the helpful info you provide in your articles. I
    will bookmark your blog and check again here regularly.
    I am quite certain I'll learn lots of new stuff right here!
    Good luck for the next!

    ReplyDelete
  13. Way cool! Some very valid points! I appreciate you writing this post and the rest
    of the site is also very good.

    ReplyDelete
  14. wow great Article, the details you have provided are much clear, easy to understand, if you post some more Article, it will be very much useful for me.
    PL/SQL Training in Chennai

    ReplyDelete
  15. Very nice article, just what I needed.

    ReplyDelete
  16. bookmarked!!, I like your blog!

    ReplyDelete
  17. Helⅼo, Ӏ enjoy reading through y᧐ur
    artiсle post. I like to write a littⅼe
    commernt to ѕupport you.

    ReplyDelete
  18. Your mode of explaining everything in this article is truly pleasant, all can simply understand it, Thanks a lot.

    ReplyDelete
  19. Amazing! Its actually remarkable post, I have got much clear idea about from this paragraph.

    ReplyDelete
  20. Great site. A lot of helpful info here. I am sending it
    to some pals ans also sharing in delicious. And obviously, thank
    you for your sweat!

    ReplyDelete
  21. I am actually pleased to read this blog posts which carries plenty of valuable information, thanks for providing these data.

    ReplyDelete
  22. Heya i am for the first time here. I came across this board
    and I find It truly useful & it helped me out much.
    I hope to give something back and help others like
    you helped me.

    ReplyDelete
  23. Awesome! Its actually remarkable piece of writing, I have got much clear idea on the topic of from this paragraph.

    ReplyDelete
  24. I am sure this article has touched all the internet viewers, its really
    really fastidious post on building up new web site.

    ReplyDelete
  25. The article is very helpful, thank you so much !

    ReplyDelete
  26. There is Ԁefinately a great deal to know about this topіc.
    I love all the points you mаde.

    ReplyDelete
  27. Prеtty! Thіs has been an extremely wonderful post.
    Tһanks for supplying this information.

    ReplyDelete
  28. Pretty! This has been a really wonderful post. Many
    thanks for providing this information.

    ReplyDelete