CCM 6 AXL getPhone: A syntax error has occurred

Unanswered Question
Sep 20th, 2007
User Badges:

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 - [email protected]

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!


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sascha Monteiro Mon, 09/24/2007 - 12:03
User Badges:
  • Silver, 250 points or more

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

Mike-1985 Tue, 09/25/2007 - 04:30
User Badges:

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?

Actions

This Discussion