Sample Request/Response for ReST Injector Service

Table A-1 Sample Request/Response for ReST Injector Service

End Point Method Media Type User/ Password Request xml Response Comments

http://localhost:7001/rib-injector-services-web/resources/injector/inject

POST

application/xml

Request are xml only and response are json only.

A valid user that is part of IntegrationGroup.

<ApplicationMessage xmlns="http://www.oracle.com/retail/integration/rib/ApplicationMessages/v1">
    <family>Vendor</family>
    <type>VendorCre</type>
    <businessObjectId>10111011</businessObjectId>
    <payloadXml>&lt;VendorDesc xmlns="http://www.oracle.com/retail/integration/base/bo/VendorDesc/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;ns1:VendorHdrDesc xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorHdrDesc/v1" &gt;&lt;ns1:supplier&gt;10111011&lt;/ns1:supplier&gt;&lt;ns1:sup_name&gt;supplier site 
HTTP/1.1 200 OK
Date: Thu, 10 May 2018 16:33:11 GMT
Content-Length: 33
Content-Type: application/json
X-ORACLE-DMS-ECID: 4a8e5d3f-1aae-43d7-ba84-c6b9c60563c7-00000039
X-ORACLE-DMS-RID: 0
Set-Cookie: JSES-SIONID=hsFK5jW4B1QtipC9zhng--or1WL7ywxCuxsJeVwdgPpnv6oNUnde!233126712; path=/; HttpOnly
{"message": "In-ject successful."}

Success

&lt;/ns1:sup_name&gt;&lt;ns1:contact_name&gt;G Srilekha&lt;/ns1:contact_name&gt;&lt;ns1:contact_phone&gt;1234567&lt;/ns1:contact_phone&gt;&lt;ns1:sup_status&gt;A&lt;/ns1:sup_status&gt;&lt;ns1:qc_ind&gt;N&lt;/ns1:qc_ind&gt;&lt;ns1:vc_ind&gt;N&lt;/ns1:vc_ind&gt;&lt;ns1:currency_code&gt;PLN&lt;/ns1:currency_code&gt;&lt;ns1:terms&gt;Net_07&lt;/ns1:terms&gt;&lt;ns1:freight_terms&gt;F_01&lt;/ns1:freight_terms&gt;&lt;ns1:ret_allow_ind&gt;N&lt;/ns1:ret_allow_ind&gt;&lt;ns1:ret_auth_req&gt;Y&lt;/ns1:ret_auth_req&gt;&lt;ns1:edi_po_ind&gt;N&lt;/ns1:edi_po_ind&gt;&lt;ns1:edi_po_chg&gt;N&lt;/ns1:edi_po_chg&gt;&lt;ns1:edi_po_confirm&gt;N&lt;/ns1:edi_po_confirm&gt;&lt;ns1:edi_

asn&gt;N&lt;/ns1:edi_asn&gt;&lt;ns1:edi_supp_available_ind&gt;N&lt;/ns1:edi_supp_available_ind&gt;&lt;ns1:edi_contract_ind&gt;N&lt;/ns1:edi_contract_ind&gt;&lt;ns1:edi_invc_ind&gt;N&lt;/ns1:edi_invc_ind&gt;&lt;ns1:cost_chg_pct_var&gt;0&lt;/ns1:cost_chg_pct_var&gt;&lt;ns1:cost_chg_amt_var&gt;0&lt;/ns1:cost_chg_amt_var&gt;&lt;ns1:replen_approval_ind&gt;N&lt;/ns1:replen_approval_ind&gt;&lt;ns1:settlement_code&gt;E&lt;/ns1:settlement_code&gt;&lt;ns1:pre_mark_ind&gt;N&lt;/ns1:pre_mark_ind&gt;&lt;ns1:auto_appr_invc_ind&gt;N&lt;/ns1:auto_appr_invc_ind&gt;&lt;ns1:dbt_memo_code&gt;Y&lt;/ns1:dbt_memo_code&gt;&lt;ns1:freight_charge_ind&gt;N&lt;/ns1:freight_charge_ind&gt;&lt;ns1:auto_appr_dbt_memo_ind&gt;N&lt;/ns1:auto_appr_dbt_memo_ind&gt;&lt;ns1:inv_mgmt

_lvl&gt;S&lt;/ns1:inv_mgmt_lvl&gt;&lt;ns1:backorder_ind&gt;N&lt;/ns1:backorder_ind&gt;&lt;ns1:vat_region&gt;1002&lt;/ns1:vat_region&gt;&lt;ns1:prepay_invc_ind&gt;N&lt;/ns1:prepay_invc_ind&gt;&lt;ns1:service_perf_req_ind&gt;N&lt;/ns1:service_perf_req_ind&gt;&lt;ns1:addinvc_gross_net
        &gt;N&lt;/ns1:addinvc_gross_net&gt;&lt;ns1:delivery_policy&gt;NEXT&lt;/ns1:delivery_policy&gt;&lt;ns1:bracket_costing_ind&gt;N&lt;/ns1:bracket_costing_ind&gt;&lt;ns1:dsd_supplier_ind&gt;N&lt;/ns1:dsd_supplier_ind&gt;&lt;ns1:sup_qty_level&gt;CA&lt;/ns1:sup_qty_level&gt;&lt;ns1:supplier_parent&gt;1011101&lt;/ns1:supplier_parent&gt;&lt;ns1:final_dest_ind&gt;N&lt;/ns1:final_dest_ind&gt;&lt;/ns1:VenVendorHdrDesc&gt;&lt;ns1:VendorAddrDesc 

xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorAddrDesc/v1" &gt;&lt;ns1:module&gt;SUPP&lt;/ns1:module&gt;&lt;ns1:key_value_1&gt;10111011&lt;/ns1:key_value_1&gt;&lt;ns1:seq_no&gt;1&lt;/ns1:seq_no&gt;&lt;ns1:addr_type&gt;01&lt;/ns1:addr_type&gt;&lt;ns1:primary_addr_ind&gt;Y&lt;/ns1:primary_addr_ind&gt;&lt;ns1:add_1&gt;3/4/678&lt;/ns1:add_1&gt;&lt;ns1:city&gt;AE&lt;/ns1:city&gt;&lt;ns1:country_id&gt;PL&lt;/ns1:country_id&gt;&lt;/ns1:VendorAddrDesc&gt;&lt;ns1:VendorAddrDesc xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorAddrDesc/v1" &gt;&lt;ns1:module&gt;SUPP&lt;/ns1:module&gt;&lt;ns1:key_value_1&gt;10111011&lt;/ns1:key_value_1&gt;&lt;ns1:seq_no&gt;1&lt;/ns1:seq_no&gt;&lt;ns1:addr_type&gt;03&lt;/ns1:addr_type&gt;&lt;ns1:primary_addr_ind&gt;Y&lt;/ns1:primary_addr_ind&gt;&lt;ns1:add_1&gt;3/4/678&lt;/ns1:add_1&gt;&lt;ns1:city&gt;AE&lt;/ns1:city&gt;&lt;ns1:country_id&gt;PL&lt;/ns1:country_id&gt;&lt;/ns1:VendorAddrDesc&gt;&lt;ns1:VendorAddrDesc 

xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorAddrDesc/v1" &gt;&lt;ns1:module&gt;SUPP&lt;/ns1:module&gt;&lt;ns1:key_value_1&gt;10111011&lt;/ns1:key_value_1&gt;&lt;ns1:seq_no&gt;1&lt;/ns1:seq_no&gt;&lt;ns1:addr_type&gt;04&lt;/ns1:addr_type&gt;&lt;ns1:primary_addr_ind&gt;Y&lt;/ns1:primary_addr_ind&gt;&lt;ns1:add_1&gt;3/4/678&lt;/ns1:add_1&gt;&lt;ns1:city&gt;AE&lt;/ns1:city&gt;&lt;ns1:country_id&gt;PL&lt;/ns1:country_id&gt;&lt;/ns1:VendorAddrDesc&gt;&lt;ns1:VendorAddrDesc 

xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorAddrDesc/v1" &gt;&lt;ns1:module&gt;SUPP&lt;/ns1:module&gt;&lt;ns1:
    key_value_1&gt;10111011&lt;/ns1:key_value_1&gt;&lt;ns1:seq_no&gt;1&lt;/ns1:seq_no&gt;&lt;ns1:addr_type&gt;05&lt;/ns1:addr_type&gt;&lt;ns1:primary_addr_ind&gt;Y&lt;/ns1:primary_addr_ind&gt;&lt;ns1:add_1&gt;3/4/678&lt;/ns1:add_1&gt;&lt;ns1:city&gt;AE&lt;/ns1:city&gt;&lt;ns1:country_id&gt;PL&lt;/ns1:country_id&gt;&lt;/ns1:VendorAddrDesc&gt;&lt;ns1:VendorAddrDesc 

xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorAddrDesc/v1" &gt;&lt;ns1:module&gt;SUPP&lt;/ns1:module&gt;&lt;ns1:key_value_1&gt;10111011&lt;/ns1:key_value_1&gt;&lt;ns1:seq_no&gt;1&lt;/ns1:seq_no&gt;&lt;ns1:addr_type&gt;06&lt;/ns1:addr_type&gt;&lt;ns1:primary_addr_ind&gt;Y&lt;/ns1:primary_addr_ind&gt;&lt;ns1:add_1&gt;3/4/678&lt;/ns1:add_1&gt;&lt;ns1:city&gt;AE&lt;/ns1:city&gt;&lt;ns1:country_id&gt;PL&lt;/ns1:country_id&gt;&lt;/ns1:VendorAddrDesc&gt;&lt;ns1:VendorOUDesc 

xmlns:ns1="http://www.oracle.com/retail/integration/base/bo/VendorOUDesc/v1" &gt;&lt;ns1:org_unit_id&gt;1&lt;/ns1:org_unit_id&gt;&lt;ns1:primary_pay_site_ind&gt;N&lt;/ns1:primary_pay_site_ind&gt;&lt;/ns1:VendorOUDesc&gt;&lt;/VendorDesc&gt;</payloadXml>
</ApplicationMessage>

<stockholding_ind>a</stockholding_ind>
      <item_id>nbYDUFLqAcTsBUnhYuhpcæ±</item_id>
      <origi-nal_item_id>UxrgzyAgzDgTDbHfMBjbtæ±</original_item_id>
      <order_line_nbr>3</order_line_nbr>
      <unit_qty>12.4</unit_qty>
      <status>a</status>
      <us-er_id>CAswTBGUzTaNjwgDwWXEgqCjEmæ±</user_id>
      <updat-ed_date>2013-06-13T14:20:35</updated_date>
   </SOStatusDtl>
   <context_type>vRæ±</context_type>
   <con-text_value>oDHGRuOeDmvFPytxgiiJyæ±</context_value>
   <inventory_type>kwæ±</inventory_type>
   <cust_order_nbr>cwFLuXBqFPBvkxVmTSBrhovrROJAZYCfYncVEhfub-mAYæ±</cust_order_nbr>

   <fulfill_order_nbr>qSzQUPkqbEFboWQFxPSqoZ-NOEJotCMnqbWzXTqRVkVkLæ±</fulfill_order_nbr>
</SOStatusDesc>
]]></payloadXml>        
</ApplicationMessage>

If user in not added in IntegrationGroup

<v1:ApplicationMessage xmlns:v1="http://www.oracle.com/retail/integration/rib/ApplicationMessages/v1">
<v1:family>WH</v1:family>
<v1:type>WHCR</v1:type>
<!--Optional:-->
<v1:businessObjectId>?</v1:businessObjectId>
<!--Zero or more repetitions:-->
<v1:ApplicationMessageRoutingInfo>
<v1:name>?</v1:name>
<v1:value>?</v1:value>
<!--Zero or more repetitions:-->
<v1:ApplicationMessageRoutingInfoDetail>
<v1:name>?</v1:name>
<v1:value>?</v1:value>
</v1:ApplicationMessageRoutingInfoDetail>
</v1:ApplicationMessageRoutingInfo>
<v1:payloadXml>&lt;WHDesc xmlns=&quot;http://www.oracle.com/retail/integration/base/bo/WHDesc/v1&quot;&gt;&lt;wh&gt;10&lt;/wh&gt;&lt;wh_name&gt;g&lt;/wh_name&gt;&lt;/WHDesc&gt;</v1:payloadXml>
</v1:ApplicationMessage>
HTTP/1.1 403 Forbidden
Date: Thu, 05 Aug 2021 10:25:26 GMT
Content-Length: 1166
Content-Type: text/html; char-set=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<HTML>
<HEAD>
<TITLE>Error 403--Forbidden</TITLE>
</HEAD>
<BODY bgcol-or="white">
<FONT FACE=Helvetica><BR CLEAR=all>
<TABLE bor-der=0 cellspac-ing=5><TR><TD><BR CLEAR=all>
<FONT FACE="Helvetica" COL-OR="black" SIZE="3"><H2>Error 403--Forbidden</H2>
</FONT></TD></TR>
</TABLE>
<TABLE bor-der=0 width=100% cellpad-ding=10><TR><TD VALIGN=top WIDTH=100% BGCOL-OR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3>
</FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.4 403 For-bidden</H4>
</FONT>

Failure

<P><FONT FACE="Courier New">The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been ful-filled, it SHOULD de-scribe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is ap-plica-ble.</FONT></P>
</FONT></TD></TR>
</TABLE>
</BODY>
</HTML>

Wrong User/pass

<v1:ApplicationMessage xmlns:v1="http://www.oracle.com/retail/integration/rib/ApplicationMessages/v1">
<v1:family>WH</v1:family>
<v1:type>WHCR</v1:type>
<!--Optional:-->
<v1:businessObjectId>?</v1:businessObjectId>
<!--Zero or more repetitions:-->
<v1:ApplicationMessageRoutingInfo>
<v1:name>?</v1:name>
<v1:value>?</v1:value>
<!--Zero or more repetitions:-->
<v1:ApplicationMessageRoutingInfoDetail>
<v1:name>?</v1:name>
<v1:value>?</v1:value>
</v1:ApplicationMessageRoutingInfoDetail>
</v1:ApplicationMessageRoutingInfo>
<v1:payloadXml>&lt;WHDesc xmlns=&quot;http://www.oracle.com/retail/integration/base/bo/WHDesc/v1&quot;&gt;&lt;wh&gt;10&lt;/wh&gt;&lt;wh_name&gt;g&lt;/wh_name&gt;&lt;/WHDesc&gt;</v1:payloadXml>
</v1:ApplicationMessage>
HTTP/1.1 401 
WWW-Authenticate: Basic realm="Authentication required"
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 669
Date: Thu, 05 Aug 2021 05:08:40 GMT
Keep-Alive: timeout=20
Connection: keep-alive
<!doctype html><html lang="en"><head><title>HTTP Status 401 â€" Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 â€" Unauthorized</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class="line" /><h3>Apache Tomcat/8.5.64</h3></body></html>

Failure