Dispatcher Actions
NRGship listens on port 54242 for POST requests. The POST body should contain XML formatted text which specifies a given action along with any additional parameters.
URL:
http://ipnumber:54242/posttext.html
POST body:
<TROI_TEXT_UTF8>
<NRGship>
<action>ship</action>
<id>xyx</id>
<Shipment><!-- optional --></Shipment>
<button><!-- optional --></button>
<autoWeight><!-- optional --></autoWeight>
<autoShip><!-- optional --></autoShip>
</NRGship>
</TROI_TEXT_UTF8>
The dispatcher accepts the following actions:
Show - When called with a valid ID, the given shipment will be brought up on the desktop so that it can be finalized.
Ship - When called with a valid ID, the given shipment will be brought up on the desktop and the ship process will be invoked.
Rate - When called with a valid ID, the given shipment will be brought up on the desktop and the rating process will be invoked so the shipment can be finalized.
New -This action will accept NRGship formatted XML data inside of the NRGship request (See Shipment below). A new shipment record will be created and will be displayed for the user to finalize.
Get - Future support for eCommerce automation
Optional Elements
Shipment - This element should contain valid NRGship XML for a new shipment.
button - Future support for eCommerce automation.
autoWeight - When passed with a value of "1" as part of a New, Get or Show action, the scale will be automatically invoked for weight capture.
autoShip - When passed with a value of "1" as part of a New, Get or Show action, the shipment will be automatically processed.