0
Hi, I’m trying to develop a function that generates only the XML string and not XML.
I am trying to connect on a Webservice that requires the following requirements:
user, password, passwordAgency and Xmlrequest.
The Xmlrequest are the parameters and methods I will call in the webservice
These 4 requirements I pass by soapcliente as follows:
array('usuarioCliente'=> $this->user,
'senhaCliente' => $this->password,
'codigoAgencia' => $this->agencyCode,
'xmlRequest' => $dados //parametros e metodos de todo o webservice
)
the problem is that the $data must go in XML string format, without appearing the 'xml version="1.0"' inside xmlRequest, if it appears the Webservice complains of the parameters and I am not able to develop a function that transforms the PHP keys into STRING XML
It would be good [Edit] the question and add the part you currently use to generate XML, then it is easier to help.
– Bacco
As it has to be the output of your XML string, exactly?
– Ivan Ferrer