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
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: