I am consuming a service from PHP and am also using SOAP UI to test.
Both Soap UI and consuming the service in the browser works fine however my client is saying that when we run this in the browser it is not hitting BizTalk. However when we run it from SOAP UI it is hitting BizTalk.
I have hidden the customer urls
My code is below.
$xml_data ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns0:FacilityAndProgramBookings xmlns:ns0="<<<<<Customer URL>>>>>>">
<BookingTransactions>
<Action>A</Action>
<Venue>VenueV</Venue>
<Event_Type>Event_</Event_Type>
<Event_Category>Eve</Event_Category>
<StartDateTime>1999-05-31T13:20:00.000-05:00</StartDateTime>
<EndDateTime>1999-05-31T13:20:00.000-05:00</EndDateTime>
<BookingID>BookingIDBookingIDBo</BookingID>
<TransactionID>TransactionIDTransactionIDTransactionIDTransaction</TransactionID>
<TransactionDateTime>1999-05-31T13:20:00.000-05:00</TransactionDateTime>
<Amount>10.4</Amount>
</BookingTransactions>
</ns0:FacilityAndProgramBookings>
</soapenv:Body>
</soapenv:Envelope>';
$URL = "<<<<<URL>>>>>>>";
$ch = curl_init($URL);
curl_setopt($ch, CURLOPT_MUTE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
echo"$output";
curl_close($ch);