Question

I'm trying to use the XML API for Cisco IOS XR (Docs: Cisco IOS XR XML API Guide, Cisco IOS XR Release 4.1) but I'm not sure what library to use in PHP (simpleXML?) to just open a TCP connection to a port on a device and start reading and writing XML to it.

I understand the concept of the schemas and such, but everything I can find about PHP and XML seems to be oriented towards web services, POST, etc, and this is simply reading and writing XML.

Était-ce utile?

La solution

What you mean is opening, reading and writing to a socket. Read the documentation on this subject for more information. The xml is just an accessory to your actual communications, which will happen, one way or another, via sockets.

EDIT: And thus you will not need any library since sockets are part of php by default.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top