I'm trying to connect to a WebService that requires the following requirements:
user, password, codeAgency and XMLRequest.
The XMLRequest are the parameters and methods that I will call in webservice
These 4 requirements I pass by soapclient 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 the 'xml version="1.0"' within xmlRequest appearing, if it pops up the WebService complains of the parameters and I am not able to develop a function that turn PHP keys into STRING XML