Question
· Sep 12, 2017

Suppress xsi:type in SOAP Client

I have an xml file that it send over a SOAP client. The following is the soap log.  

How do I get rid of the namespace "s0:" from the SOAP Body

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://www.w3.org/2003/05/soap-envelope'>
  <SOAP-ENV:Header>
              ......
   </SOAP-ENV:Header>
​  <SOAP-ENV:Body>
   <OTA_HotelRatePlanNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:s01="http://www.opentravel.org/OTA/2003/05" xsi:type="s01:OTA_HotelRatePlanNotifRQType" MessageContentCode="8" Version="1" >
    <RatePlans HotelCode="INTDEM">
     <RatePlan>
      <RatePlanType RatePlanCode="xxxx" RatePlanType="10">
      </RatePlanType>
     </RatePlan>
    </RatePlans>
   </OTA_HotelRatePlanNotifRQ>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Regards

Anil

Discussion (2)0
Log in or sign up to continue