php - SoapClient: Add NS to XML node -
i have complicated xml need send on soapclient. i trying "correct" way sending array of params request. here example of current array: $params = array("testrequest" => array("nodeone" => "value1", "nodetwo" => "value2")); it makes xml this: <testrequest> <nodeone>value1</nodeone> <nodetwo>value2</nodetwo> </testrequest> however, need add ns "testrequest" part. needs this: <ord:testrequest> <nodeone>value1</nodeone> <nodetwo>value2</nodetwo> </ord:testrequest> i have pulled hair out trying think of, searched google , stack no avail. , yes, have tried in array typing, "ord:testrequest". if soapclient guru in php , help, forever thankful. okay, after headache... easiest way accomplish not way prefer. i ended manually writing xml so: $xml = '<ord:testrequest> <nodeone...