09-20-2007 01:55 AM - edited 03-13-2019 04:27 PM
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!
09-24-2007 12:03 PM
I think you are right, the
09-25-2007 04:30 AM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide