I'm testing a .NET web services interface, which requires the 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?

- Jim
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to