Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello
I am struggling to find how to map a XML parameter of a service to a C# type.
Currently I have that:
public static void PutWorkOrder(
[ThingworxServiceParameter(name = "WorkOrder", description = "XML document", baseType = "XML")]
XmlDocument WorksOrder)
But I am not sure that XmlDocument is the right type for mapping . ( Always null when debugging)
Thanks a lot
Solved! Go to Solution.
Hi
I found the problem. It was a typo in the parameters
public static void PutWorkOrder(
[ThingworxServiceParameter(name = "WorkOrder", description = "XML document", baseType = "XML")]
XmlDocument WorksOrder)
Hi @SD_9534978.
This looks like a small portion of the code. Is there somewhere else in the code where you loading in the XML document?
Regards.
--Sharon
Hi
I found the problem. It was a typo in the parameters
public static void PutWorkOrder(
[ThingworxServiceParameter(name = "WorkOrder", description = "XML document", baseType = "XML")]
XmlDocument WorksOrder)
Hi @SD_9534978.
Glad you figured it out! Please mark your last response as the Accepted Solution for the benefit of others with the same issue.
Regards.
--Sharon