Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

Description

Use the document queue to inspect the XML data being sent to and from the Mobile devices. Also, error call stacks can be found here.

Overview

Use case

When development it can be very useful to inspect the XML to know:

  • Has the code taken effect?
  • Which values are available in the request you are reading


Flow

The nature of Web services is as follows:


  • Mobile always initiates the communication with a Request
  • BC Responds



How to inspect mobile communication

Go to the "Mobile Document Queue"-page.

  • Select Document 
    1. Select Document > Show Request XML
      or
    2. Select Document > Show Response XML



The request is likely most interesting for development. The request will give you an overview of which values are available to you and what they are named.


Request example
<?xml version="1.0" encoding="utf-8"?>
<request name="PostAdhocRegistration" created="2020-02-14T15:24:24+01:00" xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Request">
  <requestData name="PostAdhocRegistration">
    <MyDate>14-02-2020</MyDate>
    <MyText>2</MyText>
    <MyDecimal>4</MyDecimal>
    <MyDateStep>14-02-2020</MyDateStep>
    <MyTextStep>2</MyTextStep>
    <MyDecimalStep>4</MyDecimalStep>
    <RegistrationType>MyUnplanned</RegistrationType>
  </requestData>
</request>

How to inspect errors Call Stack

Go to the "Mobile Document Queue"-page.

  • Select the latest Document with Status = Error
  • Select Document > Show Response XML
    or
  • Select Process >  Process Document


You can also re-run the process and get the the error on the screen

Select Process >  Process Document


For a better view, copy this dialog to notepad 


  • No labels