Service REST Call Infotable Input Using XML
I cannot seem to figure out how to pass an infotable as an input to a Thingworx Service using a XML format REST call. I am using Postman with an app key to call a Service on the platform using POST. I am able to pass multiple other basetype inputs like strings, but the length of my infotable
My question is How exactly must the infotable be formatted to properly be sent to Thingworx? When I try to get the length of the Infotable, it always gives me 0 rows.
Here is an example REST call body that I have tried where the 'content-type' header is set to 'text/xml'. The name of the service is 'TestXMLRest'. There are 2 inputs: a string called 'StringInput' and a 2-row Infotable called 'MyInfoTableInput' using a datashape the contains 2 strings, 'Name' and 'PhoneNumber'.
<TestXMLRest>
<StringInput>Just a string</StringInput>
<MyInfoTableInput>
<DataShape>
<FieldDefinitions>
<FieldDefinition aspect.isPrimaryKey="false" baseType="STRING" description="" name="Name" ordinal="1"/>
<FieldDefinition aspect.isPrimaryKey="false" baseType="STRING" description="" name="PhoneNumber" ordinal="2"/>
</FieldDefinitions>
</DataShape>
<Rows>
<Row>
<Name>John</Name>
<Phone>555-1111</Phone>
</Row>
<Row>
<Name>Amy</Name>
<Phone>555-5555</Phone>
</Row>
</Rows>
</MyInfoTableInput>
</TestXMLRest>

