--0-364228444-969467825=:18367
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I am having trouble with a COM object I am connecting
to in my application. I connect to the object ok but
when I get to the first function the application dies
and there is very little documentation on this out
there. Has anyone been successful with this? Any help,
resource ideas or just ideas to try would be greatly
appreciated. Attached is the code I am using...


Thanks,
Steve Ackerman
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
--0-364228444-969467825=:18367
Content-Type: text/plain; name="code.txt"
Content-Description: code.txt
Content-Disposition: inline; filename="code.txt"

<!--- Create COM Object Connection --->
        <cfobject type = "COM"
                class = "GoShip.WholeOrderRatingEngine"
                action = "create"
                name = "objGoShip">
                
<!--- Set location of rating engine server --->          <!--- This is where the 
problem seems to begin... --->
        <cfset objGoShip.setGoShipUrl = "#sGoShipUrl#">

<!--- Create new order --->
        <cfset objGoShip.newOrder("#sClientNum#, #sSessionID#, #sOrderNum#")>
        <!--- clientNum , sessionSessionID, orderNum --->
        
<!--- Set specials and diagnostic mode --->
        <cfset objGoShip.setReturnSpecialsMode = "#sReturnSpecialsMode#">
        <cfset objGoShip.setDiagnosticMode = "#sDiagnosticMode#">
        
<!--- Add a fake single item --->
        <cfset objGoShip.addItem("#sItemIndex#, #sCubeName#, #sStartCountry#, 
#sStartZip#, #sWeight#, #sLength#, #sHeight#, #sWidth#, #sFulfillmentDelay#, 
#sQuantity#, #sDeclaredValue#")>
        <!--- sItemIndex, sCubeName, sStartCountry, sStartZip, sWeight, sLength, 
sHeight, sWidth,
                sFulfillmentDelay, sQuantity, sDeclaredValue --->
        
<!--- Set the destination --->
        <cfset objGoShip.setDestination("#sEndCountry#, #sEndZip#")>
        <!--- sEndCountry, sEndZip --->
        
<!--- Rate all the services (send data and return calculations) --->
        <cfset objGoShip.rateAllServices> 

<!--- Start Display of Rates and Services --->
        <table Border=0 CellSpacing=5 CellPadding=0 align=center>
                <tr bgcolor="blue">
                        <td>Service</td>
                        <td>Level</td>
                        <td>Rate</td>
                        <td>Diagnostic</td>
                </tr>
        
<!--- Get the number of services --->
        <cfset intServiceCount = objGoShip.getServiceCount>
        
<!--- Loop over services --->
        <cfloop collection="objGoShip" item="i">
                <cfset sServiceName = objGoShip.GetServiceName(i)>
            <cfset sServiceLevel = objGoShip.GetServiceLevel(i)>
            <cfset sRate = objGoShip.GetRate(i)>
            <cfset sDiagnostics = objGoShip.getDiagnosticMessage(i)>
        
<!--- Output data --->
                <cfoutput>
                        <tr bgcolor="blue">
                                <td>#sServiceName#</td>
                                <td>#sServiceLevel#</td>
                                <td align=right>#sRate#</td>
                        <td>#sDiagnostics#</td>
                        </tr>
                </cfoutput>
        </cfloop>
        </table>
--0-364228444-969467825=:18367--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to