Author Message
Chia-ShenLee
Joined: Apr 9, 2015
Messages: 10
Offline
Hi,

I am trying to use Application Enablement Services Web Services - System Management Service to retrieve all extensions. Where can I find examples of retrieving extensions?

Thanks.

Best,
Chia-Shen
MichaelHerman2
Joined: Jan 9, 2014
Messages: 102
Offline
AES has a builit-in SMS test app you can experiment with to test various requests, including "list station". To access the test app, navigate to https://AES_IP/smsxml/smsxml_test.php, where "AES_IP" is the IP address of your AES server. You want to specify the "Station" model and "list" operation.

method=submitRequest
login=yourlogin@cmIPaddress
password=yourpassword
return=result
[parameters1]
modelFields=<?xml version="1.0"?> <modelFields> <Station/> </modelFields>
operation=list
objectname=
qualifier=

This sample app may also be of interest to you:
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/sample_applications/sms_web_service/list_stations/index.gsp
  • [Thumb - liststation.png]
[Disk] Download
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Online
Note that on a live switch 'list stations' can return thousands of records causing the query operation through SMS to timeout. It is required that the 'count' option to list stations be used to restrict the number of records that are returned to the application. The sample app leverages the count option. The documentation for the SMS SDK also discusses this requirement. The use of the count option on other models is also necessary if the data set is large (e.g. agents, trunks, etc).
Chia-ShenLee
Joined: Apr 9, 2015
Messages: 10
Offline
Hi All,

I tried to call the web service but the response failed.


Here is the request:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ses="http://xml.avaya.com/ws/session" xmlns:ns="http://xml.avaya.com/ws/SystemManagementService/2008/07/01">
<soapenv:Header>
<ses:sessionID></ses:sessionID>
</soapenv:Header>
<soapenv:Body>
<ns:submitRequest>
<modelFields>
<Station/>
</modelFields>
<operation>list</operation>
<objectname></objectname>
<qualifier></qualifier>
</ns:submitRequest>
</soapenv:Body>
</soapenv:Envelope>


Here is the response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://xml.avaya.com/ws/session" xmlns:ns2="http://xml.avaya.com/ws/SystemManagementService/2008/07/01">

<SOAP-ENV:Header>
<ns1:sessionID>a6c77caf5ae8ba2f6318426c8f5faa85</ns1:sessionID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:submitRequestResponse>
<return>
<result_code>1</result_code>
<result_data/>
<message_text>1 00000000 5bc5 "station" is an invalid entry; please press HELP</message_text>
</return>
</ns2:submitRequestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Could someone help me resolve this? Thanks.

  • [Thumb - sshot-6.png]
[Disk] Download
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Online
have you tried using AE Services' builtin web page for exercising the SMS AE Services interface (it is referenced in the user documentation)? From that compare your SOAP request to that provided by the tool.
Chia-ShenLee
Joined: Apr 9, 2015
Messages: 10
Offline
Hi JohnBiggs,

Yes, I have tried it but the same result.



Best regards,
Chia-Shen
  • [Thumb - sshot-7.png]
[Disk] Download
MichaelHerman2
Joined: Jan 9, 2014
Messages: 102
Offline
Using the same credentials you're using for SMS, are you able to log into CM via a SAT window (e.g. ssh to CM) and execute the "list station" command?
Go to:   
Mobile view