Brian, thanks for responding. You can read my previous posts for further
details about exactly what I am doing and trying to do.

In it's simplest form, I am trying to get the following code to work:

/tests/Application.cfm:
<cflogin>
        <cfloginuser name="#cflogin.name#" password="#cflogin.password#"
roles="xyz">
</cflogin>

/tests/test.cfc:
<cfcomponent>
        <cffunction name="init" output="No" returntype="struct" access="remote">
                <cfreturn cflogin />
        </cffunction>
</cfcomponent>

/test.cfm
<cfinvoke webservice="http://localhost/tests/test.cfc?wsdl"; method="init"
returnvariable="ref" username="test" password="foo"/>
<cfdump var="#ref#">

When I run this code, I get an Axis error "cflogin is undefined". If I
exchange the <cflogin> code for <cfset cflogin=getHTTPRequestData() /> in
the Application.cfm, I get an Axis error "Document root element missing". I
need to get access to the request authorization header from within my
responding CFC.

NAT

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Brian LeRoux
> Sent: Thursday, September 11, 2003 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] getHTTPRequestData() in pseudo-constructor
>
>
>
> > > Do using cflogin actually work?
> >
> > No. Similar problem, whether using cflogin from the
> > pseudo-constructor or in Application.cfm. This makes me
> > wonder how the heck anyone is able to secure their web
> > services, outside of running an authentication inside every
> > method, and adding a username and password argument to each
> > and every method.
> >
> > Is no one actually using CFCs to publish web services?
>
> I use cflogin w/o problems in the Application.cfm. What are doing /
> trying to do exactly...?
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to