I'm getting closer, and I will get this, when I doI hope others can learn from it. I really appreciate this forum.
So I used CFSCRIPT and created an instance of the web service: <cfscript> irm = CreateObject("webservice", "http://irm.resortdata.com/LutsenInterface/IRMPublic.asmx?wsdl"); </cfscript> Then I used CFDUMP to see it: http://lutsen.steelfusion.com/winter/rates_packages/packages/rdp/rdp/act_cal lWebService.cfm It shows me the methods. I want to use method 'checkAvailability' 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? Top-level: CheckAvailabilityRQ Sub: Credentials Items: logonID: java.lang.String password: java.lang.String dataPath: java.lang.String databaseID: java.lang.String Sub: AvailabilityRequest Items: arrivalDate: java.util.Calendar departureDate: java.util.Calendar roomType: java.lang.String people1: int people2: int people3: int people4: int I am thinking that if I can build this object I can then do this: <cfscript> checkAvailResult = Irm.CheckAvailability(complex object created above) </cfscript> Right now if I do that without the object created right I get the ol': =="Web service operation CheckAvailability with parameters... cannot be found"== I've researched enough to know that if you don't have your complex object built right to map the the java stubs you will get this. -----Original Message----- From: Casey Dougall [mailto:ca...@uberwebsitesolutions.com] Sent: Wednesday, July 22, 2009 8:11 PM To: cf-talk Subject: Re: Calling .ASPX.VB from .CFM On Wed, Jul 22, 2009 at 6:06 PM, Jason Neidert <ja...@steelfusion.com>wrote: > > > How can I accomplish the creation of the object CheckAvailabilityRQ using > ColdFusion? > > <cfobject > name = "IRMPublic"> > webservice= "http://resortdata.com/IRMPublic" > type = "webservice" > wsportname = "IRMPublicMethodsSoap"> > > Then use CFINVOKE or something to create an instance of > 'IRMPublic.CheckAvailability_irmRQ'? > > I think I am getting closer... > you try something like this? not sure what the actual url is to api <cfset APIURL = ' http://lutsen.steelfusion.com/winter/rates_packages/packages/rdp/rdp/rdpweb/ IRMPublic.wsdl '> <cfxml VARIABLE="GetAvailRequest" CASESENSITIVE="YES"> <CheckAvailability xmlns="http://resortdata.com/IRMPublic"> <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> </CheckAvailability> </cfxml> <CFHTTP url="#APIURL#" method="post" resolveurl="yes" throwOnError="no" port="80" charset="utf-8"> <CFHTTPPARAM type="xml" value="#GetAvailRequest#"> </CFHTTP> <cfdump VAR="#cfhttp.FileContent#"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:324858 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4