CreateContacts

Adds one or more new contacts. On a WebEx service site, contacts can be added in My Contacts of My WebEx.

Request

The sample XML shows an example of a request to add two new contacts.

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:serv="http://www.webex.com/schemas/2002/06/service">
    <header>
        <securityContext>
            <webExID>hostid</webExID>
            <password>hostpassword</password>
        </securityContext>
    </header>
    <body>
        <bodyContent
            xsi:type="java:com.webex.service.binding.ep.CreateContacts">
            <contact>
                <name>Some Body</name>
                <email>some@body.com</email>
            </contact>
            <contact>
                <name>Another Body</name>
                <email>another@body.com</email>
            </contact>
        </bodyContent>
    </body>
</serv:message>

The following schema diagram shows the structure of the elements in the createContacts request message.

Collapse Figure 4-1 • Schema diagram of createContacts
Drilldown into validateFormat Drilldown into contact Drilldown into bodyContentTypeXSD Diagram of createContacts

Response

The sample XML shows an example of a possible response to the preceding XML request document.

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service"
    xmlns:com="http://www.webex.com/schemas/2002/06/common"
    xmlns:ep="http://www.webex.com/schemas/2002/06/service/ep">
    <serv:header>
        <serv:response>
            <serv:result>SUCCESS</serv:result>
            <serv:gsbStatus>PRIMARY</serv:gsbStatus>
        </serv:response>
    </serv:header>
    <serv:body>
        <serv:bodyContent xsi:type="ep:createContactsResponse"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ep:contactID>123456</ep:contactID>
            <ep:contactID>123457</ep:contactID>
        </serv:bodyContent>
    </serv:body>
</serv:message>

The following schema diagram shows the structure of the elements in the createContactsResponse message.

Collapse Figure 4-2 • Schema diagram of `createContactsResponse`
Drilldown into contactID Drilldown into bodyContentTypeXSD Diagram of createContactsResponse