+

Search Tips   |   Advanced Search

Validating application components

After creating an application component and adding hooks, we must validate the component.wcp file to ensure that it conforms to the correct syntax.

Follow this procedure to validate the component.wcp file.

  1. Import the application component into a MobileFirst project. The component.wcp file is validated during import.

  2. Look for error messages in the operations console. The following example error message indicates that the ClassName parameter is not specified in the CordovaPlugin element:
    Component = BarcodeScannerIOS.wlc
    Found component.wcp
    In component.wcp, one or more property values(s) are empty/invalid. See below:
    Reason:cvc-complex-type.2.4.b: the content of element 'CordovaPlugin' is not complete. One of '{ClassName}' is expected.

  3. Correct the errors using information in the message text and by referring to the topics under Add hooks to an application component that describe the syntax.


Parent topic: Application components