cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
2196
Views
0
Helpful
3
Replies

AXL SOAP Hunt Pilot Members

softwareguy
Level 1
Level 1

Hello all,

Looking for a bit of help please

 

I would like get the details from CUCM page about members of Hunt Pilots using AXLtoolkit  in SOAPUI with API 11.5.

 

I would like to load a list of all members/users who are apart of a particular Hunt Pilot such as "35551". I have tried to use the getHuntList but I keep getting a fault string saying 35551 not found but yet I can load the hunt pilots using listHuntPilot using wildcard search criteria. 

 

my ultimate aim here is to count the list of members/users in a given group and see those members as a list. 

 

I am still very new to the Cisco AXL Soap request so thank you for your patients while I learn.

as always thank you for any help as it is much appreciated. 

1 Accepted Solution

Accepted Solutions

Sorted it

this loads all by groups 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:listLineGroup>
         <searchCriteria>
            <name>%</name>
         </searchCriteria>
         <returnedTags>
            <name/>
         </returnedTags>
      </ns:listLineGroup>
   </soapenv:Body>
</soapenv:Envelope>

then this lists all members of a given group

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:getLineGroup>
         <name>35551<name/>
         <returnedTags>
            <members>
               <member>
                  <directoryNumber>
                     <pattern/>
                  </directoryNumber>
               </member>
            </members>
            <name/>
         </returnedTags>
      </ns:getLineGroup>
   </soapenv:Body>
</soapenv:Envelope>

This is all I needed, hope this helps sombody else 

View solution in original post

3 Replies 3

npetrele
Cisco Employee
Cisco Employee

Please post the exact XML you're sending as a request so we can take a look at it.  Thanks!

this is what i have tried to use

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:getHuntList>
         <name>35551</name>
         <returnedTags>
            <description/>
            <name/>
         </returnedTags>
      </ns:getHuntList>
   </soapenv:Body>
</soapenv:Envelope>

and this is the reply I get

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
	<soapenv:Body>
		<soapnv:Fault>
			<faultcode>soapnv:server</faultcode>
			<faultstring>Item not valid: The specified 35551 was not found</faultstring>
			<detail>
				<axlError>
					<axlcode>5007</axlcode>
					<axlmessage>Item not valid: The specified 35551 was not found</axlmessage>
					<request>getHuntList</request>
				</axlError>
			</detail>
		</soapnv:Fault>
	</soapenv:Body>
</soapenv:Envelope>   

I am not sure that getHuntList is the thing I need?

thank you again for any and all help

Sorted it

this loads all by groups 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:listLineGroup>
         <searchCriteria>
            <name>%</name>
         </searchCriteria>
         <returnedTags>
            <name/>
         </returnedTags>
      </ns:listLineGroup>
   </soapenv:Body>
</soapenv:Envelope>

then this lists all members of a given group

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:getLineGroup>
         <name>35551<name/>
         <returnedTags>
            <members>
               <member>
                  <directoryNumber>
                     <pattern/>
                  </directoryNumber>
               </member>
            </members>
            <name/>
         </returnedTags>
      </ns:getLineGroup>
   </soapenv:Body>
</soapenv:Envelope>

This is all I needed, hope this helps sombody else