RE: UPS XML Rates w/ DRK5 Socket Component

2003-11-05 Thread Erik Yowell
Yeah, I was lazy - I'm sure you can add timeouts and catch exceptions
etc. No issues really, I believe the previous woes of CF developers
having CFHTTP problems are dead and gone as the new HTTP client runs
like a tank. I tested it side by side with a custom http java class and
the difference was negligible. I'm also sure the code could be enhanced
by using the cfxml tag to programmatically build and append the packets,
as well - but I never really saw a need for it as the UPS packets aren't
all that big. 

Erik Yowell

[EMAIL PROTECTED]

http://www.shortfusemedia.com

-Original Message-
From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 10:01 AM
To: CF-Talk
Subject: RE: UPS XML Rates w/ DRK5 Socket Component

Wow, Erik, I was not aware of that. I assumed it was a limitation of
CFHTTP, not a shortcoming. Also, I didn't find this in the technote
until now:

38383 
Added the ability to perform raw HTTP posts using the cfhttp tag. 

I'll have to try your method, Have you experienced any issues with this?
I noticed you don't have a time-out. Do you have a back up just in case?

Thanks

-Igor
-cccfug.org

-Original Message-
From: Erik Yowell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 11:40 AM
To: CF-Talk
Subject: RE: UPS XML Rates w/ DRK5 Socket Component

Socket communication is one way (ugly, but certainly works), but I
believe a majority of the HTTP problems were fixed with 6.1, as we've
implemented the UPS rate service and selection tool with CFHTTP with no
problems. The following code works fine for us - 









#AccessLicenseNumber#

#UserID#

#Password#











Rating and
Service

1.0001



Rate

shop





01









#attributes.originPostCode#

US









#safePostalCode#

#cityName#


0># stateProvince #

#countryName#



 





02

Package



Rate Shopping



#weight#













url = "">

port = "443"   

method = "POST"

throwonerror="yes">







Erik Yowell

[EMAIL PROTECTED]

http://www.shortfusemedia.com

-Original Message-
From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:31 PM
To: CF-Talk
Subject: UPS XML Rates w/ DRK5 Socket Component

Hi Yall,

For a long time I've been looking for a good way to implement the usage
of UPS's XML based rates & service program to calculate shipping costs.
In the past, there were so many ways to do this, but they were all too
messy or tedious... i.e, not worth the simple functionality I required.
There were the custom tags that my host wouldn't let me use, the XML
hacks, or writing my own java method to do it. Everyone kept expecting
that CFMX would provide a cure but it hasn't.

The bottom line was that CF did not provide a developer with usage of a
Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its
headers. Well, now there is a component on the latest DRK that promises
to allow the raw XML Socket via the underlying java.net.Socket object.
It is called the socket component, and may just be the saving grace
here.

So has anyone used it to implement the UPS Rates & Services API? I'd be
curious to know if it works, the performance, and how it is implemented.
I think if this really does work, it will provide any developer using
CFMX 6.1 with a means to easily get real-time shipping rates with very
little programming, and for Macromedia, I think this component alone
will make buying DRK5 a great value. Furthermore, it promotes using the
underlying J2EE functionality to empower your CF app...

-Igor
-cccfug.org 

  _  

  _  


  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: UPS XML Rates w/ DRK5 Socket Component

2003-11-05 Thread Igor Ilyinsky
Wow, Erik, I was not aware of that. I assumed it was a limitation of CFHTTP, not a shortcoming. Also, I didn't find this in the technote until now:

38383 
Added the ability to perform raw HTTP posts using the cfhttp tag.	

 
I'll have to try your method, Have you experienced any issues with this? I noticed you don't have a time-out. Do you have a back up just in case?

 
Thanks

 
-Igor
-cccfug.org

-Original Message-
From: Erik Yowell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 11:40 AM
To: CF-Talk
Subject: RE: UPS XML Rates w/ DRK5 Socket Component

Socket communication is one way (ugly, but certainly works), but I
believe a majority of the HTTP problems were fixed with 6.1, as we've
implemented the UPS rate service and selection tool with CFHTTP with no
problems. The following code works fine for us - 









#AccessLicenseNumber#

#UserID#

#Password#











Rating and
Service

1.0001



Rate

shop





01









#attributes.originPostCode#

US









#safePostalCode#

#cityName#


0># stateProvince #

#countryName#



 





02

Package



Rate Shopping



#weight#













url = "">

port = "443"   

method = "POST"

throwonerror="yes">







Erik Yowell

[EMAIL PROTECTED]

http://www.shortfusemedia.com

-Original Message-
From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:31 PM
To: CF-Talk
Subject: UPS XML Rates w/ DRK5 Socket Component

Hi Yall,

For a long time I've been looking for a good way to implement the usage
of UPS's XML based rates & service program to calculate shipping costs.
In the past, there were so many ways to do this, but they were all too
messy or tedious... i.e, not worth the simple functionality I required.
There were the custom tags that my host wouldn't let me use, the XML
hacks, or writing my own java method to do it. Everyone kept expecting
that CFMX would provide a cure but it hasn't.

The bottom line was that CF did not provide a developer with usage of a
Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its
headers. Well, now there is a component on the latest DRK that promises
to allow the raw XML Socket via the underlying java.net.Socket object.
It is called the socket component, and may just be the saving grace
here.

So has anyone used it to implement the UPS Rates & Services API? I'd be
curious to know if it works, the performance, and how it is implemented.
I think if this really does work, it will provide any developer using
CFMX 6.1 with a means to easily get real-time shipping rates with very
little programming, and for Macromedia, I think this component alone
will make buying DRK5 a great value. Furthermore, it promotes using the
underlying J2EE functionality to empower your CF app...

-Igor
-cccfug.org 

  _  

  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: UPS XML Rates w/ DRK5 Socket Component

2003-11-05 Thread Erik Yowell
Socket communication is one way (ugly, but certainly works), but I
believe a majority of the HTTP problems were fixed with 6.1, as we've
implemented the UPS rate service and selection tool with CFHTTP with no
problems. The following code works fine for us - 









#AccessLicenseNumber#

#UserID#

#Password#











Rating and
Service

1.0001



Rate

shop





01









#attributes.originPostCode#

US









#safePostalCode#

#cityName#


0># stateProvince #

#countryName#



 





02

Package



Rate Shopping



#weight#













url = "">

port = "443"   

method = "POST"

throwonerror="yes">







Erik Yowell

[EMAIL PROTECTED]

http://www.shortfusemedia.com

-Original Message-
From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 1:31 PM
To: CF-Talk
Subject: UPS XML Rates w/ DRK5 Socket Component

Hi Yall,

For a long time I've been looking for a good way to implement the usage
of UPS's XML based rates & service program to calculate shipping costs.
In the past, there were so many ways to do this, but they were all too
messy or tedious... i.e, not worth the simple functionality I required.
There were the custom tags that my host wouldn't let me use, the XML
hacks, or writing my own java method to do it. Everyone kept expecting
that CFMX would provide a cure but it hasn't.

The bottom line was that CF did not provide a developer with usage of a
Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its
headers. Well, now there is a component on the latest DRK that promises
to allow the raw XML Socket via the underlying java.net.Socket object.
It is called the socket component, and may just be the saving grace
here.

So has anyone used it to implement the UPS Rates & Services API? I'd be
curious to know if it works, the performance, and how it is implemented.
I think if this really does work, it will provide any developer using
CFMX 6.1 with a means to easily get real-time shipping rates with very
little programming, and for Macromedia, I think this component alone
will make buying DRK5 a great value. Furthermore, it promotes using the
underlying J2EE functionality to empower your CF app...

-Igor
-cccfug.org 


  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: UPS XML Rates w/ DRK5 Socket Component

2003-11-05 Thread Lewis Sellers
At 09:01 AM 11/5/2003 -0600, you wrote:
>Let's try it this way...
>
>Has anyone implemented the UPS rates XML service with CFMX 6.1's 
>underlying J2EE functionality (namely the java.net.Socket object)?

Well, do you have a link to the specs of the format UPS's uses? Shouldn't 
be all that hard. I've been learning Java the last three weeks with a nod 
to taking the certifications in mind. If it doesn't look like it would take 
too long I might just do it for the practice.

>-cccfug.org

--min


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: UPS XML Rates w/ DRK5 Socket Component

2003-11-05 Thread Igor Ilyinsky
Let's try it this way...

 
Has anyone implemented the UPS rates XML service with CFMX 6.1's underlying J2EE functionality (namely the java.net.Socket object)?

 
-cccfug.org

-Original Message-
From: Igor Ilyinsky 
Sent: Tuesday, November 04, 2003 3:31 PM
To: CF-Talk
Subject: UPS XML Rates w/ DRK5 Socket Component

Hi Yall,

For a long time I've been looking for a good way to implement the usage of UPS's XML based rates & service program to calculate shipping costs. In the past, there were so many ways to do this, but they were all too messy or tedious... i.e, not worth the simple functionality I required. There were the custom tags that my host wouldn't let me use, the XML hacks, or writing my own java method to do it. Everyone kept expecting that CFMX would provide a cure but it hasn't.

The bottom line was that CF did not provide a developer with usage of a Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its headers. Well, now there is a component on the latest DRK that promises to allow the raw XML Socket via the underlying java.net.Socket object. It is called the socket component, and may just be the saving grace here.

So has anyone used it to implement the UPS Rates & Services API? I'd be curious to know if it works, the performance, and how it is implemented. I think if this really does work, it will provide any developer using CFMX 6.1 with a means to easily get real-time shipping rates with very little programming, and for Macromedia, I think this component alone will make buying DRK5 a great value. Furthermore, it promotes using the underlying J2EE functionality to empower your CF app...

-Igor
-cccfug.org 

  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




UPS XML Rates w/ DRK5 Socket Component

2003-11-04 Thread Igor Ilyinsky
Hi Yall,

For a long time I've been looking for a good way to implement the usage of UPS's XML based rates & service program to calculate shipping costs. In the past, there were so many ways to do this, but they were all too messy or tedious... i.e, not worth the simple functionality I required. There were the custom tags that my host wouldn't let me use, the XML hacks, or writing my own java method to do it. Everyone kept expecting that CFMX would provide a cure but it hasn't.

The bottom line was that CF did not provide a developer with usage of a Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its headers. Well, now there is a component on the latest DRK that promises to allow the raw XML Socket via the underlying java.net.Socket object. It is called the socket component, and may just be the saving grace here.

So has anyone used it to implement the UPS Rates & Services API? I'd be curious to know if it works, the performance, and how it is implemented. I think if this really does work, it will provide any developer using CFMX 6.1 with a means to easily get real-time shipping rates with very little programming, and for Macromedia, I think this component alone will make buying DRK5 a great value. Furthermore, it promotes using the underlying J2EE functionality to empower your CF app...

-Igor
-cccfug.org 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]