|
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
|
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! Davanum Srinivas
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! Davanum Srinivas
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! Davanum Srinivas
- Re: Clients, Authorization, and more Fun! NYY96
- Re: Clients, Authorization, and more Fun! Davanum Srinivas
- Re: Clients, Authorization, and more Fun! NYY96
