Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CCM 6 AXL getPhone: A syntax error has occurred

Hi all.

I've been playing al while to solve the error I receive useing axl getPhone to Cisco Call Manager 6 (

I'm developing in Visual Studio 2005, C# and imported the wdsl file fom the axl toolkit.

Here is al sample code I use:

System.Net.ServicePointManager.CertificatePolicy = new BruteForcePolicy();

System.Net.ServicePointManager.Expect100Continue = false;

AXLAPIService axlApi = new XLAPIService();

axlApi.Credentials = new System.Net.NetworkCredential("user", "pass");

axlApi.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11;

axlApi.Url = "https://ccm-ip:8443/axl/";

GetPhoneReq getPhone = new GetPhoneReq();

getPhone.ItemElementName = ItemChoiceType29.phoneName;

getPhone.Item = "SEP000AB7144897";

GetPhoneRes getPhoneRes = axlApi.getPhone(getPhone);

On the last line I recieve an "A syntax error has occurred" error. When I look into the trace logs from the callmanager I see the following:

2007-09-20 11:23:44,075 INFO [http-8443-Processor17] axl.AxlListener - <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd=""><soap:Body><getPhone xmlns=""><phoneName xmlns="">SEP000AB7144897</phoneName></getPhone></soap:Body></soap:Envelope>

2007-09-20 11:23:44,090 INFO [http-8443-Processor17] axl.Handler - Handler initializing

2007-09-20 11:23:44,198 ERROR [http-8443-Processor17] axl.Handler -

java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(

... etc.

I noticed the following line:

<phoneName xmlns=""> Could this cause the syntax error? Or does anyone see anything else what might cause this problem.

Thanks in advance for any support!


Re: CCM 6 AXL getPhone: A syntax error has occurred

I think you are right, the element should not have xmlns in it

New Member

Re: CCM 6 AXL getPhone: A syntax error has occurred

How could I change this? I've been looking in the generated code (reference.cs), but could not find any 'xmlns' or anything else what might be hulpfull.