Input and output strings in Sample Webservice Source Code

Questions and answers about Plum Survey

Moderators: support, admin

Input and output strings in Sample Webservice Source Code

Postby wzhang09 » Tue Nov 17, 2009 3:06 pm

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?
wzhang09
 
Posts: 7
Joined: Fri Oct 16, 2009 1:24 pm
Location: Germantown, MD 20876

IVR example of request

Postby support » Tue Nov 17, 2009 3:37 pm

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.
Plum Voice IVR Solutions
IVR Hosting, Systems and Professional Services
Visit: http://www.plumvoice.com
support
 
Posts: 2178
Joined: Mon Jun 02, 2003 4:47 pm
Location: Boston, MA


Return to Plum Survey Q&A

Who is online

Users browsing this forum: No registered users and 1 guest