Hi

I want to send the following XMl through HTTP Client as a POST


            $XMLDATA  = '<?xml version="1.0" encoding="ISO-8859-1"?>';
            $XMLDATA .= '<ResponseService Version="2.3">';
            $XMLDATA .= "<Header>";
            $XMLDATA .= "<Partner>test</Partner>";
            $XMLDATA .= "<Password>test</Password>";
            $XMLDATA .= "<Company>test</Company>";
            $XMLDATA .= "</Header>";
            $XMLDATA .= "<ResponseList>";
            $XMLDATA .= "<Response>";
            $XMLDATA .= "<TransactionID>99</TransactionID>";
            $XMLDATA .= "<OriginatingNumber>12345</OriginatingNumber>";
            $XMLDATA .= "<Time>" . date('YmdHi') . "</Time>";
            $XMLDATA .= "<Data>" . $message . "</Data>";
            $XMLDATA .= "<Destination>" . $destination . "</Destination>";
            $XMLDATA .= "<Operator>23433</Operator>";
            $XMLDATA .= "</Response>";
            $XMLDATA .= "</ResponseList>";
            $XMLDATA .= "</ResponseService>";

            $client->setParameterPost(array('XMLDATA' => $XMLDATA));

On the other end I SIMPLE XML this

but I get load of errors due to HTTP client urlencoding and addingslashes.

If it is urlencoding why does it need to addslashes?

anyway to get round this ?

Cheers

Ian

Reply via email to