RE: Problem with using variables scope

2007-10-17 Thread Michael Nguyen
I would upgrade CF to 7 or 8 it but it's client's decision, unfortunately:(
I have fixed that by changing variables scope to "this" scope. It works but
you know about the disadvantages of using this.instance rather than
variables.instance. It's just a fix to get it works but I'm not quite happy
and can't explain why variables.instance is visible from outside.

Michael

-Original Message-
From: Dale Fraser [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 October 2007 1:43 PM
To: CF-Talk
Subject: RE: Problem with using variables scope

Never seen that with 7 and now 8 and do that type of thing all the time.

If this is just 6, id say upgrade. Your right, it shouldn't happen.

Regards
Dale Fraser

http://learncf.com


-Original Message-
From: Michael Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 16 October 2007 2:25 PM
To: CF-Talk
Subject: Problem with using variables scope

Hi People,
I have encountered a very weird error with variables scope. 


and 


Then I dump those two objects and found that the AnnouncementBean object is
the same as
AnnouncementType (it has properties and methods of AnnouncementType )
When I comment the creation of the second object then dump it, it show the
correct object.

I found that because 
 is declared in both objects
and when I created the second object, this  variables.instance overrides the
first
variables.instance was created in the first one.

To me, it's really really weird as the variables scope exists only within
that object.

Using CFMX 7 is ok, the CF6 causes this problem. I am running in Unix.

Any help is appreciated. 





~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291308
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem with using variables scope

2007-10-15 Thread Michael Nguyen
Hi People,
I have encountered a very weird error with variables scope. 


and 


Then I dump those two objects and found that the AnnouncementBean object is the 
same as
AnnouncementType (it has properties and methods of AnnouncementType )
When I comment the creation of the second object then dump it, it show the 
correct object.

I found that because 
 is declared in both objects
and when I created the second object, this  variables.instance overrides the 
first
variables.instance was created in the first one.

To me, it's really really weird as the variables scope exists only within that 
object.

Using CFMX 7 is ok, the CF6 causes this problem. I am running in Unix.

Any help is appreciated. 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291167
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Web service error, pls help

2006-11-30 Thread Michael Nguyen
Hi Neil,

I re-write here what problem I have:

I use wsdl2java in JRun to get stubs and wrote a java wrapper class to talk
to those stubs (same as article Creating webservice stubs with wsdl2java in
ColdFusion MX 7
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=eaf0396)

I've got 500 NULL with page title is JRun Servlet Error

When I go to the log exception log, I see the following exceptions:

1) This is when I restart ColdFusion and try it the very first time:

Error","jrpp-0","11/28/06","15:13:42",," The specific sequence of files
included or processed is: C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm "

java.lang.ExceptionInInitializerError
  at org.apache.axis.client.Service.getAxisClient(Service.java:143)
  at org.apache.axis.client.Service.(Service.java:152)
// more lines..

2) And this is what I get any time there after:

"Error","jrpp-0","11/28/06","15:16:22",," The specific sequence of files
included or processed is: C:\Inetpub\wwwroot\transtar2\cfm\Test.cfm "
java.lang.NoClassDefFoundError
  at org.apache.axis.client.Service.getAxisClient(Service.java:143)
  at org.apache.axis.client.Service.(Service.java:152)
  at ..

// and more lines.

The ws that I try to consume is:
http://www.tracking.edi.com.au/webservice/shipmentservice.asmx?wsdl

If you need, I can send you a pdf about this ws.

Please, let me know if you want to know anything more...
Thank you very much

Michael Nguyen

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 29 November 2006 6:50 PM
To: CF-Talk
Subject: Re: Web service error, pls help

Did you post some code? Apologies if you did I am on the move so don't have
direct access to my Outlook!






"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Michael Nguyen
To: CF-Talk
Sent: Wed Nov 29 00:08:23 2006
Subject: RE: Web service error, pls help

I'm testing in my laptop with CFMX 7 Developer Version, Java  Version 1.4.2

Besides, I found the article might related to it but it doesn't fix my
problem yet as I couldn't find two webservices.jar in my machine:
 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19268



-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 November 2006 6:56 PM
To: CF-Talk
Subject: Re: Web service error, pls help

Which version of Java is ColdFusion using?










~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262194
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Web service error, pls help

2006-11-28 Thread Michael Nguyen
I'm testing in my laptop with CFMX 7 Developer Version, Java  Version 1.4.2

Besides, I found the article might related to it but it doesn't fix my
problem yet as I couldn't find two webservices.jar in my machine:
 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19268



-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 November 2006 6:56 PM
To: CF-Talk
Subject: Re: Web service error, pls help

Which version of Java is ColdFusion using?






~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261949
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Web service error, pls help

2006-11-27 Thread Michael Nguyen
cationFilter.java:210)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457
)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
5)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


Has anyone had this kind of error? Any help would be greatly appreciated!



-Original Message-
From: Michael Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 November 2006 4:06 PM
To: CF-Talk
Subject: RE: Web service error, pls help

I have done some test using WSDL2Java (as Scott and Rob said) and it works
fine in java.
However, when I called java wrapper class from coldfusion I've got error 500
Null with page title: "JRun Servlet Error".

I haven't worked it out so far. Does anyone know what problem was?

Thanks,
Michael Nguyen
-Original Message-
From: Scott Krebs [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 25 November 2006 7:32 AM
To: CF-Talk
Subject: Re: Web service error, pls help

Hi Michael,
I recently ran into what I believe is the same problem that you are. The
problem is that CF is weakly-typed, and the WSDL is describing complex data
types that CF cannot figure out what to do with. The bottom line is that CF
*can't* consume that web service using CFML, you must do it using Java (or
...NET if on BD.NET).

Rob Munn (giving credit where it's very much due) answered the same question
for me as so (check out the CFDJ link, the article shows how to get around
the problem):

CF isn't good at invoking complex web services. The best way to deal with
this problem is to use WSDL2Java to create the Java libraries to invoke the
web service, then write a wrapper class in Java to use them. You can then
call the Java wrapper class from CF. There is a learning curve the first
time you tackle it, but after that it gets easier. I wrote an article on it
that you can find here:

http://cfdj.sys-con.com/read/86131.htm


The key is making sure you build the libraries and your wrapper class with
the same versions of the Java Axis classes that CFMX uses.
Rob

So there you go, probably not the news you were looking for though. Hope
that helps!
-Scott

> I've got the following error:
> 
> Attempt to instantiate an abstract class "AutoTelephoneNumber". .
> 
> It means to me that CF tried to create an object from this class, 
> however there is a C# utility demonstrates how to consume the ws works 
> fine.
> I have also downloaded WTP (Web tool platform for eclipse) and it 
> works well enough.
> 
> Can oneone give me an advice what the problem would be and how to get 
> arround of it?
> 
> My codes:
> 
> 
  
> ws = CreateObject("webservice", "http://www.tracking.edi.com.
> au/webservice/shipmentservice.asmx?wsdl");
> addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
> "CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, "http://www.edi.
> com.au/EnterpriseService/", "UserName", "[EMAIL PROTECTED]
> au"); addSOAPRequestHeader(ws, "http://www.edi.com.
> au/EnterpriseService/", "Password", "mike"); 
> 





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261817
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Web service error, pls help

2006-11-26 Thread Michael Nguyen
I have done some test using WSDL2Java (as Scott and Rob said) and it works
fine in java.
However, when I called java wrapper class from coldfusion I've got error 500
Null with page title: "JRun Servlet Error".

I haven't worked it out so far. Does anyone know what problem was?

Thanks,
Michael Nguyen
-Original Message-
From: Scott Krebs [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 25 November 2006 7:32 AM
To: CF-Talk
Subject: Re: Web service error, pls help

Hi Michael,
I recently ran into what I believe is the same problem that you are. The
problem is that CF is weakly-typed, and the WSDL is describing complex data
types that CF cannot figure out what to do with. The bottom line is that CF
*can't* consume that web service using CFML, you must do it using Java (or
..NET if on BD.NET).

Rob Munn (giving credit where it's very much due) answered the same question
for me as so (check out the CFDJ link, the article shows how to get around
the problem):

CF isn't good at invoking complex web services. The best way to deal with
this problem is to use WSDL2Java to create the Java libraries to invoke the
web service, then write a wrapper class in Java to use them. You can then
call the Java wrapper class from CF. There is a learning curve the first
time you tackle it, but after that it gets easier. I wrote an article on it
that you can find here:

http://cfdj.sys-con.com/read/86131.htm


The key is making sure you build the libraries and your wrapper class with
the same versions of the Java Axis classes that CFMX uses.
Rob

So there you go, probably not the news you were looking for though. Hope
that helps!
-Scott

> I've got the following error:
> 
> Attempt to instantiate an abstract class "AutoTelephoneNumber". .
> 
> It means to me that CF tried to create an object from this class, 
> however there is a C# utility demonstrates how to consume the ws works 
> fine.
> I have also downloaded WTP (Web tool platform for eclipse) and it 
> works well enough.
> 
> Can oneone give me an advice what the problem would be and how to get 
> arround of it?
> 
> My codes:
> 
> 
  
> ws = CreateObject("webservice", "http://www.tracking.edi.com.
> au/webservice/shipmentservice.asmx?wsdl");
> addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
> "CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, "http://www.edi.
> com.au/EnterpriseService/", "UserName", "[EMAIL PROTECTED]
> au"); addSOAPRequestHeader(ws, "http://www.edi.com.
> au/EnterpriseService/", "Password", "mike"); 
> 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261695
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Web service error, pls help

2006-11-24 Thread Michael Nguyen
Thank you very much. What you're saying is exactly what I wanted to try.
Rob's article is great and it is what I've been looking for.
I have been trying consume ws using WTP in eclipse but let me have a good
try after this and hope that I will get some more help if I have some
questions...

Michael Nguyen


-Original Message-
From: Scott Krebs [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 25 November 2006 7:32 AM
To: CF-Talk
Subject: Re: Web service error, pls help

Hi Michael,
I recently ran into what I believe is the same problem that you are. The
problem is that CF is weakly-typed, and the WSDL is describing complex data
types that CF cannot figure out what to do with. The bottom line is that CF
*can't* consume that web service using CFML, you must do it using Java (or
..NET if on BD.NET).

Rob Munn (giving credit where it's very much due) answered the same question
for me as so (check out the CFDJ link, the article shows how to get around
the problem):

CF isn't good at invoking complex web services. The best way to deal with
this problem is to use WSDL2Java to create the Java libraries to invoke the
web service, then write a wrapper class in Java to use them. You can then
call the Java wrapper class from CF. There is a learning curve the first
time you tackle it, but after that it gets easier. I wrote an article on it
that you can find here:

http://cfdj.sys-con.com/read/86131.htm


The key is making sure you build the libraries and your wrapper class with
the same versions of the Java Axis classes that CFMX uses.
Rob

So there you go, probably not the news you were looking for though. Hope
that helps!
-Scott

> I've got the following error:
> 
> Attempt to instantiate an abstract class "AutoTelephoneNumber". .
> 
> It means to me that CF tried to create an object from this class, 
> however there is a C# utility demonstrates how to consume the ws works 
> fine.
> I have also downloaded WTP (Web tool platform for eclipse) and it 
> works well enough.
> 
> Can oneone give me an advice what the problem would be and how to get 
> arround of it?
> 
> My codes:
> 
> 
  
> ws = CreateObject("webservice", "http://www.tracking.edi.com.
> au/webservice/shipmentservice.asmx?wsdl");
> addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
> "CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, "http://www.edi.
> com.au/EnterpriseService/", "UserName", "[EMAIL PROTECTED]
> au"); addSOAPRequestHeader(ws, "http://www.edi.com.
> au/EnterpriseService/", "Password", "mike"); 
> 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261640
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Web service error, pls help

2006-11-23 Thread Michael Nguyen
I've got the following error:

Attempt to instantiate an abstract class "AutoTelephoneNumber". .

It means to me that CF tried to create an object from this class, however there 
is a C# utility demonstrates how to consume the ws works fine.
I have also downloaded WTP (Web tool platform for eclipse) and it works well 
enough.

Can oneone give me an advice what the problem would be and how to get arround 
of it?

My codes:


  ws = CreateObject("webservice", 
"http://www.tracking.edi.com.au/webservice/shipmentservice.asmx?wsdl";);
addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
"CompanyCode", "CARCASMEL"); addSOAPRequestHeader(ws, 
"http://www.edi.com.au/EnterpriseService/";, "UserName", "[EMAIL PROTECTED]"); 
addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
"Password", "mike"); 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261594
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


web service error..

2006-11-22 Thread Michael Nguyen
I've got an weird error message when trying to consume webservice:

 coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: 
Found 1 semantic error compiling 
"C:/CFusionMX7/stubs/WS-1056924799/au/com/edi/www/EnterpriseService/UNLOCO.java":
 21. this._value = new au.com.edi.www.EnterpriseService.AutoUNLOCO(_value); 
<-> *** Error: Attempt to instantiate 
an abstract class "AutoUNLOCO". Found 1 semantic error compiling 
"C:/CFusionMX7/stubs/WS-1056924799/au/com/edi/www/EnterpriseService/TelephoneNumber.java":
 21. this._value = new 
au.com.edi.www.EnterpriseService.AutoTelephoneNumber(_value); 
<--> *** Error: Attempt to 
instantiate an abstract class "AutoTelephoneNumber". .


ws:
http://www.tracking.edi.com.au/webservice/shipmentservice.asmx?wsdl

My codes:


  ws = CreateObject("webservice", 
"http://www.tracking.edi.com.au/webservice/shipmentservice.asmx?wsdl";);
addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
"CompanyCode", "CARCASMEL");
addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
"UserName", "[EMAIL PROTECTED]");
addSOAPRequestHeader(ws, "http://www.edi.com.au/EnterpriseService/";, 
"Password", "mike");


There was a demonstration utility that consumes this webservice written in cs 
working fine with this ws.

Could anyone give me an idea what the problem is?

Thanks
Michael Nguyen

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261540
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
Yep, I see your point, you reminded me about it before. In the .Net, the
login.aspx is the login form as well as login action as it submits to
itself. The reason why I did not explain it that clearly as I didn't think
it matter (?) and we have a lot messages just discussed on what is what and 
Sorry if it make some different ;)


 

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, 6 November 2006 2:06 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>The same as I did with the login form in CF. We didn't have any 
cookie from
net yet when we go to login form in CF but still working well.

Now wait a minute. The CF FORM works, but then the ACTION requested by 
CFHTTP doesn't right?
But the CF form doesn't have the session cookie set by the .NET form, 
and then cannot transmit it to
the action. This could be enough to make the login fails.

So, if I were you, I'd try this :
1. CFHTTP the .NET FORM first,
2. get the session cookie,
3. CFHTTP the ACTION with this session cookie.

You already tried something similar:


http://www.mycompany.com/Login.aspx"; method="get"
resolveurl="yes" port="80" throwonerror="yes" redirect="yes"
useragent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
Gecko/20060909 Firefox/1.5.0.7"/>


.


but here you call the action page, you should call the FORM page to get 
the correct
session cookie, not the action page.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259221
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
>>4. DELETE that cookie
 >>5. Click Submit

>> So you deleted the cookie before calling the login action? Then did the 
>> login succeed?

Sorry that I didn't tell you before, it succeeds.
The same as I did with the login form in CF. We didn't have any cookie from
..net yet when we go to login form in CF but still working well.



-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, 6 November 2006 1:19 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

1. Delete all cookies
2. Go to login form in .Net.
3. View cookie: There is a cookie ASP.NET_SessionId=4mnaix453yw12h55ox3myn45

Ah ah! This is their session Id. Now if they keep a session live, they 
may also have some
data stored in it, and if that session is not found by the action 
template, this may be
why the login does not work.
Then you have to make sure your CF script will CFHTTP the form first to 
get that session cookie,
then pass it when you CFHTTP the action for the login.

 >>4. DELETE that cookie
 >>5. Click Submit

So you deleted the cookie before calling the login action? Then did the 
login succeed?
If it did, it does not prove the cookie is not needed, I'm not sure that 
deleting a cookie or all
cookies wil delete the ones already in memory.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259214
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
>> No, you must check with the original login form on the .NET application.

Here is how I check with the original login form on the .Net app.

1. Delete all cookies
2. Go to login form in .Net.
3. View cookie: There is a cookie ASP.NET_SessionId=4mnaix453yw12h55ox3myn45
4. DELETE that cookie
5. Click Submit
6. View Cookie: Two cookies: ASP.NET_SessionId=n4dg3azlmh4ga1mm2wnmmq55
(note: different value) and .ASPXAUTH=314508822A3EDF0...
7. Log off then view cookie: There is only
ASP.NET_SessionId=n4dg3azlmh4ga1mm2wnmmq55 but .ASPXAUTH=314508822A3EDF0...
does not exist.

>> The thing that is weird is that, with cookies disabled, the login action 
>> will fail.
>> The question then is how does the login action know that cookies are 
>> disabled?

I thought that this is the key but I don't have the answer. :(
I am 100% sure but I think that the thing which you asked me to disable
cookie and try to login using login form is a very important which gave us
the reason why login with cfhttp failed.

>> You told me that the login fails when cookies are disabled, but what if 
>> they are enabled,
>> but Javascript is disabled ?

The login action is working well with JS disabled and cookie is enabled.

>> Finally, is there an address (and some code + password) I could use to 
>> test the real application
>> by myself?

I would be more than happy to give you one when I get a new testing account.
Probably not soon as it's public holidays now in Australia :(

Anyway, I really appreciate your time and help so far




-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 5 November 2006 1:12 PM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>2- Go to http://localhost/SingleLogin/login.cfm (which is the login form)
3- View Cookies: There is a cookie has been written by CF with CFID,

No, you must check with the original login form on the .NET application.
The CF template you've made does not set any cookie (except the one set 
by CF).
The idea is the check if the ORIGINAL login form in the .NET application
sets a cookie, because this is the one you must fake when you simulate 
the login form by CFHTTP.

The thing that is weird is that, with cookies disabled, the login action 
will fail.
The question then is how does the login action know that cookies are 
disabled?

The only way I have in mind is that the action will verify the presence 
of a cookie
set by the form.

There is also a Javascript property "cookieEnabled" that the system can 
also check.

You told me that the login fails when cookies are disabled, but what if 
they are enabled,
but Javascript is disabled ?

Finally, is there an address (and some code + password) I could use to 
test the real application
by myself?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259211
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-04 Thread Michael Nguyen
Thx Claude, here is what I have been trying

1- Delete all Fire fox cookies
2- Go to http://localhost/SingleLogin/login.cfm (which is the login form)
3- View Cookies: There is a cookie has been written by CF with CFID,
CFTOKEN, JSESSIONID. Note: No cookie from ASP.net
4- Click Submit Result: Is redirected to member home page: successful
5- View cookie: There are cookies .ASPXAUTH=59EDCFD5BF... and
ASP.NET_SessionId=yynrg545cibzz4554zrsfh45
6- Logout
7- View cookie: There is only ASP.NET_SessionId=yynrg545cibzz4554zrsfh45,
the .ASPXAUTH has been expired and doesn't exist.

Is there anything you think of?



-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 5 November 2006 3:04 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>Yes, but you are doing it from your browser.

Another try:
When you call the login action from your CF login form, the request is 
actually sent by your browser.
Then, if may have some cookie in it set previously by the server, it 
will recognize it and the
login is accepted.
When calling from CFHTTP, you don't have these cookies, and the login fails.

Now, can you try again your CF login form just after having erased all 
your cookies.
If some check cookie was set initially by the normal login form, your CF 
form should fail now.

Then you know what you have to look for.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259187
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
>> If the login action has been especially designed to block any robot 
>> intrusion,
>> you're not finished with your project.

I don't think so Claude. The reason is the html form (login1.cfm) is working
well and I try to simulate the login process exactly as we login as that
html form.

>> One thing I'd like to know: what is the feedback you are getting from 
>> the login when it fails?
>> I mean from your CFHTTP. Any message about the reason it failed?

The login process happens like this: If the login is successful then it
redirects to another page like member home page. If not, it redirects user
to login form with an error message: Login failed!

When using login1.cfm (which is working) then after submitting, the member
home page is shown. If I type in incorrect details then it redirects to
login form say login.aspx with message Login Failed.

When using CFHTTP and dump cfhttp.filecontent, the login form login.aspx is
shown WITHOUT any error message just like you get there first time. Claude,
remember you asked me to try to disable cookie and submit the form that
works? I got the same screen as I do with cfhttp which is login form WITHOUT
any error message. I would suggest that the problem might be is the asp.net
think that the cookie is disabled and the login process does not happen. It
simply redirects user to the login page.

I have been pulling out my hair but no luck so far...

Thx


-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 1:59 PM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>Sorry if something is unclear.

Well, it is getting complex indeed.
If the login action has been especially designed to block any robot 
intrusion,
you're not finished with your project.
One thing I'd like to know: what is the feedback you are getting from 
the login when it fails?
I mean from your CFHTTP. Any message about the reason it failed?

Also, I suppose you looked at the source code of the login form, since 
you are trying to emulate it.
Was there any Javascript in it?

May be if you could show us the code?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259155
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Hi all,

One thing that I've noticed and think that it may be or may not be related
to the problem:

After normal successful logged in into asp.net using html form, the cookie
has one more name-value:
..ASPXAUTH=9857AD003ACCC01 which we didn't have before logged in.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259150
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Thanks Claude, you always pointed out the very good point. I very
appreciated your messages and suggestion.

I've made a little bit of change to make sure that the cookie I got is
correct from the form page but no luck.

One thing I would like to mention here is the html form that works (says
login1.cfm) hasn't got any cookie info from asp.net app yet because this
form lies on CF server. It likes the user go to cf login1.cfm (note: this is
a login1.cfm locates in CF application and it has got any info of asp.net
before hand) and submit login details to asp.net and the results is asp.net
redirects user to the member home page in asp.net application. 

I make another login2.cfm which will submit to itself. In that CF will log
the user in CF app (that's no problem) and also makes a http request to
asp.net(using cfhttp) to also log user into asp.net application.

The thing is the login1.cfm has got any info from asp.net yet but it does
its work, however the login2.cfm can get logged in into asp.net.

Sorry if something is unclear. Please let me know if anything you might
think of.

Thanks a lot 

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 3:08 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>The way I did is use cfhttpparam type="cookie" to send cookie information
back to the asp.net but it doesn't seem to work.

Yeah, but as I told you, unless the code you copied on your message is 
not correct,
you should get the cookies from the form page, not the action page.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259148
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Thanks guys for all your messages.
Sorry that I couldn't get back to you immediately as I got your message at
3am (Australian time) ;)

>> Jason wrote:
>> What I understand is that you have an aspx page that you can log into by
>> making a direct http call from the client browser, to the aspx page.

>> What I also understand that you are trying to do, is have a cfm page that
>> makes a similar aspx call (via CFHTTP) to log in the client.

Jason, that's correct.

>> The challenge in this is that any settings passed back from the aspx page
>> will be sent to the ColdFusion server. They will NOT be passed back to 
>> the client browser from the CF server.

Yeah... I would think that if I dump cfhttp.filecontent I expect to see a
member login page in successful case. 

>> They will NOT be passed back to the client browser from the CF server. 
>> Even though they are sent to the ColdFusion server, the server will not
>> "remember" the response on a subsequent request.

The thing is the html form I've made does the same thing as cfhttp does, but
one can get through and one cannot. For the next request I should pass
cookie info (in every subsequent request) but it is my second step. My first
step is to see asp member home page when using cfhttp.


-Original Message-
From: Jason Troy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 1:56 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

Michael, 

I know you've received lots of suggestions already, but I want to backup a
little bit and try to unerstand what you're trying to do. I've read the
thread history and I think there is perhaps a misunderstanding somewhere.

What I understand is that you have an aspx page that you can log into by
making a direct http call from the client browser, to the aspx page.

What I also understand that you are trying to do, is have a cfm page that
makes a similar aspx call (via CFHTTP) to log in the client. 

The challenge in this is that any settings passed back from the aspx page
will be sent to the ColdFusion server. They will NOT be passed back to the
client browser from the CF server. Even though they are sent to the
ColdFusion server, the server will not "remember" the response on a
subsequent request.

Hopefully that makes sense. Please feel free to clarify if I have
misunderstood the intended functionality.

Jason Troy



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259144
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
The way I did is use cfhttpparam type="cookie" to send cookie information
back to the asp.net but it doesn't seem to work.



-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 2:25 AM
To: CF-Talk
Subject: RE: Using CFHTTP to login

Michael,

You are going to have to "get" the cookie scope from your browser and send
it along with the page.

1) Create an ASPX page that loops through the cookie scope and sets
Javascript variables.
2) Embed the ASPX page as a Javascript on your CF page ()
3)  copy the JS variables into the form scope using javascript and post them
to your CF handler 
4) Send them back as cookies in your CFHTTP post...

It's also possible that simply embedding the js/aspx into the CF page will
set the appropriate cookies and you won't need any JS... They will exist as
cookies in your CF cookie scope and your  code below would work. I'm going
to bet that would work differently in different browsers though.

-Mark




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259061
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
>> Are you trying to let your CF app interact with the .NET app, or
>> are you trying to log your user into .NET so that later, when that user
>> visits the .NET app directly, that user is logged in?

The latter was my task


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259059
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
>Claude, if I disable cookie then I couldn't login form the login form that
>works if cookie enabled. I think that was the point.
>
>When I submit the form (that works) if cookie turned off then it show me
>exactly as when I cfhttp.
>How can we get around of it?
>What I have tried is do cfhttp twice. The first cfhttp is to get cookie from
>asp.net. The second cfhttp is to submit form with the cookie information.
>(see the code bellow). However, I haven't got it done yet.
>
>Any thoughts?
>
>
>http://www.mycompany.com/Login.aspx"; method="get"
>resolveurl="yes" port="80" throwonerror="yes" redirect="yes"
>useragent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
>Gecko/20060909 Firefox/1.5.0.7"/>
>
>
>   
>   
>   
>   
>   
>   
>#i# #cookieKey#
>   structInsert(cookieStruct,cookiekey,cookievalue)>
>   
>   
>
>
>   http://202.134.246.83/Tracking/Login/Login.aspx";
>method="post" resolveurl="yes" port="80" 
>   redirect="yes"
>   useragent="#cgi.HTTP_USER_AGENT#">
>   
>   
>   
>   value="AIRPORT"/>
>   value="[EMAIL PROTECTED]"/>
>   value="luggage"/>
>   value="Login"/>
>   
>
>
>-Original Message-
>From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
>Sent: Saturday, 4 November 2006 1:34 AM
>To: CF-Talk
>Subject: Re: Using CFHTTP to login
>
> >>I think that Claude understands me right.
>
>OK, now that we are on the good tracks, let's see.
>Could it be the server checking for something in the user browser that 
>you didn't think of?
>Javascript for instance. (My own login procedure on my systems work this 
>way)
>Try your login form that works (and which is NOT the same as the login 
>action ;-) from your browser
>with Javascript disabled and see if you can still login.
>Try also with cookie deactivated and see if it makes any difference.
>
>Also, you didn't tell, but what kind of answer do you get in return from 
>your CFHTTP attempt?
>Any message about why the login was refused?
>
>-- 
>___
>REUSE CODE! Use custom tags;
>See http://www.contentbox.com/claude/customtags/tagstore.cfm
>(Please send any spam to this address: [EMAIL PROTECTED])
>Thanks.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259049
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Claude, if I disable cookie then I couldn't login form the login form that
works if cookie enabled. I think that was the point.

When I submit the form (that works) if cookie turned off then it show me
exactly as when I cfhttp.
How can we get around of it?
What I have tried is do cfhttp twice. The first cfhttp is to get cookie from
asp.net. The second cfhttp is to submit form with the cookie information.
(see the code bellow). However, I haven't got it done yet.

Any thoughts?


http://www.mycompany.com/Login.aspx"; method="get"
resolveurl="yes" port="80" throwonerror="yes" redirect="yes"
useragent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
Gecko/20060909 Firefox/1.5.0.7"/>








 #i# #cookieKey#





http://202.134.246.83/Tracking/Login/Login.aspx";
method="post" resolveurl="yes" port="80" 
redirect="yes"
useragent="#cgi.HTTP_USER_AGENT#">










-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 1:34 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 >>I think that Claude understands me right.

OK, now that we are on the good tracks, let's see.
Could it be the server checking for something in the user browser that 
you didn't think of?
Javascript for instance. (My own login procedure on my systems work this 
way)
Try your login form that works (and which is NOT the same as the login 
action ;-) from your browser
with Javascript disabled and see if you can still login.
Try also with cookie deactivated and see if it makes any difference.

Also, you didn't tell, but what kind of answer do you get in return from 
your CFHTTP attempt?
Any message about why the login was refused?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259041
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Yes, Mark. The login page directs me to a member home page and I did include
redirect='yes'. 

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 November 2006 1:15 AM
To: CF-Talk
Subject: RE: Using CFHTTP to login

Michael,

Does the login page do a redirect to a different page?  If so your CFHTTP
call should include REDIRECT="yes" or it will not follow the header
instruction.

-Mark 

-Original Message-
From: Michael Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 03, 2006 7:00 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

Hi everyone again,

Sorry for getting back to you late and for the not very clear question.
I think that Claude understands me right. The login.aspx is NOT form page
but action page. The html form that I wrote was NOT extract from login.aspx
Both html form and cfhttp is to submit to action page login.aspx but the
html does it successfully and the cfhttp does not.

My task is to provide a single login to different applications - asp.net and
CF.
What I have tried to do is provide a CF login page where the user can login
into both systems.

The html form that I posted is only for testing that I successfully login
into asp.net.

What I thought I might do is to make a cf login page and if the user
successfully logged in into cf then the cfhttp will submit the login details
to asp.net but for some reason I could not get it through and what I don't
understand so far is the cfhttp does the same thing as a html form does.
When I dump cfhttp.filecontent it shows me the login page (which is not
successful login, it should show the member homepage if successfully logged
in)

Thank you for all your messages and I appreciated your time and help.

Michael


>>>The form posts to the login.aspx page,
>which tells me he is posting to the (same) form page, which is not 
>impossible to do.
>
>Indeed, but this does not even has to be the case here.
>Michael never said that the sample code for the form he gave was 
>extract from the login.aspx page.
>
>As you said, the form he sends by hand works, which proves that 
>login.aspx IS NOT the form page, but the action page, then what he is 
>trying to HTTP IS the action page, NOT the form page.
>
>--
>___
>REUSE CODE! Use custom tags;
>See http://www.contentbox.com/claude/customtags/tagstore.cfm
>(Please send any spam to this address: [EMAIL PROTECTED]) 
>Thanks.





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259033
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
Hi everyone again,

Sorry for getting back to you late and for the not very clear question.
I think that Claude understands me right. The login.aspx is NOT form page but 
action page. The html form that I wrote was NOT extract from login.aspx Both 
html form and cfhttp is to submit to action page login.aspx but the html does 
it successfully and the cfhttp does not.

My task is to provide a single login to different applications - asp.net and CF.
What I have tried to do is provide a CF login page where the user can login 
into both systems.

The html form that I posted is only for testing that I successfully login into 
asp.net.

What I thought I might do is to make a cf login page and if the user 
successfully logged in into cf then the cfhttp will submit the login details to 
asp.net but for some reason I could not get it through and what I don't 
understand so far is the cfhttp does the same thing as a html form does. When I 
dump cfhttp.filecontent it shows me the login page (which is not successful 
login, it should show the member homepage if successfully logged in)

Thank you for all your messages and I appreciated your time and help.

Michael


>>>The form posts to the login.aspx page,
>which tells me he is posting to the (same) form page, which is not
>impossible to do.
>
>Indeed, but this does not even has to be the case here.
>Michael never said that the sample code
>for the form he gave was extract from the login.aspx page.
>
>As you said, the form he sends by hand works, which proves that login.aspx
>IS NOT the form page, but the action page, then what he is trying to HTTP
>IS the action page, NOT the form page.
>
>-- 
>___
>REUSE CODE! Use custom tags;
>See http://www.contentbox.com/claude/customtags/tagstore.cfm
>(Please send any spam to this address: [EMAIL PROTECTED])
>Thanks.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Michael Nguyen
>>>The form posts to the login.aspx page,
>which tells me he is posting to the (same) form page, which is not
>impossible to do.
>
>Indeed, but this does not even has to be the case here.
>Michael never said that the sample code
>for the form he gave was extract from the login.aspx page.
>
>As you said, the form he sends by hand works, which proves that login.aspx
>IS NOT the form page, but the action page, then what he is trying to HTTP
>IS the action page, NOT the form page.
>
>-- 
>___
>REUSE CODE! Use custom tags;
>See http://www.contentbox.com/claude/customtags/tagstore.cfm
>(Please send any spam to this address: [EMAIL PROTECTED])
>Thanks.

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259013
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Using cfhttp to login

2006-11-02 Thread Michael Nguyen
Hi everyone,

I am still struggling with using cfhttp to log in into an ASP.NET app.

The weird thing is when I used the normal html form (see bellow) then I could 
log in successfully:

http://www.mycompany.com/Login.aspx";  name="form1">

  

  
  
   

However, when I use cfhttp (bellow) to login then I could not log in:

 

http://www.mycompany.com/Login.aspx"; method="post" 
resolveurl="yes" port="80" 
 redirect="yes"
 useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) 
Gecko/20060909 Firefox/1.5.0.7">
  
  
  
  


Can anyone tell me how differently the asp.Net treats to these above two 
approaches and why I couldn’t login when using cfhttp?
Any help is appreciated.

Michael

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258954
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Using CFHTTP to login

2006-11-02 Thread Michael Nguyen
Hi everyone,

 

I am still struggling with using cfhttp to log in into an ASP.NET app.

 

The weird thing is when I used the normal html form (see bellow) then I
could log in successfully:

 

http://www.mycompany.com/Login.aspx";
name="form1">

  

  

  

   



 

However, when I use cfhttp (bellow) to login then I could not log in:

 

http://www.mycompany.com/Login.aspx"; method="post"
resolveurl="yes" port="80" 

 redirect="yes"

 useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
Gecko/20060909 Firefox/1.5.0.7">

  

  

  

  



 

Can anyone tell me how differently the asp.Net treats to these above two
approaches and why I couldn't login when using cfhttp?

 

Any help is appreciated.

 

Michael



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258952
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem with using cfhttp to login to asp .net

2006-11-01 Thread Michael Nguyen
I'm having a problem with login to a asp.net. 
Firstly, I use cfhttp to make a request to the login page to get cookie info 
(ASP.NET_SessionId) Secondly, using cfhttp to login (passing ASP.NET_SessionId 
in cfhttpparam type="cookie" and my login details) Finally, I use cfhttp to 
request the index.aspx page to check whether the login is successfull but it 
seems that I couldn't log in. It return me back to the login page.
My code is:
 http://www.mycompany.com/Login.aspx"; method="get" resolveurl="yes" 
port="80" throwonerror="yes" redirect="yes"
 useragent="#cgi.HTTP_USER_AGENT#"/>




  
  cfset structInsert(cookieStruct,cookiekey,cookievalue)>
 



http://www.mycompany.com/Login.aspx"; method="post" 
resolveurl="yes" port="80" 
throwonerror="yes" redirect="yes"
useragent="#cgi.HTTP_USER_AGENT#">

   
  
  
  
   

 http://www.mycompany.com/index.aspx";
resolveurl="yes" port="80" throwonerror="yes" redirect="yes"> 
   
 

 #cfhttp.FileContent#"

I have a look in the cookie if I logged in using html page, i also see cookie 
key .ASPXAUTH and value is E94ED8F which I don't see that in the response 
header when using cfhttp.

I think that this might be a well-known problem for many people. 
Does anyone know what the problem is?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258685
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4