TrakHound/Fanuc-MTConnect-Agent

Current command

aaronhardin1983 opened this issue · 5 comments

When I try to run the current command, the results are not in XML format. The output is html, so my system can't function correctly. How can I get it to return XML data? When I use the probe command, it is XML.

http://ipaddress:5000/adapter_name/current

Thanks!

I've temporarily stopped attempting my primary tool.

As a secondary test, I tried connecting Kepware to the MTConnect server but I get "XML Validation Error: The attribute 'serial' on the element '{urn:mtconnect.org:MTConnectDevices:1.3}Description' is not defined in the DTD/Schema.'" I did confirm that I had the 1.3 files on both servers (Kepware and MTConnect) but comparing the Probe file with the Current file, I do see Serial is missing. Anyone else seen this?

@aaronhardin1983 Try setting the Accept HTTP Header to application/xml while performing the GET /current request.

Hello, same problem with Kepware when I try to generate tags.
Any idea?

My issue ended up being two-fold.

  1. the XSD files in the schemas folder had gotten corrupt..somehow. I re-downloaded just those files and placed them in the schemas folder. I knew they were a problem because when opening them with Notepad ++ there was no text

  2. the file devices.xml had an error. The Kepware error was looking for a variable called serialNumber but the xml file called the variable serial. I had to stop the Agent, change the value for each machine listed, then restart the Agent.
    image

Everything started working

Thanks a lot!! I "jumped" the issue removing schemas from kepware so I "jumped" XSD validation but for sure I will perform your option.