This guide will help you test your newly created Shipping Integration Plugin project in boxwise. If you haven't deployed your project to boxwise yet follow the steps in this article: Deploying your project to boxwise first.
Make sure the plugin is active
- Start the boxwise server
- Logon into the boxwise management portal
- Click System>Plugins
- Check if your project is visible there. If you followed the guides using the default naming there should be a plugin in the list called Company.Plugin with version 1.0.0.0 and it is Active ✔.
- If the plugin is there but it is not active please activate it by selecting the plugin and clicking the button ✔ Activate.
Sample of the result
Test the Settings page
- Start the boxwise server
- Logon into the boxwise management portal
- Click Settings>Transport
- There should be a table specifically for your plugin called Company.Plugin
The settings you see on this page are essentially the settings that are defined in the Settings.cs
file in your project. You can define settings there that will be automatically converted into fields on this page.
⚠ Setting field names need to be unique
Please make sure your setting names will be unique by giving them all the prefix of your project name because otherwise they might collide with setting from other parts of boxwise. See below for a sample.
using System.Collections;
using Wms.RemotingObjects.Settings;
using Wms.RemotingObjects.Settings.MetaData;
namespace Company.Plugin
{
public class Settings: SystemSettings
{
....
[Group("1S", "Security"), Label("API Key")]
public string CompanyPluginApiKey = "";
....
}
}
Sample of the result
Test creating a shipment
- Start the boxwise Touch
- Login to your server
- Press Pick in the menu
- Select a customer to Batch and Pick an order for
- Press Create batch in the menu
- Press Confirm
- Press Select Batches
- Select the Batch you just created
- Create your colli and pack your items
- Press Process
- After processing the Shipping window will show and it will contain your newly created Shipping Integration Plugin Button.
- Select your Shipping Integration Plugin Button and select a Service
- Press Ship Now
- The shipment will be created now and the windows will disappear
- Logon into the boxwise management portal
- Go to Historical>Shipments
- Here you can see your created shipment
- Go to Print Management > Print Jobs
- Here you can see the prints that have been created
Sample of the result
Debug messages
You can write debug messages to boxwise using the LogSink
class defined in the Wms.RemotingObjects.ShippingLayers
namespace.
To see this debug messages go to System > Db log in the management portal. Make sure the LogLevels Debug and Trace are enabled.
Summary
- ✅ You verified if the plugin is active
- ✅ You know where to find and adjust settings for your plugin project and you know where to create new ones
- ✅ You know how to test your plugin project by creating a new shipment
The next step is to learn how to debug your code while it is running within boxwise. To do this you can follow this guide: Debugging your project