The xmlinvoice Servlet

Determination's xmlinvoice servlet generates a web page from which you can test your XML code. You can reach the servlet in a browser by going to the servlet URL. Ask the application server administrator about the host, port, and whether HTTP or HTTPS is used in your environment. This is the HTTPS format:

https://<host>:<port>/sabrix/xmlinvoice

The host and port are for the application server hosting Determination. Paste your XML directly into the input area on the Tax Calculator page and click Calculate Tax. If you do not want to audit these xmlinvoice transactions, ensure that <IS_AUDITED> is set to false.

The output XML is generated and displayed in the browser window. If there is an error in the XML, the servlet generates an error message.

If you do not have readily available test input XML from your business source system, you can generate it in the Workbench:

  1. Log on to Determination.
  2. Navigate to Menu > Workbench.
  3. Create your transaction scenario.
  4. Click Actions > XML Input.
  5. In the pop-up window, right click on the XML window and choose View Source.

     If you do not use View Source but instead try to paste directly from the browser into the servlet, the extra formatting characters added by the browser will cause errors.

  6. Select the XML from the Edit window and paste it into the servlet (if you are simulating a tax call from a financial system, you may want to remove Workbench-specific elements such as SCENARIO_NAME).
  7. Click Calculate Tax.