Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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