javascript - js.node n00b using axl -
i trying run axl query against cucm. have working example(shamelessly stolen) here: https://gist.github.com/darrenparkinson/9978397 i'm trying simple , replace soap portion sql query which, when use curl send request looks like:
<?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:body> <axlapi:executesqlquery sequence="1" xmlns:axlapi="http://www.cisco.com/axl/api/8.0" xmlns:axl="http://www.cisco.com/axl/api/8.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.cisco.com/axl/api/8.0 axlsoap.xsd"> <sql>select count(*) device</sql> </axlapi:executesqlquery>
when attempt node.js get
node device.js syntaxerror: invalid or unexpected token
here soap portion attempted send node.js:
any appreciated!
Comments
Post a Comment