01-14-2009 01:43 PM - edited 03-15-2019 05:05 AM
I tried the SDK4.1's example for the JSP axl call method (GroupMWI.jsp) but it doesn't seem to work. (I recompiled the CiscoIPPhoneSDK.jar to use the correct AXL path (https://cmserver:8443/axl/) but the example doesn't work. Here is my SOAP:XML call:
<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> <axl:getLine xmlns:axl="http://www.cisco.com/AXL/1.0\" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://ccmserver/schema/axlsoap.xsd" sequence="1234"> <pattern>30036</pattern><routePartitionId>0335750A-7AEF-23F8-74EC-0858D114D6C7</routePartitionId><routeFilterId></routeFilterId>
</axl:getLine> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
----------------------------------------
According to the GroupMWI.jsp example, the POST is correct but it doesn't return the element <mwiStatus>. Anybody know how to correct this?
01-15-2009 01:48 AM
What is the response you get from the server?
Is 30036 s valid DN and is there a partition with pkid = 0335750A-7AEF-23F8-74EC-0858D114D6C7?
01-16-2009 06:22 AM
Stephan,
30036 is a valid DN in the partition, in fact, it's my extension. the pkid is also in the table. What else may I try to remedy the problem?
01-19-2009 01:47 AM
What about the first question? What is the response of the ccm to your request?
01-20-2009 06:26 AM
Hi Stephan,
The response I get back from CCM is:
"ERROR: Extension '30036' not found in partition 'IPphones'."
01-21-2009 02:04 AM
That seems rather telling to me.. could it be that your extension isn't in the partition you specified?
Run the axl command executeSQLQuery with the following query:
select dnorpattern, fkroutepartition from numplan where dnorpattern = '30036'
and post the result
01-21-2009 07:32 AM
Hi Stephan,
This is what I get back
dnorpattern fkroutepartition
=========== ====================================
30036 0335750a-7aef-23f8-74ec-0858d114d6c7
01-21-2009 07:48 AM
AXL Return:
01-21-2009 08:53 AM
hmm... now that is weird.. they do look correct (I checked the first block and the last few digits). I think now it's time to turn on AXL debug logging, do the whole thing again, then look at the AXL traces using RTMT and look at entries that happen after you send the command from the client.
I've seen the AXL error not reflect what is really going wrong before.. looking at the server logs then cleared up the issue.
01-21-2009 09:02 AM
my hunch is that the example is not correct. The JSP code does this:
ap.sendRequest("getRoutePartition", "
Then it parses out the partition id: NodeList partitionList = axlResultDoc.getElementsByTagName("routePartition");
What is returns isn't the pkid when I manually POST it to axl.
Then it sends out another axl request:
ap.sendRequest("getLine", "
Does this seem right?
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: