IBM Support

Invalid XML error thrown while invoking a Service through REST URL

Troubleshooting


Problem

Attempts to invoke service through REST URL in IBM Sterling Order Management leads to Invalid XML error.

Symptom

Steps to replicate:

  1. Create a service called TestService which is used to get the order list


     
  2. Invoked the service through a REST URL as follows:
    http://localhost:8084/smcfs/restapi/executeFlow/TestService

    The following error message is thrown:
    "ErrorDescription": "YFS:Invalid XML", "ErrorUniqueExceptionId": "9.112..245.20214830783994690000000000004", "ErrorCode": "YFS10013", "MoreInfo": { "Expected Root YFCNode": "Order",         "Actually received YFCNode": "TestService"}

Cause

The REST framework sends the root element name as the service name.

Diagnosing The Problem

For a service named TestService when the Json input is sent as {"Order": { "EnterpriseCode": "DEFAULT", "OrderNo": "Y100000000" } } the XML input sent to the SDF service is:

<TestService>
  <Order EnterpriseCode="DEFAULT" OrderNo="Y100000000"/>
</TestService>

Resolving The Problem

Since the REST framework does not know which API/services are configured inside the TestService, it places the service name as the root xml element name. The service can include suitable XSL/custom API components to parse the input as per needs.

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management System Software"},"ARM Category":[{"code":"a8m0z000000cy06AAA","label":"Services and MQ"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.0;9.0.0;9.1.0;9.2.0;9.2.1;9.3.0;9.4.0;9.5.0"}]

Document Information

Modified date:
25 October 2025

UID

swg22000753