我有一个在线信任联盟xsd,我想用php soap客户端进行解析。 我可以使用
生成正常xml结构的soap参数`$params['OTA_HotelAvailRQ']['AvailRequestSegments']['AvailRequestSegment ']['Criterion ']['ChainCode'] = $chain_code`;
但是我如何为这个OTA标准xsds生成参数 见下面的例子:
<OTA_HotelAvailRQ xmlns="http://www.opentravel.org/OTA/2003/05" AvailRatesOnly="true" EchoToken="Single" ExactMatchOnly="true" PrimaryLangID="EN" RateDetailsInd="true" RateRangeOnly="true" RequestedCurrency="GBP" SummaryOnly="true" Version="6.000" OnRequestInd="true">
<AvailRequestSegments>
<AvailRequestSegment InfoSource="Distribution">
<HotelSearchCriteria AvailableOnlyIndicator="true">
<Criterion ExactMatch="true">
<HotelRef ChainCode="CH" HotelCityCode="HCC" HotelCode="CHHCC"></HotelRef>
<StayDateRange Start="2013-12-20" End="2013-12-25"/>
<RoomStayCandidates>
<RoomStayCandidate Quantity="2">
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="2"/>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
</Criterion>
</HotelSearchCriteria>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
我只需要一点指导。