UploadEventImage

Allows the event host to add an image to an event description. An event session can have one image at most.

Note The image file should be in GIF or JPG format, approximately 75x38 pixels in dimensions, and less than 100 KB in file size.

Request

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

Collapse Figure 7-18 • Schema diagram for uploadEventImage
Drilldown into imageData Drilldown into imageType Drilldown into sessionKey Drilldown into bodyContentType XSD Diagram of uploadEventImage

The sample XML document uploads an image file to the event session with the sessionKey value of 46401604. Be sure to provide a
valid value for your website.

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <header>
        <securityContext>
            <siteName>acme</siteName>
            <webExID>hostid@acme.com</webExID>
            <password>hostpassword</password>
        </securityContext>
    </header>
    <body>
        <bodyContent xsi:type="java:com.webex.service.binding.event.UploadEventImage">
            <sessionKey>46401604</sessionKey>
            <imageType>JPG</imageType>
            <imageData>Base64Binary encoded data of JPG/GIF image</imageData>
        </bodyContent>
    </body>
</serv:message>

For descriptions of the global elements in the security context of the header, see Global Request Elements in Security Context.

For descriptions of the non-global elements, see Elements in the Event Session Service.

Response

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

Collapse Figure 7-19 • Schema diagram for uploadEventImageResponse
Drilldown into bodyContentType XSD Diagram of uploadEventImageResponse

The sample XML document shows an example of a possible response to the preceding 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:event="http://www.webex.com/schemas/2002/06/service/event">
    <serv:header>
        <serv:response>
            <serv:result>SUCCESS</serv:result>
            <serv:gsbStatus>PRIMARY</serv:gsbStatus>
        </serv:response>
    </serv:header>
    <serv:body>
        <serv:bodyContent xsi:type="event:UploadEventImageResponse"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    </serv:body>
</serv:message>

The result and exceptionID global elements allow you to confirm that an instantiation request was successful. See Global Response Elements Showing Results and Errors.