> I need to pass it a complex object as defined in the SOAP: > <CheckAvailabilityRQ> > <Credentials> > <LogonID>22352345234</LogonID> > <Password>234523452354</Password> > <DataPath>235234523452</DataPath> > <DatabaseID>52345234523</DatabaseID> > </Credentials> > <AvailabilityRequest> > <ArrivalDate>2009-08-20</ArrivalDate> > <DepartureDate>2009-08-22</DepartureDate> > <RoomType>single</RoomType> > <People1>2</People1> > <People2>0</People2> > <People3>0</People3> > <People4>0</People4> > </AvailabilityRequest> > </CheckAvailabilityRQ> > > How do I go about building this object in CF?
Build three CFCs, CheckAvailabilityRQ, Credentials, AvailabilityRequest. Represent the properties of Credentials and AvailabillityRequest as simple values using CFPROPERTY; those CFCs are basically just wrappers for structures, with a bit of additional documentation. Populate an instance of CheckAvailabilityRQ with an instance of Credentials and AvailabilityRequest, and that's the argument you'll send to the remote service. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324862 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

