Jump to content

AeroProDrive

New Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AeroProDrive

  • Rank
    Newbie
  1. Hi Guys, I have this SOAP message to be parsed using SimpleXML: <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> <isokresponse xmlns="http://tempuri.org/"> <isokresult>1</isokresult> </isokresponse> </soap:body> </soap:envelope> Then I load the XML: $xml = simplexml_load_string($result); I assume I need to register namespace e.g.
  2. I think I found the problem. The @result is of bool type while I was expecting the string from the xml Therefore I changed return $result; to return $result === true ? "true" : "false"; Now it works like a charm Thank you so much
  3. Hello guys, What I do is consuming SOAP Web Service that returns XML data as follows: <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">false</string> Unfortunately the curl returns something that I can't parse to XML and get the value "false" My PHP code is the following: $soap_do = curl_init(); curl_setopt($soap_do, CURLOPT_URL, $url ); curl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true ); curl_setopt($soap_do, CURLOPT_POST, true ); curl_setopt($soap_do, CURLOPT_POSTFIELDS, $soap_request);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.