cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

CUPAPI (SOAP). Delete whole group from Contact List of Jabber

AAkivkin1982
Beginner
Beginner

Hello!

I have Cisco Unified Communication Manager IM & Presence Services 10.0

I trying to manage Jabber Contact List through SOAP interface.

I use SOAP interface version 7.0 (if this is important)

I read Cookbook Developer Guide 10.5, and now I can do:

  • Add contact

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:cisco:epas:soap">

<soap:Header>

<urn:session-key>76a7956c-065a-fb9c-becb-237295376e6f</urn:session-key>

</soap:Header>

<soap:Body>

<urn:add-contact>

<urn:group name="IT">

<urn:persona-id domain="rvsco.ru">vsmagin</urn:persona-id>

</urn:group>

</urn:add-contact>

</soap:Body>

</soap:Envelope>

  • Delete contact

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:epas="urn:cisco:epas:soap"

xmlns="urn:cisco:epas:soap">

<soapenv:Header>

<session-key>76a7956c-065a-fb9c-becb-237295376e6f</session-key>

</soapenv:Header>

<soapenv:Body>

<delete-contact>

<group name="IT">

<persona-id>imeshcheryakova</persona-id>

</group>

</delete-contact>

</soapenv:Body>

</soapenv:Envelope>

  • List groups and contacts

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:cisco:epas:soap">

<soap:Header>

<urn:session-key>$SessionKey</urn:session-key>

</soap:Header>

<soap:Body>

<urn:get-all-config>

<urn:contact-list/>

</urn:get-all-config>

</soap:Body>

</soap:Envelope>

  • Delete group

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:cisco:epas:soap">

<soap:Header>

<urn:session-key>76a7956c-065a-fb9c-becb-237295376e6f</urn:session-key>

</soap:Header>

<soap:Body>

<urn:delete-group>

<urn:group name="IT"></urn:group>

</urn:delete-group>

</soap:Body>

</soap:Envelope>

But I can not delete whole group, only nested contacts in this group - after this operation group remains in Jabber Contact List as empty.

How delete empty group from Jabber Contact List?

1 ACCEPTED SOLUTION

Accepted Solutions

I tried it here and it worked fine for me.  I deleted all contacts in a group.  When I restarted my client, the contacts and group were gone.  I'm using SoapUI and EPASSoap with a 10.5.1 Cisco IM&P server. I'm using the 10.5 WSDL for EPASSoap.

This is the documentation I use:  https://developer.cisco.com/fileMedia/download/a2ce9071-4c3b-4ad5-adaa-095153ea1b4c

I believe there is a later version, but not much has changed.

View solution in original post

6 REPLIES 6

npetrele
Cisco Employee
Cisco Employee

There is no Delete Group operation.  Instead, delete all the contacts in the group, and the group should automatically be deleted after you've deleted the last contact in it.  You may have to restart your Jabber client to see the change.

Unfortunately in my case it is not so.

I restarted my client Cisco Jabber 5 times, and empty group still exist in Jabber Contact List.

I tried it here and it worked fine for me.  I deleted all contacts in a group.  When I restarted my client, the contacts and group were gone.  I'm using SoapUI and EPASSoap with a 10.5.1 Cisco IM&P server. I'm using the 10.5 WSDL for EPASSoap.

This is the documentation I use:  https://developer.cisco.com/fileMedia/download/a2ce9071-4c3b-4ad5-adaa-095153ea1b4c

I believe there is a later version, but not much has changed.

Thanks you.

So I need to upgrade my CUCM IM & Presence from version  10.0 to version 10.5

AAkivkin1982
Beginner
Beginner

Do you know, possibly manage Jabber Contact List through Informix databases from IM & Presence server?

AAkivkin1982
Beginner
Beginner

May be you have good programming book\guide about CUCM IM & Presence?

I interesting about AXL for CUCM IM & Presence and about database Informix.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: