I have to go to production with this product eventually. Axis 1.1 is all I
am using currently.
In a message dated 7/29/2004 11:06:11 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:
Are u
using Axis 1.2 Beta 2?
----- Original Message ----- From:
[EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thu, 29 Jul 2004 10:59:23
EDT Subject: Re: Clients, Authorization, and more Fun! To:
[EMAIL PROTECTED]
In short I was wondering if I can merge
both of the methods below to have a handler easily call the funciton but
also by implementing HTTP Authentication
In a message
dated 7/29/2004 10:57:57 AM Eastern Standard Time, [EMAIL PROTECTED]
writes:
Hello Everyone, Previously I was calling my Axis
Service very effectively using a handler and using the following
call: boolean success = handler.postReport(groupName, password,
accountName, Data); Now I am moving forward with the service
and want to add HTTP Authentication. I have read up on this and I realize I
can do it the following way by using the Call type:
Call call = (Call)
s.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new
QName("post"));
call.setUsername(groupName);
call.setPassword(password);
Object success = call.invoke(new Object[]
{groupName, password, "Polio", Data}); Previously the Handler
was wonderful for outputting errors, showing the SOAP Envelopes, and for
clarity purposes. When I use call.invoke, I don't get such a luxury. In
fact, the return value becomes object instead of Boolean, so I am not even
getting the true value of the call returned. Is there any way
I can incorporate the simple calling of the service with the
handler List
handlerChain = s.getHandlerRegistry().getHandlerChain(portName);
HandlerInfo hi = new
HandlerInfo(LoggingHandler.class,null,null);
handlerChain.add(hi); AdminHandler handler =
(AdminHandler) s.getPort(portName, AdminHandler.class); and
HTTP Authentication without losing the vlaue I get by the handler when
using Call? THanks for your help everyone! James Crosson
-- Davanum Srinivas -
http://webservices.apache.org/~dims/
|
- Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96