I need help to receive SOAP request. I have following SOAP request :
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<tem:ApplyTransactionRequest xmlns:tem="http://tempuri.org/"
xmlns:at="http://cps.huawei.com/cpsinterface/goa/at"
xmlns:goa="http://cps.huawei.com/cpsinterface/goa">
<at:Header>
<goa:CommandID>CheckInformation</goa:CommandID>
<goa:Version>1.0</goa:Version>
<goa:LoginID>NGOLoanPay</goa:LoginID>
<goa:Password>e7L/g2/isbOu5Q6fHW3CAYtWgGYv8Av64BQet3WBQpmraV3HTzvlMBdQzGx056gY</goa:Password>
<goa:Timestamp>20220110111810</goa:Timestamp>
<goa:ConversationID>9DJ906XRUD</goa:ConversationID>
<goa:HeaderExtension>
<goa:Parameter>
<goa:Key>name</goa:Key>
<goa:Value>cps</goa:Value>
</goa:Parameter>
</goa:HeaderExtension>
</at:Header>
<at:Body>
<at:Parameters>
<goa:Parameter>
<goa:Key>IDNumber</goa:Key>
<goa:Value>220214000126</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>FullName</goa:Key>
<goa:Value>MAYA</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>InquiryType</goa:Key>
<goa:Value>01</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>InquiryMode</goa:Key>
<goa:Value>02</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>FirstName</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>InitiatorID</goa:Key>
<goa:Value>8801301712997</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>ChannelCode</goa:Key>
<goa:Value>10</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>channelCode</goa:Key>
<goa:Value>10</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>LastName</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>PartnerID</goa:Key>
<goa:Value>MFI</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>ChkAmount</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>EndMonth</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>ExtendedParmeter1</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>SubID</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>AccountID</goa:Key>
<goa:Value>201004000589</goa:Value>
</goa:Parameter>
<goa:Parameter>
<goa:Key>StartMonth</goa:Key>
<goa:Value></goa:Value>
</goa:Parameter>
</at:Parameters>
</at:Body>
</tem:ApplyTransactionRequest>
</soapenv:Body>
</soapenv:Envelope>
When I trying to receive that using the following code I am enable to read it:
function CheckInfoAPI()
{
$soap_request = file_get_contents("php://input");
$parser=xml_parser_create();
xml_parse_into_struct($parser,$soap_request,$request_array);
xml_parser_free($parser);
var_dump($parser);
}
Is it correct?
I am trying to resolved this. But It return
resource(49) of type (Unknown)
in the result.
So how to get the requestor's Login, Password and the Creation Begin Date? I have actually build the response, we've test it and when they send me the request they got the response. I'm just sending the response without reading the request, but I have to read it and log in diffrent users and send different response. So a real example with the request I've posted above will be much much appreciated.