Test the solution

 

Important

Microsoft Azure BizTalk Services (MABS) is being retired, and replaced with Azure Logic Apps. If you currently use MABS, then Move from BizTalk Services to Logic Appsprovides some guidance on moving your integration solutions to Logic Apps.

If you're brand new to Logic Apps, then we suggest getting started here:

In this topic, we test the end-to-end solution by using all the applications and components that we have set up so far. Before testing the solution, make sure you have set up all the components as required.

  1. Make sure you have completed the instructions in the step Set up the application to onboard partners to create a partner called FourthCoffee. You must have also provided a logo for FourthCoffee and added a menu item to the catalog to choose from.

    Note

    For the purposes of this demo, the solution works best when only one menu item is added as part of the catalog.

  2. Ensure you have set up the integration layer with all the required components:

    1. Make sure you have created and deployed the PurchaseOrderBridge XML One-Way Bridge in BizTalk Services, as described in the step Create a BizTalk Service project to process purchase orders.

    2. Make sure you have created and deployed the InvoiceBridge XML One-Way Bridge in BizTalk Services, as described in the step Create a BizTalk Service project to process invoices.

    3. Make sure you have created an agreement to process messages exchanged between Contoso, Ltd. and Fourth Coffee, as described in the step Create a trading partner agreement.

    4. Make sure you have created, deployed, and started a Microsoft Azure worker role that polls an Azure blob container and routes purchase order messages to send bridge in the EDI agreement, as described in the step Create an Azure worker role to poll the Azure blob.

  3. Make sure you have created and started the application that is used by Fourth Coffee to accept or reject orders, as described in the step Create the Fourth Coffee application to receive orders and return invoice.

  4. While creating a trading partner agreement you must have provided a relay endpoint where suspended messages that fail processing are routed to. Make sure you have an application listening to that relay endpoint. For this purpose, you can use the sample tool, Azure BizTalk Services EAI Sample Tools - Message Receiver provided with BizTalk Services.

  5. On a Windows 8 computer, start the CloudCar application. From the Visual Studio Solution Explorer, right-click the solution name and select Build. Once the build is complete, run the simulator to test the application:

    1. In the Simulator, tap the Contoso CloudCar icon from the Start screen to launch the application.

    2. Once the application starts, tap the Restaurant icon.

      Select a service

    3. When prompted whether the application can use your current location, select Allow.

    4. A map page launches and zooms into your current location. The map page shows the location of a nearby Fourth Coffee restaurant. The map uses the same logo icon to point the location of Fourth Coffee that you provided while creating a partner in the Set up the application to onboard partners.

      Restaurant on the map

    5. Tap the logo icon on the map to see the menu for the Fourth Coffee restaurant.

      Place an order

      Select an item from the menu to see the price and description. Provide the required details and tap Submit Order to place the order. If the order is successfully submitted, a message is displayed on the screen.

  6. Switch to the computer where you are running the Fourth Coffee application to approve or reject orders. Because that application is represented using a console application in this tutorial, you must see a new X12 purchase order message on the console. Carefully study the contents of the purchase order. It must contain an order ID, customer name, customer e-mail address, order details, etc.

    Approve or reject orders

    In the console application, at the prompt to accept or reject orders, enter “y” to accept the order

  7. Switch to the computer where you have SQL Server installed and connect to the CloudCarDatabase. Run a SELECT query on the Orders table.

    List the rows in Orders table

  8. Similarly, run a SELECT query on the Invoice table in the CloudCarDatabase.

    List the rows in the Invoice table

  9. Finally, you must have received an e-mail with the order details at the e-mail address you specified while placing the order. The contents of the e-mail resemble the following:

    Your order number is: 2792e39a-a170-4cfb-9d9c-e09d53e0fefc
    You ordered for: Chicken Salad
    Quantity ordered is: 1
    Your order has been: Accepted
    Thank You!
    

With this, you have tested an end-to-end solution where a partner on boards itself on another partner’s BizTalk Services environment, the hosting partner sets up an integration layer using BizTalk Services and other Microsoft Azure technologies, and the customers use a mobile modern Windows 8 application to use the services.