TrakHound / Fanuc-MTConnect-Agent

MTConnect Agent for Fanuc CNC Equipment using Focas over Ethernet
79 stars 36 forks source link

Current command #9

Open aaronhardin1983 opened 5 years ago

aaronhardin1983 commented 5 years ago

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!

aaronhardin1983 commented 5 years ago

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?

intolerance commented 5 years ago

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

alexmc1510 commented 5 years ago

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

aaronhardin1983 commented 5 years ago

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

alexmc1510 commented 5 years ago

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