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

getEnterprisePhoneConfigRes

rcfoltz
Level 5
Level 5

Anyone have any guidance on getting the Enterprise Phone Configuration data from CallManager 12.5? I'm having a difficult time getting the following code snippet to work;

 

GetEnterprisePhoneConfigReq req = new GetEnterprisePhoneConfigReq();

try {
GetEnterprisePhoneConfigRes res = axlPort.getEnterprisePhoneConfig(req);
JAXBElement<XVendorConfig> enterprisePhoneConfig = res.getReturn().getEnterprisePhoneConfig().getVendorConfig();
//String name = enterprisePhoneConfig.getAny();

System.out.println(enterprisePhoneConfig.getName().getNamespaceURI());

} catch (Exception e) {
System.out.println(e);
}

I'm not getting any errors, I'm just not getting any data, or I'm not accessing it correctly. I am unfamiliar with the JAXBElement<XVendorConfig> pattern. 

 

Any hint in the right direction would be greatly appreciated!

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

I got this working, I think...

Check out the 'getEnterprisePhoneConfig.java' sample from this project: CiscoDevNet/axl-java-samples