Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <OGHeader transactionID="000032" primaryLangID="E" timeStamp="2008-12-09T09:55:16.3618750-05:00" xmlns="http://webservices.test.com/og/4.3/Core/">
      <Origin entityID="OWS" systemType="WEB" />
      <Destination entityID="TI" systemType="ORS" />
    </OGHeader>
  </soap:Header>
  <soap:Body>
    <AvailabilityRequest xmlns:a="http://webservices.test.com/og/4.3/Availability/" xmlns:hc="http://webservices.test.com/og/4.3/HotelCommon/" summaryOnly="true" xmlns="http://webservices.test.com/ows/5.1/Availability.wsdl">
      <a:AvailRequestSegment availReqType="Room" numberOfRooms="1" totalNumberOfGuests="1" totalNumberOfChildren="0">
        <a:StayDateRange>
          <hc:StartDate>2013-10-05T00:00:00.0000000-05:00</hc:StartDate>
          <hc:EndDate>2013-10-06T00:00:00.0000000-05:00</hc:EndDate>
        </a:StayDateRange>
        <a:HotelSearchCriteria>
          <a:Criterion>
            <a:HotelRef chainCode="AXA" hotelCode="AXAMUM" />
          </a:Criterion>
        </a:HotelSearchCriteria>
      </a:AvailRequestSegment>
    </AvailabilityRequest>
  </soap:Body>
</soap:Envelope>



with php i want to create request , that xml should look like this, i am using web service test tool and its working fine while i post below xml to it, i just want to know i can i create soap request exactly like this ?


i am using nusoap, but in its http://www.scottnichol.com/nusoapintro.htm examples basics are only given how can i pass multidiamentional parameters like in this xml staydaterange, startdate,enddate ?

OR
can i pass string as a SOAP Request ?
Posted
Updated 11-Sep-13 1:09am
v6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900