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.