<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parsing Response from CIM in php in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parsing-Response-from-CIM-in-php/m-p/38921#M21251</link>
    <description>&lt;P&gt;It doesn't look like you are using our SDK, so I can't really guess what is going on in the parse_return method that you referenced. If you would like to handle the XML directly, I would recommend converting it to a simpleXML object. You can then access the profile ID directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$response = simplexml_load_string($response,'SimpleXMLElement', LIBXML_NOWARNING)&lt;BR /&gt;$customerProfileId = $response-&amp;gt;customerProfileId&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Feb 2014 19:53:01 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2014-02-04T19:53:01Z</dc:date>
    <item>
      <title>Parsing Response from CIM in php</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parsing-Response-from-CIM-in-php/m-p/38859#M21220</link>
      <description>&lt;P&gt;I am trying to parse the transaction ID in php from the xml response given after createCustomerProfileRequest. This is the l code I am using.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;echo $response;&lt;BR /&gt;&lt;BR /&gt;list ($refId, $resultCode, $code, $text, $customerProfileId) = parse_return($response);&lt;BR /&gt;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;".$customerProfileId."&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;When the response is echoed I can find the customer ID at the very end, but $customerProfileId doesn't return anything.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;-Mucle6&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2014 19:34:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parsing-Response-from-CIM-in-php/m-p/38859#M21220</guid>
      <dc:creator>mucle6</dc:creator>
      <dc:date>2014-02-01T19:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Response from CIM in php</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parsing-Response-from-CIM-in-php/m-p/38921#M21251</link>
      <description>&lt;P&gt;It doesn't look like you are using our SDK, so I can't really guess what is going on in the parse_return method that you referenced. If you would like to handle the XML directly, I would recommend converting it to a simpleXML object. You can then access the profile ID directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$response = simplexml_load_string($response,'SimpleXMLElement', LIBXML_NOWARNING)&lt;BR /&gt;$customerProfileId = $response-&amp;gt;customerProfileId&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2014 19:53:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Parsing-Response-from-CIM-in-php/m-p/38921#M21251</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2014-02-04T19:53:01Z</dc:date>
    </item>
  </channel>
</rss>

