문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top