Code: Select all
<?php
/** * Define POST URL and also payload */
require 'createxml.php';
$xmlResult = simplexml_load_string($result);
echo "xmlresult is ". $xmlResult->asXML();
die();
?>
The screen show the following output
Invalid at the top level of the document. Error processing resource 'myurl'. Line 1, Pos...
xmlresult is <?xml version="1.0"?>
Which is obviously not the full xml I am looking for. However when I go to view source I get
xmlresult is <?xml version="1.0"?>
<REQUEST_GROUP MISMOVersionID="2.1">
<REQUEST LoginAccountIdentifier="testuser">
<KEY _NAME="MemberID" _Value="100"/>
<REQUEST_DATA>
<CREDIT_REQUEST MISMOVersionID="2.1">
<CREDIT_REQUEST_DATA CreditRequestID="CRReq0001" BorrowerID="BorRec0001" CreditReportRequestActionType="Submit" CreditReportType="Consumer" CreditRequestType="Individual">
<CREDIT_REPOSITORY_INCLUDED _EquifaxIndicator="N" _ExperianIndicator="Y" _TransUnionIndicator="N"/>
</CREDIT_REQUEST_DATA>
<LOAN_APPLICATION>
<BORROWER BorrowerID="BorRec0001" _FirstName="EVPAULA" _MiddleName="" _LastName="Consumer" _SSN="376988419">
<_RESIDENCE _StreetAddress="10655 Birch St" _City="Burbank" _State="Ca" _PostalCode="20906"/>
</BORROWER>
</LOAN_APPLICATION>
</CREDIT_REQUEST>
</REQUEST_DATA>
</REQUEST>
</REQUEST_GROUP>
There must be something wrong with this xml. It actually matches up with what I have in my specs from a third party. So I think they must have something wrong. I'm hoping someone can lead me to the problem so I can go to their support people and get the correct format. As we all know tech support often needs alot of help I'm thinking if I can figure this out I will have my answer.