cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
900
Views
0
Helpful
1
Comments
cdnadmin
Level 11
Level 11
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, "&gt;" or "/&gt;".</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, "&gt;" or "/&gt;".</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
Comments
nbraun1987
Level 1
Level 1

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>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links