pp108 : Publish

Publish

This Web service operation is used to publish events that occur in Process Platform.

SOAP Request

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Body>
        <Publish xmlns="http://schemas.cordys.com/1.0/eventservice">
            <subject>New User Added</subject>
            <event>
                <User xmlns="http://schemas.cordys.com/user">
                    <EmployeeID>1005 </EmployeeID>
                    <EmployeeName>Alex Smith</EmployeeName>
                    <Role>Developer</Role>
                    <Phone>+91-040-66666666</Phone>
                    <Status>User Successfully Added</Status>
                </User>
            </event>
            <synchronous>true</synchronous>
        </Publish>
    </SOAP:Body>
</SOAP:Envelope>

Request Parameters

Parameter

Description

subject

Refers to the subject that has to be published.

event

Indicates the event to be published.

synchronous

Optional Boolean value that indicates whether an acknowledgement is required for the message sent; the default value is 'false'.


Note

  • When a publish request is sent to gateway without using the event service library, it should set the subject as the messageId in the gateway URL.
    Example: For the above request the gateway URL should be com.eibus.web.soap.Gateway.wcp?messageId=New User Added.
  • For information on sending SOAP requests, refer to Working with SOAP Requests and Responses.