My XML file content is following, And I am sending this content in POST method body =>“RAW”=>“XML(application /XML)” I want to read this file in PHP format so anyone has an idea how to do this?
<?xml version="1.0" ?>
<S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<eb:MessageHeader
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" version="2.0">
<eb:From>
<eb:PartyId type="URI">dhisco.com</eb:PartyId>
</eb:From>
<eb:To>
<eb:PartyId type="URI">groople.com</eb:PartyId>
</eb:To>
<eb:CPAId>HCDContentNotification</eb:CPAId>
<eb:ConversationId>ak-ysjak-en-1588313465517-1071795190</eb:ConversationId>
<eb:Service>groople.com/ws/content/dhisco</eb:Service>
<eb:Action>upsert</eb:Action>
<eb:MessageData>
<eb:MessageId>xq-b5c4-en-1595587064772-3255996551</eb:MessageId>
<eb:Timestamp>2020-07-24T10:37:52.133Z</eb:Timestamp>
</eb:MessageData>
</eb:MessageHeader>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>dhisco</wsse:Username>
<wsse:Password>******</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</S:Header>
<S:Body>
<OTA_HotelDescriptiveContentNotifRQ
xmlns="http://www.opentravel.org/OTA/2003/05" PrimaryLangID="en" Version="8.000">
<HotelDescriptiveContents>
<HotelDescriptiveContent BrandCode="XQ" CurrencyCode="USD" HotelCode="B5C4" HotelName="SLS South Beach Miami" LanguageCode="en" TimeZone="GMT;-5">
<HotelInfo HotelStatus="Bookable" HotelStatusCode="1" LastUpdated="2020-07-24T10:37:52.000Z" WhenBuilt="2012">
<HotelInfo>
</HotelDescriptiveContents>
</OTA_HotelDescriptiveContentNotifRQ>
</S:Body>
</S:Envelope>