Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current command #9

Open
aaronhardin1983 opened this issue Jul 31, 2019 · 5 comments
Open

Current command #9

aaronhardin1983 opened this issue Jul 31, 2019 · 5 comments

Comments

@aaronhardin1983
Copy link

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
Copy link
Author

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
Copy link
Contributor

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

@alexmc1510
Copy link

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

@aaronhardin1983
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants