Soap PHP : double XML tag -


hye

i'm trying use webservice soap in php. soapvar creates dom xml double xml tag

my code :

$xmlcontent = '<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:com="http://schemas.datacontract.org/2004/07/commun.metier"> <soapenv:header/> <soapenv:body>     <tem:senddata> ....'; $soapclient = new soapclient("url of wsdl", array('trace' => 1, 'location' => 'url of service', 'uri' => 'url of service')); $myxml = new soapvar($xmlcontent, xsd_anyxml);  try {         $result = $soapclient->__soapcall("senddata", array('senddata' => $myxml));     } catch (exception $e) {         var_dump($e);     } 

the problem have exception bad request because xml i'm sending haves 2 xml tags , soap enveloppe :

<?xml version="1.0" encoding="utf-8"?> <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/"> <soap-env:body><?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:com="http://schemas.datacontract.org/2004/07/commun.metier"> <soapenv:header/> <soapenv:body>     <tem:senddata> 

how can cancel double tag ?

thanks


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -