> user to instantiate a custom class and pass in authentication
> information as part of the web service request. If I want to
> invoke it via .NET, the invocation code is fairly straightforward:
>
> private void Button1_Click(object sender, System.EventArgs e) {
> AuthWebService.WebService webService = new
> AuthWebService.WebService();
> AuthWebService.AuthHeader authentication = new
> AuthWebService.AuthHeader();
>
> authentication.Username = "test";
> authentication.Password = "test";
>
> webService.AuthHeaderValue = authentication;
> string strData = webService.SensitiveData();
>
> Response.Write(strData);
> }
>
> "AuthWebService" is a reference to the web service itself.
> "AuthHeader" is a public class exposed so the user can instantiate it.
> "AuthHeaderValue" holds the instance of the AuthHeader class,
> provided I can instantiate the rascal.
> "SensitiveData", of course, returns Sensitive Data :)
>
> However, using CFINVOKE, I'm not sure how I'd effectively
> mimic that process. Since this is exposed pubicly, what
> would I use, Java-wise, via CFINVOKE to make this work?
Assuming that the .NET web service is using HTTP Basic Authentication, you'd
simply specify the appropriate USERNAME and PASSWORD attributes within
CFINVOKE.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

