- 1. Scope
- 2. Config Input
- 3. Data Input
- 4. Example
|
|||||||||||
OPS User Guide
|
Yahoo Instant Messaging Processor
1. Scope
This processor can send and receive Yahoo Instant Messages (IM) from within a Web
application. To use this processor, you need to create a Yahoo account that will act
as the sender. You can send an IM to any Yahoo subscriber. The processor launches a
customizable pipeline when an IM is received. The IM processor has two mandatory
inputs:
<message> <from>john</from> <body>Hello!</body> </message>
2. Config Input
The
3. Data Input
The
4. Example
The following code illustrates the instantiation of the
IMSerializer to send a message to the Yahoo account
<p:processor name="oxf:im" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <session> <login>jani</login> <password>secret</password> <on-message-received>#response-pipeline</on-message-received> </session> </p:input> <p:input name="data"> <message> <to>trove</to> <body>Don't forget me!</body> </message> </p:input> <p:input name="response-pipeline"> <p:config> <p:param name="data" type="input"/> <p:processor name="oxf:null-serializer"> <p:input name="data" href="#data"/> </p:processor> </p:config> </p:input> </p:processor>
|