RE: cf & jquery mobile

2011-03-15 Thread andy matthews

jQuery is built in part on jQuery UI. This should mean that jQuery UI
plugins work within jQuery Mobile.

http://www.erichynds.com/examples/jquery-related-selects/

Try that one. It came up in a search for jQuery UI related select.

Honestly though, related selects are easy to code with jQuery. You'd
probably be better off just writing your own.



andy

-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Tuesday, March 15, 2011 1:42 PM
To: cf-talk
Subject: RE: cf & jquery mobile


Point taken, I was simply trying to convert a  page over to mobile.

I'm trying to use JQM and JQ now but finding it difficult to use jquery
plugins on the mobile device.  Ex:  I'm trying to do a simple related select
dropdowns and tried a couple of plugins, it works on my pc browser, but when
I try on the blackberry or iphone it doesn't work.  What I'm confused about
is all of the samples that I'm seeing both jquery-1.5.1.min.js and
jquery.mobile-1.0a3.min.js are being included.  Does this mean that
functions from jquery library will work on mobile devices?  Or do I need to
find specific plugins for jquery mobile?  If so, am I screwed because I
can't find any for a related select specific to mobile devices??  

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, March 14, 2011 6:07 PM
To: cf-talk
Subject: Re: cf & jquery mobile


I would also _strongly_ urge you not to mix CF's built in JS stuff
with any other JS framework. You can do it - but most of the time it
leads to trouble. If you are experienced enough to be working with
JQM, you probably do not need the built-in CF client side form
validation. Use a good jQuery plugin for that instead.

On Mon, Mar 14, 2011 at 7:25 PM, andy matthews 
wrote:
>
> Without seeing code I couldn't be sure what was wrong, but jQuery Mobile
is
> quite particular about pathing. My guess is that some of the script files
> aren't loading. Hit your site with Firefox (with Firebug turned on) and
see
> if the javascript files needed for cfform are loading.
>
>
>
> andy
>
> -Original Message-
> From: Tim Do [mailto:t...@wng.com]
> Sent: Monday, March 14, 2011 10:51 AM
> To: cf-talk
> Subject: cf & jquery mobile
>
>
> I'm playing around w/ jquery mobile and am struggling with how to get
> certain features of cf to work within jquery mobile.  For instance, within
> my cfform the form validation and my related dropdown which I use cfselect
> and bind no long work.  Why is this and is there a way to get this to work
> together?  Thanks!
>
>
>
>
> 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343062
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flex and CF Sessions (sort of)

2011-03-15 Thread Jeffrey Battershall

The way I've done this in the past was to store the credentials on the flex
client and re-authenticate the user with these using the CFLOGIN framework.
 This way the responsibility for continuing the session is on the flex side
of things.  This works with the RemoteObject.setRemoteCredentials().
 Unfortunately you end up (unless someone else has a better idea) of doing
the re-authentication in Application.cfc. But it does work.  This way the
app can stay up and running well beyond the session timeout.  If you want an
inactivity timeout there are ways  to handle that in Flex.

On Tue, Mar 15, 2011 at 5:03 PM, Mary Jo Sminkey wrote:

>
> Okay, so we have a flex application running on top of ColdFusion. Basically
> going through CFCs as web services for whatever it needs. But I'm having a
> hard time coming up with the best way to handle sessions. I don't really
> store much in the session, other than just the user ID and whether they are
> logged in or not. I need to handle the user authentication on the CF side
> and then tell Flex the result. All easy enough when the app loads up.
>
> But I've been trying to make sure that on each CFC request, I am checking
> that they are still logged in and authenticated. I do have some code to ping
> CF and keep the session active, but just in case that isn't working, I need
> to make sure they are still active. I've been playing around with the
> onCFCRequest and got this working for the most part. If their session had
> timed out, it will just re-authenticate them and make sure they're still an
> active user before passing off the request to the CFC. Works great up to
> this point.
>
> The problem I'm having is that if they aren't logged in, or if an error is
> thrown inside a CFC and I have the event handler rethrow it, it's not
> throwing it to Flex correctly. Instead of the error type of "FaultEvent"
> that Flex accepts, it's throwing "Server.Processing" and instead of the
> normal error details, I always get one that says "An exception occurred
> while invoking an event handler method from Application.cfc. The method name
> is: OnCfcRequest." The actual FaultEvent and details that I *should* be
> getting are buried further down inside the fault that Flex is getting (in
> extendedData.rootcause). So I'm not able to do any custom error handling in
> Flex or show the user the Flex-based "login failed" message. The fault
> handling worked fine before I added the onCFCRequest, so seems to be a bug
> when you use this.
>
> Anyone else played with this new event handler method much yet with Flex
> and find a solution for this? Or is there a better way of syncing sessions
> between Flex and ColdFusion that I can look at instead? I'm just not sure of
> a good way for Flex to know if the user is still logged in without running a
> separate authentication check before every service call which seems kind of
> kludgy.
>
>
> -- Mary Jo
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343061
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Flex and CF Sessions (sort of)

2011-03-15 Thread Mary Jo Sminkey

Okay, so we have a flex application running on top of ColdFusion. Basically 
going through CFCs as web services for whatever it needs. But I'm having a hard 
time coming up with the best way to handle sessions. I don't really store much 
in the session, other than just the user ID and whether they are logged in or 
not. I need to handle the user authentication on the CF side and then tell Flex 
the result. All easy enough when the app loads up. 

But I've been trying to make sure that on each CFC request, I am checking that 
they are still logged in and authenticated. I do have some code to ping CF and 
keep the session active, but just in case that isn't working, I need to make 
sure they are still active. I've been playing around with the onCFCRequest and 
got this working for the most part. If their session had timed out, it will 
just re-authenticate them and make sure they're still an active user before 
passing off the request to the CFC. Works great up to this point. 

The problem I'm having is that if they aren't logged in, or if an error is 
thrown inside a CFC and I have the event handler rethrow it, it's not throwing 
it to Flex correctly. Instead of the error type of "FaultEvent" that Flex 
accepts, it's throwing "Server.Processing" and instead of the normal error 
details, I always get one that says "An exception occurred while invoking an 
event handler method from Application.cfc. The method name is: OnCfcRequest." 
The actual FaultEvent and details that I *should* be getting are buried further 
down inside the fault that Flex is getting (in extendedData.rootcause). So I'm 
not able to do any custom error handling in Flex or show the user the 
Flex-based "login failed" message. The fault handling worked fine before I 
added the onCFCRequest, so seems to be a bug when you use this. 

Anyone else played with this new event handler method much yet with Flex and 
find a solution for this? Or is there a better way of syncing sessions between 
Flex and ColdFusion that I can look at instead? I'm just not sure of a good way 
for Flex to know if the user is still logged in without running a separate 
authentication check before every service call which seems kind of kludgy. 


-- Mary Jo




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343060
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Old School CFX (TextCrypt) and RSA Encryption

2011-03-15 Thread Brook Davies

Thanks for looking into it Leigh. It looks like I need to get in touch with
the Author? If I can get in touch with them, what should I ask? Just how
they are encoding the keys I guess?

Brook


-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: March-15-11 11:41 AM
To: cf-talk
Subject: RE: Old School CFX (TextCrypt) and RSA Encryption


That makes sense. The problem is I cannot quite see how to successfully
decode their values from base64. I can see the first part looks like the
exponent and the second the modulus. 

exponent: ++11Ik
modulus:
kyC6iOY9TyHww-HX-EhLTlpnb3R6Z4Zdu0VwUWsPJMfFQNlyEzKcxck1ZyxyebtGiLVZRByKE9YK
hr91OrTqRU

So if you could successfully decode them, I think you could feed the bytes
into an RSAPublicKeySpec object instead of X509EncodedKeySpec. 

 ...

Then encrypt as before. While I can get a Cipher to work, the encrypted
value comes out wrong. ie It does not match the results of TextCrypt. I am
not sure what is different about their base64 string besides the "-" and
padding.


  



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343059
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cf & jquery mobile

2011-03-15 Thread Tim Do

Point taken, I was simply trying to convert a  page over to mobile.

I'm trying to use JQM and JQ now but finding it difficult to use jquery plugins 
on the mobile device.  Ex:  I'm trying to do a simple related select dropdowns 
and tried a couple of plugins, it works on my pc browser, but when I try on the 
blackberry or iphone it doesn't work.  What I'm confused about is all of the 
samples that I'm seeing both jquery-1.5.1.min.js and jquery.mobile-1.0a3.min.js 
are being included.  Does this mean that functions from jquery library will 
work on mobile devices?  Or do I need to find specific plugins for jquery 
mobile?  If so, am I screwed because I can't find any for a related select 
specific to mobile devices??  

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, March 14, 2011 6:07 PM
To: cf-talk
Subject: Re: cf & jquery mobile


I would also _strongly_ urge you not to mix CF's built in JS stuff
with any other JS framework. You can do it - but most of the time it
leads to trouble. If you are experienced enough to be working with
JQM, you probably do not need the built-in CF client side form
validation. Use a good jQuery plugin for that instead.

On Mon, Mar 14, 2011 at 7:25 PM, andy matthews  wrote:
>
> Without seeing code I couldn't be sure what was wrong, but jQuery Mobile is
> quite particular about pathing. My guess is that some of the script files
> aren't loading. Hit your site with Firefox (with Firebug turned on) and see
> if the javascript files needed for cfform are loading.
>
>
>
> andy
>
> -Original Message-
> From: Tim Do [mailto:t...@wng.com]
> Sent: Monday, March 14, 2011 10:51 AM
> To: cf-talk
> Subject: cf & jquery mobile
>
>
> I'm playing around w/ jquery mobile and am struggling with how to get
> certain features of cf to work within jquery mobile.  For instance, within
> my cfform the form validation and my related dropdown which I use cfselect
> and bind no long work.  Why is this and is there a way to get this to work
> together?  Thanks!
>
>
>
>
> 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343058
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Old School CFX (TextCrypt) and RSA Encryption

2011-03-15 Thread Leigh

That makes sense. The problem is I cannot quite see how to successfully decode 
their values from base64. I can see the first part looks like the exponent and 
the second the modulus. 

exponent: ++11Ik
modulus: 
kyC6iOY9TyHww-HX-EhLTlpnb3R6Z4Zdu0VwUWsPJMfFQNlyEzKcxck1ZyxyebtGiLVZRByKE9YKhr91OrTqRU

So if you could successfully decode them, I think you could feed the bytes into 
an RSAPublicKeySpec object instead of X509EncodedKeySpec. 


...

Then encrypt as before. While I can get a Cipher to work, the encrypted value 
comes out wrong. ie It does not match the results of TextCrypt. I am not sure 
what is different about their base64 string besides the "-" and padding.


  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343057
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Jason Fisher

I do not and never have.  Not against it, but just never saw the need.



From: "Dain Anderson" 
Sent: Tuesday, March 15, 2011 10:27 AM
To: "cf-talk" 
Subject: Do people still name their UPDATE, INSERT & DELETE queries?

I may have missed conversation of this over the years, so I figured I 
would
ask.

What's the current "take" on this (old?) practice? If I have a CFC 
function
that deletes a record, and that CFC contains a single query, do you find 
it
necessary to scope that query with a name?




delete mah stuff...



I've been refactoring some CFCs and ran into some named deletions and
thought this seemed odd to name them -- thoughts?

-Dain

*Dain M. Anderson
*Lead Developer
Terra Dotta, LLC
501 W. Franklin Street, Suite 105
Chapel Hill, NC 27516
Phone/Fax: 877-DOTTA-77 (877-368-8277)
http://TerraDotta.com 

Re: CFDocument as a task

2011-03-15 Thread Michael Grant

4.0 for me too. I still prefer the hand and the lightning bolt. In fact I
was just going through a box of books the other day and found my v4 manuals.

And I'm generally a fan of "if it ain't broke" but cfthread literally
changed the way I use CF. It's one of the most powerful changes CF ever made
IMO. Now I can't live without it.


On Tue, Mar 15, 2011 at 1:38 PM, Robert Harrison  wrote:

>
> > That would be a good solution if it's CF7 or below.
>
> Sorry, been CF'ing since version 4.  Guess I still have some old methods in
> my recycle code, but if they ain't broke
>
>
> Robert B. Harrison
> Director of Interactive Services
> Austin & Williams
> 125 Kennedy Drive, Suite 100
> Hauppauge NY 11788
> P : 631.231.6600 Ext. 119
> F : 631.434.7022
> http://www.austin-williams.com
>
> Great advertising can't be either/or.  It must be &.
>
> Plug in to our blog: A&W Unplugged
> http://www.austin-williams.com/unplugged
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343055
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Dave Watts

> I ran the http://domain/EyeTest_ws.asmx url path from my pc and from the 
> server where CF is installed
> but could not test it as it says the form is only available for requests from 
> the local machine.

You should be testing the WSDL URL from the server:
http://domain/EyeTest_ws.asmx?wsdl

If that works, try fetching with with CFHTTP and seeing if you get
back an XML response.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343054
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFDocument as a task

2011-03-15 Thread Robert Harrison

> That would be a good solution if it's CF7 or below.

Sorry, been CF'ing since version 4.  Guess I still have some old methods in my 
recycle code, but if they ain't broke


Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343053
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFDocument as a task

2011-03-15 Thread Michael Grant

Assuming you are CF8 or better...

You wrap your processing code in the cfthread tag and then you have to pass
in whatever variables the code inside the cfthread uses. It's kind of like
how you use cfinvoke in a sense.

I generally stick all vars and content into a structure (here I've called it
"pdfStruct") then just pass in the struct as a variable that can be any name
you want.







Here's the livedocs:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_t_04.html

And here's some help from good ole' Ben. (the one with the pipes, not the
one with the beard.)

http://www.bennadel.com/blog/743-Learning-ColdFusion-8-CFThread-Part-I-Data-Exchange.htm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343052
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFDocument as a task

2011-03-15 Thread Michael Grant

True. That would be a good solution if it's CF7 or below.


On Tue, Mar 15, 2011 at 1:16 PM, Robert Harrison  wrote:

>
> Or you could put the page content at the top, use CFFLUSH to push out the
> page and let the PDF generator/email continue to run in the background. That
> should also work.
>
>
> Robert B. Harrison
> Director of Interactive Services
> Austin & Williams
> 125 Kennedy Drive, Suite 100
> Hauppauge NY 11788
> P : 631.231.6600 Ext. 119
> F : 631.434.7022
> http://www.austin-williams.com
>
> Great advertising can't be either/or.  It must be &.
>
> Plug in to our blog: A&W Unplugged
> http://www.austin-williams.com/unplugged
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343051
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFDocument as a task

2011-03-15 Thread Robert Harrison

Or you could put the page content at the top, use CFFLUSH to push out the page 
and let the PDF generator/email continue to run in the background. That should 
also work.


Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343050
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFDocument as a task

2011-03-15 Thread Michael Grant

Use cfthread and spawn a new thread to handle the pdf creation and emailing.


On Tue, Mar 15, 2011 at 12:46 PM, Terry Troxel  wrote:

>
> I have a page that dynamically generates images and then displays the
> formatted output in a CFDocument that creates a 4 up pdf.
>
> This page takes some time to generate and I am wondering if there is any
> way
> I can call this when the user hits SUBMIT to a task
>
> That does this in the background and lets the user go on to something else?
>
> I do not want the resulting pdf displayed, but instead emailed to a defined
> address as an attachment.
>
>
>
> Any positive help would be greatly appreciated.
>
> Terry
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFDocument as a task

2011-03-15 Thread Terry Troxel

I have a page that dynamically generates images and then displays the
formatted output in a CFDocument that creates a 4 up pdf.

This page takes some time to generate and I am wondering if there is any way
I can call this when the user hits SUBMIT to a task

That does this in the background and lets the user go on to something else?

I do not want the resulting pdf displayed, but instead emailed to a defined
address as an attachment.

 

Any positive help would be greatly appreciated.

Terry




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Russ Michaels

Ian,

Use this tool to test the webservice, it will generate valid SOAP requests
to help you diagnose any issues.
http://www.soapui.org/

This article may also help you if you are having trouble consuming a SOAP
service from CF.

http://russ.michaels.me.uk/index.cfm/2007/5/18/ColdFusion-Web-Services-and-SOAP



On Tue, Mar 15, 2011 at 4:12 PM, Ian Vaughan <
i.vaug...@neath-porttalbot.gov.uk> wrote:

>
> Hi Dave
>
> I ran the http://domain/EyeTest_ws.asmx url path from my pc and from the
> server where CF is installed but could not test it as it says the form is
> only available for requests from the local machine.
>
> The service description looks fine though
>
> -Original Message-
> From: Dave Watts [mailto:dwa...@figleaf.com]
> Sent: 15 March 2011 15:27
> To: cf-talk
> Subject: Re: Errors calling a asmx web service
>
>
> > Yes the .asmx file looks fine, could it be a user authentication issue?
>
> Probably not. Does a visit to the asmx file in your browser require
> authentication?
>
> > If so how do you register the web service?  Is it done in CF Admin - and
> > how does this change path that is called?  At the moment it looks like
> > this?
> >
> >  >   method="listBooks"
> >   returnvariable="reference"
> >   webservice="http://domain/EyeTest_ws.asmx?wsdl";>
>
> CF directly support HTTP Basic Authentication with web services - you
> can specify a username and password in the CF Administrator, and give
> your web service a friendly name, and use that name in your CFINVOKE
> instead. But again, this doesn't sound like an authentication issue.
>
> You say the WSDL looks fine. How exactly did you test? Did you test
> this from the web server running CF? Are you specifying a
> fully-qualified path?
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or on
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343047
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Errors calling a asmx web service

2011-03-15 Thread Ian Vaughan

Hi Dave

I ran the http://domain/EyeTest_ws.asmx url path from my pc and from the server 
where CF is installed but could not test it as it says the form is only 
available for requests from the local machine. 

The service description looks fine though

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 15 March 2011 15:27
To: cf-talk
Subject: Re: Errors calling a asmx web service


> Yes the .asmx file looks fine, could it be a user authentication issue?

Probably not. Does a visit to the asmx file in your browser require
authentication?

> If so how do you register the web service?  Is it done in CF Admin - and
> how does this change path that is called?  At the moment it looks like
> this?
>
>    method="listBooks"
>   returnvariable="reference"
>   webservice="http://domain/EyeTest_ws.asmx?wsdl";>

CF directly support HTTP Basic Authentication with web services - you
can specify a username and password in the CF Administrator, and give
your web service a friendly name, and use that name in your CFINVOKE
instead. But again, this doesn't sound like an authentication issue.

You say the WSDL looks fine. How exactly did you test? Did you test
this from the web server running CF? Are you specifying a
fully-qualified path?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or on



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343046
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Old School CFX (TextCrypt) and RSA Encryption

2011-03-15 Thread Brook Davies

Hi Leigh,

The CFX internally used a Delphi Component TRSA (aecRSA) from TSM Inc.
(which is now out f business..).  I've read the help file and it doesn't say
much about how the strings are encoded. I found the following information in
the help manual, not sure if there are any clues in here, I couldn't find
any:

"TRSA handles padding of blocks in the encryption and decryption of strings
and symmetric keys internally,  and the use need not concern himself with
passing the correct length string or symmetric key."

"The public key consists of a "Modulus" - a large integer which can be used
to encrypt data together with the "Exponent". The two parts of the key are
separated by a colon. Both parts of the key need to be transmitted, and
should not be separated from each other. (See Key Generation)"

=

Key Generation

Prime number generation

Producing key pairs is a time consuming process, the length of the process
dictated by the difficulty of finding large random numbers. To produce a
2048 bit key, two 1024 bit random numbers have to be found. Even using a
number of optimisations, the production of a 2048 bit key can take many
minutes on slower systems as large primes become both increasingly rarer and
more difficult to check as the length increases.

Random number generation is achieved the following steps to give the maximum
performance:

.A random number is picked of nominally the right length. The LSB (Least
Significant Bit) and the MSB (Most Significant Bit) are set to ensure that
the number is odd and the expected length. (For RSA to work with the maximum
security, the prime numbers should be equal in length).


.A sieve of Erastosthenes is created holding the 400 smallest primes. A
random number is picked and the lowest and highest bits are set to ensure
that it is odd and has the expected number of bits. A window of length 2000,
starting at the random number is created, and the small primes struck out
using modular arithmetic. Any number left unstruck is a candidate prime.

.Each candidate prime, p,  is tested using four iterations of a test for
primality based on Fermat's theorem, that is:

x^(p-1) = 1 mod p

for any given prime x. Any candidate prime which passes all four iterations
is worth a second look. All primes pass this test and a majority of
composites (non-primes) fail.

.To make sure we have found a prime, we use the Miller-Rabin test for
primality to make sure. This is a probabilistic test, and the certainty of
each test is 0.25. Performing 10 of these tests gives a probability of
0.990463257 that the chosen number is a prime.

This level of certainty is far better than that provided by other products
which use PK encryption (e.g. PGP), and corresponds to one failure in every
million keys created on average. This certainty factor can be increased by
changing a parameter in the key generation process, but should be suitable
for all but the very most clinically paranoid of applications.

Key generation

As soon as we have found two primes, p and q, of the right length, we are
able to produce the keys. To do this we need to find an exponent, which is
relatively prime to (p-1) and (q-1). We do this with trial and error,
picking a small odd starting number and testing it for relative primality
with (p-1) and (q-1). The exact value of the exponent and the fact that it
is small with regard to the length of the primes is not a risk to the
security of the algorithm. Some implementations even work with fixed
exponents (e.g. 17 or 65537) which are chosen to allow speed increases.

As soon as we have determined the exponent, e, we can create the final keys:

e chosen above('exponent')
n = p.q('Modulus')
d = e^(-1) mod ((p-1)(q-1))('Inverse')

The public key is then e and n, the private key is d.

The procedure TRSA.MakeKeyPair performs the above operations and stores the
keys internally. To retrieve the keys from TRSA you can use:

   procedure GetPublicKey(var Exponent: BigNum; var Modulus: BigNum);

   procedure GetPrivateKey(var Modulus: BigNum; var Inverse: BigNum);

The Keys are additionally loaded in base 64 encoded text form into the
properties:

   PublicKey

   PrivateKey

Writing a valid base64 encoded key into the properties PublicKey or
PrivateKey loads the internal registers with the corresponding value.




Using TRSA

The interface to TRSA is designed to be as simple to use as possible, and
should provide you with the tools to perform RSA encryption easily but
should remain flexible.


Number representations used by TRSA

The RSA algorithm uses very long integer values (up to 2048 bits in this
version) to achieve the levels of security required by today's applications.
The long integers used in the RSA process cannot be handled directly by any
processor, meaning that data structures must be used to represent these

Re: Website for Health Care Center

2011-03-15 Thread Al Musella, DPM

I would set them up with a small server, locked in a closet in their 
private office.  The HIPAA rules weren't meant to stop you from doing 
these things, just to make you implement some security.
A laptop is just too easy to steal.


>Assuming this client is in the US, it would be smarter to find a host
>whose facility is already HiPAA compliant like Firehost.com or
>Connectria.com
>
>http://en.wikipedia.org/wiki/HIPAA
>
>On Mon, Mar 14, 2011 at 7:57 PM, sandeep saini  wrote:
> >
> > I plan to create a website for a health care center(physical 
> therapy). The client wants to store patients data, their day to day 
> measurements(excercises,weights, strengths etc).
> >
> > I am afraid storing all this info on some outsite hosting 
> company(server). So just thinking to put code files/DB/server on a 
> laptop and than share that among other ones using wifi network. The 
> client wants to access this website just in his facility.
> >
> > Am I doing right thing?
> >
> > Is there any legal issue I should look into while creating one?
> >
> > Thanks



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343044
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Dave Watts

> I may have missed conversation of this over the years, so I figured I would
> ask.
>
> What's the current "take" on this (old?) practice? If I have a CFC function
> that deletes a record, and that CFC contains a single query, do you find it
> necessary to scope that query with a name?

It's neither necessary nor harmful (assuming you've also ensured that
the name is locally scoped, as in your example). I wouldn't bother
changing existing code. For future code, do whichever you prefer.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343043
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Dave Watts

> I would even go so far as to recommend you delete it. Less code means less 
> bugs.

The converse of this is, fewer changes to existing code means fewer
bugs. There's no reason to waste time making trivial changes to
existing code.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343042
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Dave Watts

> Yes the .asmx file looks fine, could it be a user authentication issue?

Probably not. Does a visit to the asmx file in your browser require
authentication?

> If so how do you register the web service?  Is it done in CF Admin - and
> how does this change path that is called?  At the moment it looks like
> this?
>
>    method="listBooks"
>   returnvariable="reference"
>   webservice="http://domain/EyeTest_ws.asmx?wsdl";>

CF directly support HTTP Basic Authentication with web services - you
can specify a username and password in the CF Administrator, and give
your web service a friendly name, and use that name in your CFINVOKE
instead. But again, this doesn't sound like an authentication issue.

You say the WSDL looks fine. How exactly did you test? Did you test
this from the web server running CF? Are you specifying a
fully-qualified path?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or on

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries? [spamtrap heur]

2011-03-15 Thread Paul Hastings

On 3/15/2011 9:34 PM, Raymond Camden wrote:
> I don't bother. Is it worthwhile to go through code and change it -
> not imho. (Unless of course you forgot to varscope it.)

but builder complains though. and we must do what builder says, right ;-)

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Dain Anderson

Agreed, we do this as well. I'm more or less concerned with a more "in
general," as a concept.

It sounds like it's unnecessary and safe to remove. Thanks for everyone's
help.

-Dain


On Tue, Mar 15, 2011 at 10:40 AM, Phillip Duba  wrote:

>
> I do purely for debugging purposes. This way I can dump the resultset, with
> the new features in 8 and 9, and see exactly what is going on with the
> query
> in the form of parameters, generated SQL, etc.,
>
> Phil
>


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Phillip Duba

I do purely for debugging purposes. This way I can dump the resultset, with
the new features in 8 and 9, and see exactly what is going on with the query
in the form of parameters, generated SQL, etc.,

Phil

On Tue, Mar 15, 2011 at 10:26 AM, Dain Anderson wrote:

>
> I may have missed conversation of this over the years, so I figured I would
> ask.
>
> What's the current "take" on this (old?) practice? If I have a CFC function
> that deletes a record, and that CFC contains a single query, do you find it
> necessary to scope that query with a name?
>
> 
>
>
>delete mah stuff...
>
> 
>
> I've been refactoring some CFCs and ran into some named deletions and
> thought this seemed odd to name them -- thoughts?
>
> -Dain
>
> ………
> *Dain M. Anderson
> *Lead Developer
> Terra Dotta, LLC
> 501 W. Franklin Street, Suite 105
> Chapel Hill, NC 27516
> Phone/Fax: 877-DOTTA-77 (877-368-8277)
> http://TerraDotta.com 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Casey Dougall

On Tue, Mar 15, 2011 at 10:26 AM, Dain Anderson wrote:

>
> I may have missed conversation of this over the years, so I figured I would
> ask.
>
> What's the current "take" on this (old?) practice? If I have a CFC function
> that deletes a record, and that CFC contains a single query, do you find it
> necessary to scope that query with a name?
>
> 
>
>
>delete mah stuff...
>
> 
>
>


Only when I use OUTPUT statement

insert into
(bla)
output INSERTED.ID
values
(Bla)


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Nathan Strutz

If you aren't using any kind of returned data from a query, don't worry
about giving the cfquery tag a name attribute. It's a few extra bytes you
can save on your fingers. I would even go so far as to recommend you delete
it. Less code means less bugs.

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Tue, Mar 15, 2011 at 7:26 AM, Dain Anderson  wrote:

>
> I may have missed conversation of this over the years, so I figured I would
> ask.
>
> What's the current "take" on this (old?) practice? If I have a CFC function
> that deletes a record, and that CFC contains a single query, do you find it
> necessary to scope that query with a name?
>
> 
>
>
>delete mah stuff...
>
> 
>
> I've been refactoring some CFCs and ran into some named deletions and
> thought this seemed odd to name them -- thoughts?
>
> -Dain
>
> ………
> *Dain M. Anderson
> *Lead Developer
> Terra Dotta, LLC
> 501 W. Franklin Street, Suite 105
> Chapel Hill, NC 27516
> Phone/Fax: 877-DOTTA-77 (877-368-8277)
> http://TerraDotta.com 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Raymond Camden

I don't bother. Is it worthwhile to go through code and change it -
not imho. (Unless of course you forgot to varscope it.)


On Tue, Mar 15, 2011 at 9:26 AM, Dain Anderson  wrote:
>
> I may have missed conversation of this over the years, so I figured I would
> ask.
>
> What's the current "take" on this (old?) practice? If I have a CFC function
> that deletes a record, and that CFC contains a single query, do you find it
> necessary to scope that query with a name?
>




-- 
===
Raymond Camden, ColdFusion Jedi Master

Email    : r...@camdenfamily.com
Blog      : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with Android news: http://www.androidgato

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Do people still name their UPDATE, INSERT & DELETE queries?

2011-03-15 Thread Dain Anderson

I may have missed conversation of this over the years, so I figured I would
ask.

What's the current "take" on this (old?) practice? If I have a CFC function
that deletes a record, and that CFC contains a single query, do you find it
necessary to scope that query with a name?




delete mah stuff...



I've been refactoring some CFCs and ran into some named deletions and
thought this seemed odd to name them -- thoughts?

-Dain

………
*Dain M. Anderson
*Lead Developer
Terra Dotta, LLC
501 W. Franklin Street, Suite 105
Chapel Hill, NC 27516
Phone/Fax: 877-DOTTA-77 (877-368-8277)
http://TerraDotta.com 

RE: Errors calling a asmx web service

2011-03-15 Thread Ian Vaughan

Hi

Yes the .asmx file looks fine, could it be a user authentication issue?
If so how do you register the web service?  Is it done in CF Admin - and
how does this change path that is called?  At the moment it looks like
this?

http://domain/EyeTest_ws.asmx?wsdl";>

... etc

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 15 March 2011 13:35
To: cf-talk
Subject: Re: Errors calling a asmx web service


> Any ideas why I am getting the following error when calling a .asmx
> webservice in CF7?? Is it permissions or does it have to be WSDL??
>
> ERROR-
>
> Could not generate stub objects for web service invocation.
> Name: http://domain/EyeTest_ws.asmx. WSDL:
> http://DOMAIN/EyeTest_ws.asmx. org.xml.sax.SAXException: Fatal Error:
> URI=null Line=11: The element type "META" must be terminated by the
> matching end-tag "". It is recommended that you use a web browser to
> retrieve and examine the requested WSDL document for correctness. If
the
> requested WSDL document can't be retrieved or it is dynamically
> generated, it is likely that the target web service has programming
> errors.

Have you used a web browser to retrieve and examine the requested WSDL
document for correctness?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Data Truncation on TEXT field

2011-03-15 Thread Russ Michaels

yes certainly something you need to remember. Every argument you have on a
list gets Googled and will show up in search results :-)
Even twitter posts get Googled.


On Mon, Mar 14, 2011 at 10:58 PM, Bobby Hartsfield wrote:

>
> Even the ones**
>
>
> .:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> http://cf4em.com
>
> -Original Message-
> From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
> Sent: Monday, March 14, 2011 5:41 PM
> To: cf-talk
> Subject: RE: Data Truncation on TEXT field
>
>
> Enable Blob/Clob on the datasoruce.
>
> FYI, this is a public list indexed by Google... Client's can search for
> your
> name... if the ones with no sense haha ;-)
>
>
> .:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> http://cf4em.com
> -Original Message-
> From: Robert Harrison [mailto:rob...@austin-williams.com]
> Sent: Monday, March 14, 2011 1:39 PM
> To: cf-talk
> Subject: Data Truncation on TEXT field
>
>
> Hi,
>
> I have a client with no sense who want to type a book into a single field.
> They have over 200,000 characters they are typing into the edit file.
>
> Data base is:
> MS SQL 2008 R2
> Field type is:
>text
>
> When an update is done the data is truncated at around 63,000 characters.
> I've output that data before update the update can see that all the data is
> being passed to the next page. I also tried hardcoding the data into the
> SQL
> statement to see if it gets truncated and it still does.
>
> With a data type of TEXT I can see no reason truncation is occurring.
>
> Anyone have any ideas on this?
>
> Thanks
>
>
>
> Robert B. Harrison
> Director of Interactive Services
> Austin & Williams
> 125 Kennedy Drive, Suite 100
> Hauppauge NY 11788
> P : 631.231.6600 Ext. 119
> F : 631.434.7022
> http://www.austin-williams.com
>
> Great advertising can't be either/or.  It must be &.
>
> Plug in to our blog: A&W Unplugged
> http://www.austin-williams.com/unplugged
>
>
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: same content different result CFFile vs CFContent

2011-03-15 Thread Mack

First, make sure that cfsavecontent doesn't introduce any spaces:
#myFile#

Second, I would include the file name in quotes in the
Content-Disposition header: http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343031
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Dave Watts

> Any ideas why I am getting the following error when calling a .asmx
> webservice in CF7?? Is it permissions or does it have to be WSDL??
>
> ERROR-
>
> Could not generate stub objects for web service invocation.
> Name: http://edrmservices/edrmsWeb/EyeTest_ws.asmx. WSDL:
> http://DOMAIN/EyeTest_ws.asmx. org.xml.sax.SAXException: Fatal Error:
> URI=null Line=11: The element type "META" must be terminated by the
> matching end-tag "". It is recommended that you use a web browser to
> retrieve and examine the requested WSDL document for correctness. If the
> requested WSDL document can't be retrieved or it is dynamically
> generated, it is likely that the target web service has programming
> errors.

Have you used a web browser to retrieve and examine the requested WSDL
document for correctness?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343030
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Old School CFX (TextCrypt) and RSA Encryption

2011-03-15 Thread Leigh

> and the binary keys
> themselves are base64 encoded.

Also, are they using the same base64 encoding as in CF? I believe there are a 
few variants.


  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343029
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Michael Grant

In fact here's another few threads about the same error:

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:59495
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:48784

Just from a simple read I suspect you are getting an error message because
the response returned isn't a soap object or an xml object. Try going
directly to the ws in a browser and see what you get. Also try appending
"?wsdl" to the end of your url in the invokation. You seem to be targeting
the asmx instead of the wsdl.

HTH

On Tue, Mar 15, 2011 at 7:04 AM, Ian Vaughan <
i.vaug...@neath-porttalbot.gov.uk> wrote:

>
> Hi
>
> Any ideas why I am getting the following error when calling a .asmx
> webservice in CF7?? Is it permissions or does it have to be WSDL??
>
> ERROR-
>
> Could not generate stub objects for web service invocation.
> Name: http://edrmservices/edrmsWeb/EyeTest_ws.asmx. WSDL:
> http://DOMAIN/EyeTest_ws.asmx. org.xml.sax.SAXException: Fatal Error:
> URI=null Line=11: The element type "META" must be terminated by the
> matching end-tag "". It is recommended that you use a web browser to
> retrieve and examine the requested WSDL document for correctness. If the
> requested WSDL document can't be retrieved or it is dynamically
> generated, it is likely that the target web service has programming
> errors.
>
> The error occurred in F:\websitepath\webservice.cfm: line 6
>
> 4 :webservice="http://DOMAIN/EyeTest_ws.asmx";>
> 5 :
> 6 :
> 7 : 
>
>
> Code is below
>
>method="listBooks"
>   returnvariable="reference"
>   webservice="http://DOMAIN/EyeTest_ws.asmx";>
>
>   
> 
>
> 
>
> 
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Errors calling a asmx web service

2011-03-15 Thread Michael Grant

This looks to be your problem: The element type "META" must be terminated by
the matching end-tag.




On Tue, Mar 15, 2011 at 7:04 AM, Ian Vaughan <
i.vaug...@neath-porttalbot.gov.uk> wrote:

>
> Hi
>
> Any ideas why I am getting the following error when calling a .asmx
> webservice in CF7?? Is it permissions or does it have to be WSDL??
>
> ERROR-
>
> Could not generate stub objects for web service invocation.
> Name: http://edrmservices/edrmsWeb/EyeTest_ws.asmx. WSDL:
> http://DOMAIN/EyeTest_ws.asmx. org.xml.sax.SAXException: Fatal Error:
> URI=null Line=11: The element type "META" must be terminated by the
> matching end-tag "". It is recommended that you use a web browser to
> retrieve and examine the requested WSDL document for correctness. If the
> requested WSDL document can't be retrieved or it is dynamically
> generated, it is likely that the target web service has programming
> errors.
>
> The error occurred in F:\websitepath\webservice.cfm: line 6
>
> 4 :webservice="http://DOMAIN/EyeTest_ws.asmx";>
> 5 :
> 6 :
> 7 : 
>
>
> Code is below
>
>method="listBooks"
>   returnvariable="reference"
>   webservice="http://DOMAIN/EyeTest_ws.asmx";>
>
>   
> 
>
> 
>
> 
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343027
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Errors calling a asmx web service

2011-03-15 Thread Ian Vaughan

Hi

Any ideas why I am getting the following error when calling a .asmx
webservice in CF7?? Is it permissions or does it have to be WSDL??

ERROR-

Could not generate stub objects for web service invocation.  
Name: http://edrmservices/edrmsWeb/EyeTest_ws.asmx. WSDL:
http://DOMAIN/EyeTest_ws.asmx. org.xml.sax.SAXException: Fatal Error:
URI=null Line=11: The element type "META" must be terminated by the
matching end-tag "". It is recommended that you use a web browser to
retrieve and examine the requested WSDL document for correctness. If the
requested WSDL document can't be retrieved or it is dynamically
generated, it is likely that the target web service has programming
errors.  
  
The error occurred in F:\websitepath\webservice.cfm: line 6
 
4 :webservice="http://DOMAIN/EyeTest_ws.asmx";>
5 : 
6 :
7 : 


Code is below

http://DOMAIN/EyeTest_ws.asmx";>

   








~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343026
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Old School CFX (TextCrypt) and RSA Encryption

2011-03-15 Thread Leigh

> There may be some other jiggery pokery going on however, ...
> so I would imagine that you may have to pad the start or 
> end with null characters to
> get the full 512 bits.

I could be wrong, but it seems like there is more going on than just a simple 
split, pad with nulls, then base64 decode ... None of the variations I tried 
seemed to work. Did they give you an example of their public key and along with 
how its broken down into modulus and public exponent? 


  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343025
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm