5
Well I have done everything I knew but is giving an error saying xmlns is not absolute. I have checked the xml and is correct now when
simplexml_load_string(): namespace Warning : xmlns: URI Cangooroo.Webservice.V2.Operator is not Absolute
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<createClientResponse xmlns="http://v2.services.cangooroo.net/">
<createClientResult>
<ClientID xmlns="Cangooroo.Webservice.V2.Operator"></ClientID>
<ClientCode xmlns="Cangooroo.Webservice.V2.Operator"></ClientCode>
<CompleteName xmlns="Cangooroo.Webservice.V2.Operator">xxxx</CompleteName>
<Address xmlns="Cangooroo.Webservice.V2.Operator">yyy</Address>
<Phone1 xmlns="Cangooroo.Webservice.V2.Operator">(11)11111-111</Phone1>
<Email xmlns="Cangooroo.Webservice.V2.Operator">[email protected]</Email>
<NotificationEmail xmlns="Cangooroo.Webservice.V2.Operator">[email protected]</NotificationEmail>
<PaymentType xmlns="Cangooroo.Webservice.V2.Operator"></PaymentType>
<CanSeeVoucher xmlns="Cangooroo.Webservice.V2.Operator"></CanSeeVoucher>
<CityName xmlns="Cangooroo.Webservice.V2.Operator"></CityName>
<CountryName xmlns="Cangooroo.Webservice.V2.Operator"></CountryName>
<BaseId xmlns="Cangooroo.Webservice.V2.Operator">0</BaseId>
<BaseName xmlns="Cangooroo.Webservice.V2.Operator" />
<ExternalReference xmlns="Cangooroo.Webservice.V2.Operator"></ExternalReference>
</createClientResult>
</createClientResponse>
</soap:Body>
</soap:Envelope>
Well according to the documentation this would be one of the ways but this error can be repeated for the rest and their documentation is different from what I get in return....
$retorno = simplexml_load_string($xml_retorno);
In this way I accept suggestions.
opa! the Soap client I switched for a request in Curl and then it worked , really was a chaos kkk
– Gustavo Castro