CM5.1 JSP AXL Example : Get MWI Status

Unanswered Question
Jan 14th, 2009

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="" xmlns:xsi="" xmlns:xsd="">

<SOAP-ENV:Body> <axl:getLine xmlns:axl="\" xsi:schemaLocation=" 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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Thu, 01/15/2009 - 01:48

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?

Ming Yuan Chiu Fri, 01/16/2009 - 06:22


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?

Ming Yuan Chiu Tue, 01/20/2009 - 06:26

Hi Stephan,

The response I get back from CCM is:

"ERROR: Extension '30036' not found in partition 'IPphones'."

stephan.steiner Wed, 01/21/2009 - 02:04

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

Ming Yuan Chiu Wed, 01/21/2009 - 07:32

Hi Stephan,

This is what I get back

dnorpattern fkroutepartition

=========== ====================================

30036 0335750a-7aef-23f8-74ec-0858d114d6c7

stephan.steiner Wed, 01/21/2009 - 08:53

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.

Ming Yuan Chiu Wed, 01/21/2009 - 09:02

my hunch is that the example is not correct. The JSP code does this:

ap.sendRequest("getRoutePartition", "" + partitionName + "");

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", "" + vmailboxes[index] + "" + partitionId + "

Does this seem right?



This Discussion