So I am trying to include the following XML in my SOAP request:
<Responses>
<Response>
<QuestionAnswerID>someint</QuestionAnswerID>
<QuestionID>someint</QuestionID>
</Response>
<Response>
<QuestionAnswerID>someint</QuestionAnswerID>
<QuestionID>someint</QuestionID>
</Response>
</Responses>
I looked at this posting, which is vaguely on the same topic, but it produces output like so:
object(stdClass)#1 (1) {
["Responses"]=>
object(stdClass)#2 (1) {
["Response"]=>
array(2) {
[0]=>
object(stdClass)#3 (2) {
["QuestionAnswerID"]=>
int(someint)
["QuestionID"]=>
int(someint)
}
[1]=>
object(stdClass)#4 (2) {
["QuestionAnswerID"]=>
int(someint)
["SurveyQuestionID"]=>
int(someint)
}
}
}
}
The problem with that is that the arrays now have indices, which the web service I'm calling appears to not like. Any way I can generate something like the above XML?
TIA.