1009
Views
0
Helpful
1
Comments

Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-24-2014 03:24 PM
This document was generated from CDN thread
Created by: Heath Williams on 09-11-2011 06:39:00 AM
Hi,
I have the following XML file which im using cURL to POST.
XML File:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axlapi:addTransPattern xmlns:axl="http://www.cisco.com/AXL/API/1.0" sequence="1"">
<newTransPattern>
<pattern>666666</pattern>
<usage>Translation</usage>
<routePartitionName>DUMMY-pt</routePartitionName>
</newTransPattern>
</axlapi:addTransPattern>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Result:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xml
soap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultst
ring>Element type "axlapi:addTransPattern" must be followed by either attribute specifications, ">" or "/>".</faul
tstring><detail><axl:Error xmlns:axl="http://www.cisco.com/AXL/API/7.1"><axl:code>5001</axl:code><axl:message>Element ty
pe "axlapi:addTransPattern" must be followed by either attribute specifications, ">" or "/>".</axl:message><reques
t/></axl:Error></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Issue:
The API XML interface documentation does not talk about the addtional atrributes required. If some on can please assist that would be great. Thanks
Subject: Re: New Message from Heath Williams in Administration XML (AXL) - Administr
Replied by: Sascha Monteiro on 09-11-2011 02:56:06 PM
I think it's related to the soap evelope itself..
you have <axlapi:addTransPatterns and then xmlns:axl=
try set that to xmlns:axlapi= so that the xml namespace matches
Created by: Heath Williams on 09-11-2011 06:39:00 AM
Hi,
I have the following XML file which im using cURL to POST.
XML File:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axlapi:addTransPattern xmlns:axl="http://www.cisco.com/AXL/API/1.0" sequence="1"">
<newTransPattern>
<pattern>666666</pattern>
<usage>Translation</usage>
<routePartitionName>DUMMY-pt</routePartitionName>
</newTransPattern>
</axlapi:addTransPattern>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Result:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xml
soap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultst
ring>Element type "axlapi:addTransPattern" must be followed by either attribute specifications, ">" or "/>".</faul
tstring><detail><axl:Error xmlns:axl="http://www.cisco.com/AXL/API/7.1"><axl:code>5001</axl:code><axl:message>Element ty
pe "axlapi:addTransPattern" must be followed by either attribute specifications, ">" or "/>".</axl:message><reques
t/></axl:Error></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Issue:
The API XML interface documentation does not talk about the addtional atrributes required. If some on can please assist that would be great. Thanks
Subject: Re: New Message from Heath Williams in Administration XML (AXL) - Administr
Replied by: Sascha Monteiro on 09-11-2011 02:56:06 PM
I think it's related to the soap evelope itself..
you have <axlapi:addTransPatterns and then xmlns:axl=
try set that to xmlns:axlapi= so that the xml namespace matches
Labels:
Comments
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
11-18-2019
03:24 PM
The below is working for me - take the new out of your <newTransPattern> tags
IMPORTANT --- the add below was created for blocking calls.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
<soapenv:Header/>
<soapenv:Body>
<ns:addTransPattern>
<transPattern>
<routePartitionName>dummy_part</routePartitionName>
<description>AXL Test</description>
<pattern>8675309</pattern>
<blockEnable>true</blockEnable>
<releaseClause>Call Rejected</releaseClause>
<usage>Translation</usage>
</transPattern>
</ns:addTransPattern>
</soapenv:Body>
</soapenv:Envelope>