Oracle Cloud ERP – PurchaseOrder Creation Using SOAP

Sample Request Paylaod

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
      <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
         <wsu:Timestamp wsu:Id="TS-FCAED079FF8B56D73C160121389644310">
            <wsu:Created>2020-09-27T13:38:16.443Z</wsu:Created>
            <wsu:Expires>2021-02-14T20:38:27.443Z</wsu:Expires>
         </wsu:Timestamp>
         <wsse:UsernameToken wsu:Id="UsernameToken-FCAED079FF8B56D73C16012138924789">
            <wsse:Username>FIN_IMPL</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">stT95343</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">IyafJtTz3Xy+EHbX01EfYQ==</wsse:Nonce>
            <wsu:Created>2020-09-27T13:38:12.478Z</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
   </soap:Header>
   <soap:Body xmlns:ns1="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/types/">
      <ns1:createPurchaseOrderAsync>
         <ns1:createOrderEntry xmlns:ns2="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/">
            <ns2:DocumentStyleId>1</ns2:DocumentStyleId>
            <ns2:ProcurementBUId>300000046987012</ns2:ProcurementBUId>
            <ns2:RequisitioningBUId>300000046987012</ns2:RequisitioningBUId>
            <ns2:SoldToLegalEntityId>300000046973970</ns2:SoldToLegalEntityId>
            <ns2:ApprovalActionCode>SUBMIT</ns2:ApprovalActionCode>
            <ns2:BuyerId>300000047341483</ns2:BuyerId>
            <ns2:SupplierId>300000075039541</ns2:SupplierId>
            <ns2:SupplierSiteId>300000075039586</ns2:SupplierSiteId>
            <ns2:SupplierContactId>300000075039580</ns2:SupplierContactId>
            <ns2:BuyerEmail>john.abbott_zpns@oracledemos.com</ns2:BuyerEmail>
            <ns2:DocumentDescription>PURCHASE ORDER WITH SOAP WEBSERVICE BY</ns2:DocumentDescription>
            <ns2:PurchaseOrderEntryLine>
               <ns2:LineTypeId>1</ns2:LineTypeId>
               <ns2:ItemId>300000071617975</ns2:ItemId>
               <ns2:Quantity>10</ns2:Quantity>
               <ns2:Price>13</ns2:Price>
               <ns2:UnitOfMeasureCode>zzu</ns2:UnitOfMeasureCode>
               <ns2:PurchaseOrderEntrySchedule>
                  <ns2:ShipToLocationId>300000047013200</ns2:ShipToLocationId>
                  <ns2:ShipToOrganizationId>300000047274444</ns2:ShipToOrganizationId>
                  <ns2:NeedByDate>2020-12-31</ns2:NeedByDate>
                  <ns2:PurchaseOrderEntryDistribution/>
               </ns2:PurchaseOrderEntrySchedule>
            </ns2:PurchaseOrderEntryLine>
         </ns1:createOrderEntry>
      </ns1:createPurchaseOrderAsync>
   </soap:Body>
</soap:Envelope>

Sample Response Payload

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:typ="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/types/">
   <env:Header>
      <wsa:Action>http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/createPurchaseOrderAsyncResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:882275dd-f837-4039-a170-2172ce038428</wsa:MessageID>
      <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsu:Timestamp wsu:Id="Timestamp-Xx9m4UCYoGz6AQkBSY4pOg22" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsu:Created>2020-09-27T13:39:51Z</wsu:Created>
            <wsu:Expires>2020-10-01T00:59:51Z</wsu:Expires>
         </wsu:Timestamp>
      </wsse:Security>
   </env:Header>
   <env:Body>
      <ns0:createPurchaseOrderAsyncResponse xmlns:ns0="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/types/">
         <ns1:result xsi:type="ns0:RequestResults" xmlns:ns1="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/types/" xmlns:ns0="http://xmlns.oracle.com/apps/prc/po/editDocument/purchaseOrderServiceV2/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ns0:POHeaderId>300000211262969</ns0:POHeaderId>
            <ns0:OrderNumber>164021</ns0:OrderNumber>
            <ns0:SoldToLegalEntityId>300000046973970</ns0:SoldToLegalEntityId>
            <ns0:ChangeOrderNumber xsi:nil="true"/>
            <ns0:RequestStatus>SUCCESS</ns0:RequestStatus>
         </ns1:result>
      </ns0:createPurchaseOrderAsyncResponse>
   </env:Body>
</env:Envelope>

Comments |0|

Legend *) Required fields are marked
**) You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Category: OracleSaaS