How to subscribe IP Phone Service to Device Profile through AXL.

Version 1
    This document was generated from CDN thread

    Created by: Ahmad Imtiaz on 10-12-2009 06:43:55 AM
    I am looking for AXL API or SQL Query to subscribe IP Phone Service on Device Profile progrmatically.

    Subject: RE: How to subscribe IP Phone Service to Device Profile through AXL.
    Replied by: Manas Varma on 16-12-2009 09:02:05 AM
    Primariliy in the same way as subscribing services to the profile..
     
      Xphoneprofile phnprof =new Xphoneprofile();
      XSubscribedService ser = new XSubscribedService();
     ser.Item = "Service Name";
     ser.name = "Service Name";
     ser.url = "URL of the service";
     XSubscribedService[] service = new XSubscribedService;
     service.SetValue(ser,0);
     phnprof.services=service;
     
     
    (URL and service can be found out under the device-> Device Setting->Phone Services->"Service" (One which you want to subscribe)
     
     Thanks'
     Manas