Hi again,
it looks like we have trouble reading the sent xml data on the server.
We currently send:
$xml.= '<myData attr="ID”>'
$xml.= '<data attr="'.id('S101', $n+1).'">'.htmlspecialchars(value(id('S101', $n+1))).'</data>\n'
$xml.= '<data attr="'.id('S102', $n+1).'">'.htmlspecialchars(value(id('S102', $n+1))).'</data>\n'
$xml.= '</myData>'
$answer = sendXML('http://dd.virtualpsyclab.net/ddgem/ddgem', $xml)['children'][1];
and what comes in at the other end starts with:
<?xmlversion="1.0"encoding="UTF-8"?><myDataattr="ID">124<saveEnvsave="false"/><dataattr="S101_01">2</data>"\n".break<dataattr="S101_02">2</data>"\n".break<dataattr="S101_03">2</data>"\n"
We think that because of the missing spaces, the receiving end cannot properly read it (and throws back a response that is given when the responses are "unreasonable":
STOP -99 -99 -99 ....
Two questions:
1) is there anything you see in our sent information that needs to be different, e.g. quotes/types of quotes?
2) is there a quicker way to debug other than always running all the questions before getting to the sending stage (i.e. send random data or so)?
Thank you for your help.
Hedwig