Dave, I dug more and here is the aspx.vb file which .NET uses to create the objects:
In the web.config file there is a setting: <appSettings> <add key="IRMPublic.IRMPublic" value="http://irm.resortdata.com/LutsenInterface/IRMPublic.asmx"/> </appSettings> Then in the aspx.vb file: Dim irm As New IRMPublic.IRMPublicMethods Dim CheckAvailabilityRQ As New IRMPublic.CheckAvailability_irmRQ Dim CheckAvailabilityRS As IRMPublic.CheckAvailability_irmRS With CheckAvailabilityRQ .Credentials = New IRMPublic.irmWebSvcCredentials 'loginid/password for testing .Credentials.LogonID = "IRMTest" .Credentials.Password = "1qasw2" 'DataPath dependant on propery installation, for demo use c:/rdp1202/rdp95 .Credentials.DataPath = txtDataPath.Text 'Unique id between 29000-29999 for each session, set in Global.asax .Credentials.DatabaseID = Session("DatabaseID").ToString .AvailabilityRequest = New IRMPublic.irmDatesRoomInfo With .AvailabilityRequest 'Current date in demo files is 03/01/1998 .ArrivalDate = CType(txtArrival.Text, Date) .DepartureDate = CType(txtDeparture.Text, Date) 'Valid room types for demo: DD, Q, QQ, K, KA, PH .RoomType = txtRoom.Text .People1 = CType(ddPeople.SelectedValue, Int32) .People2 = 0 : .People3 = 0 : .People4 = 0 End With End With CheckAvailabilityRS = irm.CheckAvailability(CheckAvailabilityRQ) SO, I am thinking that CFINVOKE will call the method 'CheckAvailability' I will need to pass it the CheckAvailabilityRQ object The CheckAvailabilityRQ object will contain the 'Credentials' and the 'AvailabilityRequest' objects that you gave me insight on how to create via CFCOMPONENT. Once I create the 'Credentials' and 'AvailabilityRequest' objects how do I nest them inside an object called 'CheckAvailabilityRQ'? -----Original Message----- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, July 22, 2009 1:11 PM To: cf-talk Subject: Re: Calling .ASPX.VB from .CFM > SO... if I use CFINVOKE I am not quite sure what to pass in the > CFINVOKEARGUMENT > > Do I attempt to create a large structure and pass it in under > 'CheckAvailability_irmRQ'? I think you'll need a little more than that; you'll need CFCs to represent the objects and you'll need to use CFPROPERTY to name the properties of those objects in a way that the CF WSDL stub builder will be able to map to the original WSDL. For example, a Credentials object: <!--- credentials.cfc ---> <cfcomponent> <cfproperty name="LogonID" type="string" required="yes"> ... other properties go here ... ... code to populate those properties goes here ... </cfcomponent> 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. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:324823 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4