We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Input and output strings in Sample Webservice Source Code

Questions and answers about Plum Survey

Moderators: admin, support

Post Reply
wzhang09
Posts: 7
Joined: Fri Oct 16, 2009 12:24 pm
Location: Germantown, MD 20876

Input and output strings in Sample Webservice Source Code

Post by wzhang09 »

Regarding your web service function plumEval(String[] question, String[] answer), we have following questions:


1. If a caller inputs 14 digits(“01234567890123”) on the phone, which parameter will carry the input string? Can you give us a sample soap request in such a case which is similar with the soap in your Sample Webservice Source Code?


2. If we return accepted or rejected, is that case sensitive?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR example of request

Post by support »

The input sting will be an element in the String[] answer array. For IVR example, if you have two questions for IVR, and the second one is the question accepting 14 digits, the request looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  
  xmlns:ns1="urn:http://survey.plumvoice.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  xmlns:ns2="urn:SampleWebservice" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
  <SOAP-ENV:Body> 
    <ns1:plumEval> 
      <question_texts SOAP-ENC:arrayType="xsd:string[2]" xsi:type="ns2:ArrayOfstring"> 
        <item xsi:type="xsd:string">Some other question</item> 
        <item xsi:type="xsd:string">Text of question accepting 14 digits</item> 
      </question_texts> 
      <answers SOAP-ENC:arrayType="xsd:string[2]" xsi:type="ns2:ArrayOfstring"> 
        <item xsi:type="xsd:string">Whatever was answered for question 1</item> 
        <item xsi:type="xsd:string">01234567890123</item> 
      </answers> 
    </ns1:plumEval> 
  </SOAP-ENV:Body> 
</SOAP-ENV:Envelope>
The return string is case sensitive.

Post Reply