cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
855
Views
0
Helpful
1
Replies

AXL 10.5/C# - Issues with adding remote destination

ashish.nijai
Level 1
Level 1

Hi I'm trying to add a remote destination with AXL proxy created for .Net. When I set following needed properties on AddRemoteDestinateReq.remoteDestination

- name, destination, answerTooLateTimer, answerTooSoonTimer, delayBeforeRingingCell, ownerUserId and remoteDestinationProfileName.

Following soap requests gets generated when I execute the add request.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <addRemoteDestination xmlns="http://www.cisco.com/AXL/API/10.5">
         <remoteDestination xmlns="">
            <name>MyRD</name>
            <destination>12341</destination>
            <answerTooSoonTimer>1500</answerTooSoonTimer>
            <answerTooLateTimer>19000</answerTooLateTimer>
            <delayBeforeRingingCell>0</delayBeforeRingingCell>
            <ownerUserId>user11</ownerUserId>
            <remoteDestinationProfileName>RDP_Valid</remoteDestinationProfileName>
            <ctiRemoteDeviceName xsi:nil="true"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <dualModeDeviceName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
            <todAccessName xsi:nil="true"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <mobileSmartClientName xsi:nil="true"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
            <mobilityProfileName xsi:nil="true"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
         </remoteDestination>
      </addRemoteDestination>
   </soap:Body>
</soap:Envelope>

With this request, I get following error -

For this dual mode phone, mobility profile is not added. So owner user is required.

if I remove, all those xml nodes with xsi:nil="true" attribute and execute the same request with SoapUI, remote destination gets successfully created.

One approach is to remove those unwanted xml nodes. But as SOAP request is generated by the Proxy, we do not have control on it.

Any body knows how to resolve this issue?

1 Reply 1

bmennenga
Level 1
Level 1

I ran in to the same issue (using PHP, CURL instead).  When creating a Remote Destination for a Remote Profile the AXL schema auto inserted "dualModeDeviceName" nil setting in the response and generated the error regardless of the value or no value set in the field.  I had to edit the 10.5 AXLsoap.xsd file.  Under the XRemoteDestination -> dualModeDeviceName I set the minOccurs setting from 1 to 0.  Now AXL schema doesn't inject this setting into the response and everything builds correctly.