sbakker123
Programmer
I have an php script on an IIS server. It accepts a post, from a site. It then opens a socket on a xxxx port, and passes info thru that port and waits for a response. After it get's a response, it builds an xml string that it sends back to the original poster.
This all works according to plan, when testing without SSL. When we add SSl a couple of wierd things happen.
The XML returned looks like this
If field x is null the tag comes back <tag/>
<queryall>
<field1>data1</field1>
<field2/>
<field3>data3</field3>
</queryall>
Start Code
--------
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" " ;
echo "<Queryall>" ;
WriteXMLOutput("transeq", $retVal, 0,10);
WriteXMLOutput("returncode", $retVal, 10,4);
-------
function WriteXMLOutput($tag, $retval, $start, $len) {
echo "<" .$tag .">" ;
echo substr($retval, $start, $len);
echo "</" .$tag .">" ;
}
-----
end code
thanks
steve
This all works according to plan, when testing without SSL. When we add SSl a couple of wierd things happen.
The XML returned looks like this
If field x is null the tag comes back <tag/>
<queryall>
<field1>data1</field1>
<field2/>
<field3>data3</field3>
</queryall>
Start Code
--------
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" " ;
echo "<Queryall>" ;
WriteXMLOutput("transeq", $retVal, 0,10);
WriteXMLOutput("returncode", $retVal, 10,4);
-------
function WriteXMLOutput($tag, $retval, $start, $len) {
echo "<" .$tag .">" ;
echo substr($retval, $start, $len);
echo "</" .$tag .">" ;
}
-----
end code
thanks
steve