hi

apologies if this is not the correct list...

i'm trying to send dataforms, encapsulated in a <message>. none of the
clients (spark 2.0.4, kopete 0.9.0, psi 0.10, Coccinella 0.95.15) i've
tested seems to work, although the XEP do indicate that this should be
possible.

i've also encapsulated the dataform in an IQ. of the clients i've tested
only Coccinella returned a "feature-not-implemented" error. no
indication of error/success from any of the other clients.

example packets:
<iq type="get" id="test1" from="poll.host" to="[EMAIL PROTECTED]">
  <x xmlns="jabber:x:data" type="form">
    <title>Test poll</title>
    <instructions/>
    <field type="list-single" label="Do you enjoy your work?"
var="question1">
      <option label="Yes">
        <value>Yes</value>
      </option>
      <option label="No">
        <value>No</value>
      </option>
    </field>
  </x>
</iq>

and as a <message>:
<message type="chat" from="poll.host" to="[EMAIL PROTECTED]">
  <thread>test1</thread>
  <x xmlns="jabber:x:data" type="form">
    <title>Test poll</title>
    <instructions/>
    <field type="list-single" label="Do you enjoy your work?"
var="question1">
      <option label="Yes">
        <value>Yes</value>
      </option>
      <option label="No">
        <value>No</value>
      </option>
    </field>
  </x>
</message>

the idea with the above is to develop a general poll/questionnaire type
service.

regards
roelof.

Reply via email to