cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1059
Views
0
Helpful
2
Replies

CCM 6 AXL getPhone: A syntax error has occurred

Mike-1985
Level 1
Level 1

Hi all.

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

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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><getPhone xmlns="http://www.cisco.com/AXL/API/6.0"><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 - com.cisco.ccm.axl.PhoneHandler@18e3ea5

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

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:395)

... 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!

2 Replies 2

Sascha Monteiro
Level 6
Level 6

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

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.

Anyone?