I am trying to invoke a web service with coldfusion that takes and returns complex types. I have been successful with all but 1 of the web service methods.
The problem is that I'm unsure how a create a CF structure that can hold a value and attribute and outlined below: <?xml version="1.0" encoding="UTF-8"?> <BsSearchEstabsRQ xmlns="http://www.bedsearcher.co.uk/Bs/2007/01"> <POS ShortName="CompanyName"/> <EstabCriteria> <SearchArea> <Town>Huddersfield</Town> <Radius Unit="Km">10</Radius> </SearchArea> <Stay FromDate="2008-01-30" Nights="1"/> <RoomQuantity>1</RoomQuantity> </EstabCriteria> </BsSearchEstabsRQ> The Radius element above contains both the value of 10 and the attribute Unit with a value of Km. The CF structure below throws an 'You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.' error. <cfscript> strBsSearchEstabsRQ = StructNew(); strBsSearchEstabsRQ.POS.ShortName = "CompanyName"; strBsSearchEstabsRQ.EstabCriteria.SearchArea.Town = "Huddersfield"; strBsSearchEstabsRQ.EstabCriteria.SearchArea.Radius = "10"; strBsSearchEstabsRQ.EstabCriteria.SearchArea.Radius.Unit = "Km"; strBsSearchEstabsRQ.EstabCriteria.Stay.FromDate = "2008-01-30"; strBsSearchEstabsRQ.EstabCriteria.Stay.Nights = "1"; strBsSearchEstabsRQ.EstabCriteria.RoomQuantity = "1"; </cfscript> Thanks is advance Stewart ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296244 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

