default SecurityProvider as MessageContext property

2004-08-27 Thread Daniel Amadei
Hi All, Do you know how can I set a custom security provider as the default, being kept as the MessageContext Security Provider property? (Maybe using WSDD) Thanks Daniel Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!

Extracting the return value from MessageContext Obj?

2004-08-20 Thread Christian Villoslada
In the "responseFlow" for a service I'd like a Handler toextract the return object, modify it, and put it back into the MessageContext. I know how to get the ParameterDesc represention like so: public void invoke(MessageContext arg0) throws AxisFault { OperationDesc operationD

How to get a MessageContext from a client

2004-07-28 Thread Kapil Khanna
I am consuming an external web service and am trying to get a handle to the MessageContext via MessageContext.getCurrentContext(). Unfortunately the MessageContext i get is always null. The purpose of getting to the MessageContext is to get to the SOAPRequest and SOAPResponse messages

Re: How to get a MessageContext from a client

2004-07-28 Thread Michael Thompson
You can setup client side handlers in client-config.wsdd. Just place it on your clients classpath. --m Kapil Khanna wrote: I am consuming an external web service and am trying to get a handle to the MessageContext via MessageContext.getCurrentContext(). Unfortunately the MessageContext i

Re: How to get a MessageContext from a client

2004-07-28 Thread Kapil Khanna
) Any clues? You can setup client side handlers in client-config.wsdd. Just place it on your clients classpath. --m Kapil Khanna wrote: I am consuming an external web service and am trying to get a handle to the MessageContext via MessageContext.getCurrentContext(). Unfortunately

Re: How to get a MessageContext from a client

2004-07-28 Thread Kapil Khanna
am consuming an external web service and am trying to get a handle to the MessageContext via MessageContext.getCurrentContext(). Unfortunately the MessageContext i get is always null. The purpose of getting to the MessageContext is to get to the SOAPRequest and SOAPResponse messages. There have

RE: How to get a MessageContext from a client

2004-07-28 Thread Brian Freeman
, 2004 4:44 PM To: [EMAIL PROTECTED] Subject: Re: How to get a MessageContext from a client I defined a simple Handler class and tried to set up the handler in the client-config.wsdd file. I am using the following client-config.wsdd file ?xml version=1.0 encoding=UTF-8? deployment xmlns=http

Re: How to get a MessageContext from a client

2004-07-28 Thread Kapil Khanna
PROTECTED] Sent: Wednesday, July 28, 2004 4:44 PM To: [EMAIL PROTECTED] Subject: Re: How to get a MessageContext from a client I defined a simple Handler class and tried to set up the handler in the client-config.wsdd file. I am using the following client-config.wsdd file ?xml version=1.0

Re: How to get a MessageContext from a client

2004-07-28 Thread Kapil Khanna
My bad. The class i was using was implementing the javax.xml.rpc.Handler interface. It should be implementing the org.apache.axis.Handler interface. Once i did that i got the handler to work. Thanks for all the help.

Getting header from MessageContext

2004-04-30 Thread Vineet Singh
Hi all how can i get the soap header from MessageContext. i have tried to get the SOAPPart then SOAPEnvelope and the SOAPHeader. i am tryibg to implement this in a log class which extends the basis handler class. thaks in advance vineet

RE: MessageContext doesn't work at client side?

2003-11-15 Thread I-Sampige, Srinivas
Chris, From you posting I am a bit confused. As far as I understand, after the client has completed the call to the web service, the MessageContext object can still be accessed by retrieving it from the Call object by invoking the getMessageContext() method. So, how can it be said

Re: MessageContext doesn't work at client side?

2003-11-14 Thread Michael Binz
I have created a service and successfully deployed. At client side, I created a ClientMain.java which only contains a main method for the purpose of testing. I tried to use MessageContext.getCurrentContext(), but I always get NullPointerException. Does MessageContext only exist

RE: MessageContext doesn't work at client side?

2003-11-14 Thread chris
Gloria - At what step are you attempting to capture the message context? MessageContext is *only* present and valid while the client is processing the SOAP method call. Until the call method is triggered by ClientMain, a message context doesn't exist. By the time control is returned

Client accessing MessageContext?

2003-11-13 Thread Greg Hess
is working fine as far as the client sending up an attachment to the server. But when my client receives an attachment from the server and I try and read it the same way as the server using the following getAttachments(). The MessageContext is null. I am not sure what is wrong. Does the client not have

RE: Client accessing MessageContext?

2003-11-13 Thread I-Sampige, Srinivas
Well, I am doing a similar thing..my code for receiving attachments works - Client snippet... String[] array = new String[1]; array[0] = hello; org.apache.axis.MessageContext messageContext = call.getMessageContext(); org.apache.axis.Message currentMessage

MessageContext doesn't work at client side?

2003-11-13 Thread Yan Lin
Hi, I have created a service and successfully deployed. At client side, I created a ClientMain.java which only contains a main method for the purpose of testing. I tried to use MessageContext.getCurrentContext(), but I always get NullPointerException. Does MessageContext only exist

Getting MessageContext in Web-Service Implementation

2003-11-10 Thread Stefan . A . Schuster
Hi there, I have a simple WebService written in Java and invoked through the RPC provider. In one of the methods of the service I need a Client-Certificate (X509). The only way to get this seems to write a new provider that passes the messageContext on to the client. Probably a handler would

RE: MessageContext not conform to standard

2003-10-10 Thread Vy Ho
:19 PM To: '[EMAIL PROTECTED]' Subject: MessageContext not conform to standard Hi, I try to do some simple param init things. So I see this example: MessageContext msgContext = MessageContext.getContext(); SOAPServiceservice= msgContext.getService(); paramValue

MessageContext not conform to standard

2003-10-10 Thread Vy Ho
Hi, I try to do some simple param init things. So I see this example: MessageContext msgContext = MessageContext.getContext(); SOAPServiceservice= msgContext.getService(); paramValue = service.getOption(paramName); However, this MessageContext is from: import

MessageContext not conform to standard

2003-10-10 Thread Vy Ho
Hi, I try to do some simple param init things. So I see this example: MessageContext msgContext = MessageContext.getContext(); SOAPServiceservice= msgContext.getService(); paramValue = service.getOption(paramName); However, this MessageContext is from: import

Is the configuration of MessageContext buggy ?

2003-09-19 Thread Haug Thomas
[]) itself calls the invoke(). This method calls the reset() method of the MessageContext class, which removes all settings of the MessageContext Can anybody of you tell me how to configure the HTTP Transport to use keep-alive. Thank you very much, Thomas

RE: Axis MessageContext to the WebService

2003-08-19 Thread Robert Lowe
Skovenborg [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003 11:44 PM To: [EMAIL PROTECTED] Subject: RE: Axis MessageContext to the WebService Hej Rober and Jim Thank's a lot. I did'nt know this ThreadLocal mechanism. For other purposes, do you know any examples how to use it. /Jakob Robert

RE: Axis MessageContext to the WebService

2003-08-18 Thread Jim Harris
Jakob Usually the MessageContext is available to a Web service invoked by axis through the static method of the MessageContext class as follows: MessageContext msgContext = MessageContext.getCurrentContext(); I think that is the one... HTH Jim -Original Message- From: Jakob

Re: RE: Axis MessageContext to the WebService

2003-08-18 Thread Jakob Skovenborg
Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob Jim Harris [EMAIL PROTECTED] wrote: Jakob Usually the MessageContext is available to a Web service invoked by axis through the static method of the MessageContext class

RE: RE: Axis MessageContext to the WebService

2003-08-18 Thread Jim Harris
August 2003 15:55 To: [EMAIL PROTECTED] Subject: Re: RE: Axis MessageContext to the WebService Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob Jim Harris [EMAIL PROTECTED] wrote: Jakob Usually the MessageContext

Re: RE: Axis MessageContext to the WebService

2003-08-18 Thread Robert Lowe
MessageContext to the WebService Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob Jim Harris [EMAIL PROTECTED] wrote: Jakob Usually the MessageContext is available to a Web service invoked by axis through the static method

Re: RE: Axis MessageContext to the WebService

2003-08-18 Thread Peter Mount
On Mon, 18 Aug 2003, Jakob Skovenborg wrote: Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob It uses ThreadLocal, so it returns the current MessageContext for that Thread. Peter -- Peter Mount [EMAIL PROTECTED] http

RE: Axis MessageContext to the WebService

2003-08-18 Thread Jakob Skovenborg
Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob Jim Harris [EMAIL PROTECTED] wrote: Jakob Usually the MessageContext is available to a Web service invoked by axis through the static method of the MessageContext

RE: Axis MessageContext to the WebService

2003-08-18 Thread Jakob Skovenborg
that invokes it. - Rob - Original Message - From: Jakob Skovenborg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 18, 2003 10:54 PM Subject: Re: RE: Axis MessageContext to the WebService Hej Jim How does that work with concurrent WebServices? Wont you get

SV: Axis MessageContext to the WebService

2003-08-18 Thread Hans Jakob Skovenborg
Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob -Oprindelig meddelelse- Fra: Jim Harris [mailto:[EMAIL PROTECTED] Sendt: 18. august 2003 15:10 Til: [EMAIL PROTECTED] Emne: RE: Axis MessageContext to the WebService

RE: Axis MessageContext to the WebService

2003-08-18 Thread Jim Harris
PROTECTED] Sent: 18 August 2003 15:08 To: '[EMAIL PROTECTED]' Subject: SV: Axis MessageContext to the WebService Hej Jim How does that work with concurrent WebServices? Wont you get a MessageContext belongs to another session. /Jakob -Oprindelig meddelelse- Fra: Jim Harris [mailto

RE: Axis MessageContext to the WebService

2003-08-18 Thread Jakob Skovenborg
Hej Jim Actualy there are a method in MessageContext called getSession(). I thought that it was the HttpServletRequest getSession(). /Jakob Jim Harris [EMAIL PROTECTED] wrote: I am not sure what you mean... It depends what you mean by 'session'. By default there is no concept of a session

Axis MessageContext to the WebService

2003-08-16 Thread Jakob Skovenborg
How do I pass the Axis MessageContext from the Pivot Handler to the WebService. My Webservice has to get access to a backend service which need the UserID from MessageContext. /Jakob

Problem getting MessageContext object from client stubs

2003-08-14 Thread Naresh Agarwal
Hi How can I get MessageContext object at client side (from the stubs generated from WSDL2Java tool) If I use MessageContext.getcurrentContext(), then I get null value. thanks, Naresh Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software

MessageContext interface in JAX-RPC

2003-07-23 Thread Dimuthu Leelarathne
Hi, I was going through MessageContext interface provided in JAX-RPC. To be precise it is "javax.xml.rpc.handler.MessageContext". It contains 4 methods as containsProperty(String name), getProperty(Stirng name), getPropertyNames( ), removeProperty(String name) Now my questi

MessageContext interface in JAX-RPC

2003-07-22 Thread Jeyakumaran.C
Hi, I was going through MessageContext interface provided in JAX-RPC. To be precise it is "javax.xml.rpc.handler.MessageContext". It contains 4 methods as containsProperty(String name), getProperty(Stirng name), getPropertyNames( ), removePrope

Simple MessageContext problem...

2003-07-10 Thread Chen, Li (Research, YOH)
Hi All, There seems to be a problem with using MessageContext object in Axis 1.1. I've deployed a service (a .java file, not JWS) with deploy.wsdd and all, plus a handler that intercepts the incoming SOAP message before it arrives the service...there was no problem accessing MessageContext

Re: Simple MessageContext problem...

2003-07-10 Thread Tony Opatha
with using MessageContext object in Axis1.1. I've deployed a service (a .java file, not JWS) with deploy.wsdd andall, plus a handler that intercepts the incoming SOAP message before itarrives the service...there was no problem accessing MessageContext (forusername and password) in the handler, but wh

RE: Simple MessageContext problem...

2003-07-10 Thread Chen, Li (Research, YOH)
answer embedded in message: -Original Message-From: Tony Opatha [mailto:[EMAIL PROTECTED]Sent: Thursday, July 10, 2003 1:58 PMTo: [EMAIL PROTECTED]Subject: Re: Simple MessageContext problem... 1) Is this the username/password for the HTTP Basic Authentication header

RE: Simple MessageContext problem...

2003-07-10 Thread Chen, Li (Research, YOH)
MessageContext problem... 1) Is this the username/password for the HTTP Basic Authentication header or for a SOAP security header? 2) how can we extract the userid password for SOAP security header in AXIS handler? "Chen, Li (Research, YOH)" [EMAIL PROTECTED] wrot

(How) can I use MessageContext in service implementation?

2003-03-28 Thread Hardi Rokk
Hi everyone, I am newby to axis, therefore my question might be little silly, but... When I set the user password and username in call I can read those on server-side from MessageContext. Thats good in handlers, but I would like to use this username in my service code (to check the rights

Fwd: messageContext

2003-03-04 Thread John Chen
Sorry if you got this message twice, but I was not the mailing list earlier. If anyone can help, it would be much appreciated~!! John Date: Mon, 03 Mar 2003 12:38:16 -0800 To: [EMAIL PROTECTED] From: John L. Chen [EMAIL PROTECTED] Subject: messageContext I am attempting to use

AW: messageContext

2003-03-04 Thread Oliver Adler
-Ursprüngliche Nachricht- Von: John Chen [mailto:[EMAIL PROTECTED] Gesendet: Di 04.03.2003 20.29 Uhr An: [EMAIL PROTECTED] Cc: Betreff: Fwd: messageContext Sorry if you got this message twice, but I was not the mailing list earlier. If anyone

MessageContext

2003-01-27 Thread Cory Wilkerson
RequestHandler getInstance() { RequestHandler handler = null; MessageContext mc = MessageContext.getCurrentContext(); if (mc != null mc.getService() != null) { String serviceName = mc.getService().getName(); if (serviceName != null

RE: MessageContext

2003-01-27 Thread Cory Wilkerson
[mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 12:06 PM To: [EMAIL PROTECTED] Subject: Re: MessageContext Hi Cory, My understanding is that this is thread-safe, because MessageContext.getCurrentContext() uses a ThreadLocal variable to get the current context (so each separate thread would

Axis MessageContext

2003-01-24 Thread Cory Wilkerson
Two questions: 1) Like servlets, is there exactly one instance of the service I've exposed via axis? 2) If so, can I operate under the assumption that MessageContext.getCurrentContext() directly correlates to the current request? Much like Thread.currentThread()? Thanks! Cory

RE: Axis MessageContext

2003-01-24 Thread Cory Wilkerson
://www.jcp.org/aboutJava/communityprocess/final/jsr053/ (see srv.2.2). Thanks for the clarification on MessageContext... Cory -Original Message- From: Wes Devauld [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 9:38 AM To: [EMAIL PROTECTED] Subject: Re: Axis MessageContext Firstly

MessageContext and OperationDesc

2003-01-17 Thread Brian Madigan
Handler implementation question: Do MessageContext instances that get passed to Handlers have an OperationDesc? I see that OperationDesc is a 'Work in progress' in the API. Is there a way (that works) to get the name of the operation in the current MessageContext? (from within a Handler) Also

Retrieving the parameters from MessageContext

2002-12-09 Thread jimmy coyne
Hi all Im developing a custom handler and need to retrieving the parameters passed in the soap call from the MessageContext .Is there a standard way of doing this? For example , getting the values xxx and yyy from the body of the envelope below soapenv:Body ns1:login soapenv:encodingStyle=http

MessageContext at server side

2002-06-11 Thread Wimmer, Matthias
Hello, I read that the current MessageContext can be retrieved at server side (using JWS files) very simple: you just add a MessageContext parameter to your method. I wrote the following method and published the whole class as a JWS file. public String echoMethod( MessageContext

RE: MessageContext at server side

2002-06-11 Thread Geza.Szocs
Try using MessageContext.getCurrentContext() -Original Message- From: ext Wimmer, Matthias [mailto:[EMAIL PROTECTED]] Sent: 11. June 2002 16:08 To: '[EMAIL PROTECTED]' Subject: MessageContext at server side Hello, I read that the current MessageContext can be retrieved at server side

RE: MessageContext at server side

2002-06-11 Thread Wimmer, Matthias
Wimmer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:10 AM To: [EMAIL PROTECTED] Subject: RE: MessageContext at server side Try using MessageContext.getCurrentContext() -Original Message- From: ext Wimmer, Matthias [mailto

an access to a MessageContext

2002-05-23 Thread Martin Senger
? For example, to get hand on the MessageContext would be perfect. Note please that my provider is java:RPC, not java:MSG. Thanks for any help or pointers. Martin -- Martin Senger EMBL Outstation - Hinxton[EMAIL PROTECTED] European Bioinformatics InstitutePhone

RE: an access to a MessageContext

2002-05-23 Thread thomas . cherel
Title: RE: an access to a MessageContext Is it not what org.apache.axis.MessageContext.getCurrentContext() is for? -Original Message- From: Martin Senger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 4:12 AM To: [EMAIL PROTECTED] Subject: an access to a MessageContext

RE: an access to a MessageContext

2002-05-23 Thread Martin Senger
Is it not what org.apache.axis.MessageContext.getCurrentContext() is for? Perfect! I have missed it - but it seems The solution I was looking for. Thanks, Martin -- Martin Senger EMBL Outstation - Hinxton[EMAIL PROTECTED] European Bioinformatics Institute

How to access MessageContext in a Web service?

2002-04-12 Thread Naveen Kumar.M
Hi, We have implemented a EJB as a web service. And our requirement is to access MessageContext object in the web service(EJB) methods. 1. We tried accessing it MessageContext object by passing it from the client to a method of the web service(EJB) but it was giving

Re: MessageContext?

2002-04-09 Thread Adam Greene
value=session / in your wsdd. - Original Message - From: Hozefa Botee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 11:29 PM Subject: RE: MessageContext? does that mean I call .setMaintainSession(true) in the service method as well? is that all that is required

Re: MessageContext?

2002-04-08 Thread Glen Daniels
Hi Hozefa: I wouldn't rely on the MessageContext being set in the constructor for your object, although it is interesting that we apparently make two service objects - I'll look into that to see what's up there. The MessageContext represents information about a PARTICULAR request/invocation

RE: MessageContext?

2002-04-08 Thread Hozefa Botee
: MessageContext? Hi Hozefa: I wouldn't rely on the MessageContext being set in the constructor for your object, although it is interesting that we apparently make two service objects - I'll look into that to see what's up there. The MessageContext represents information about

MessageContext?

2002-04-04 Thread Hozefa Botee
If I want to access the MessageContext to add a header to the response from a client call, where is the appropriate place in my code to call MessageContext.getCurrentContext()? if I put it in the constructor of my service with some debugging code, it appears that the constructor gets called

RE: MessageContext argument in service method

2002-03-28 Thread Ramon Turnes
So, what does this mean, that the signature for Messaging style methods will change from: public class MyService { Document myMethod(MessageContext, Document xml) { } } to to sth like this?: public class MyService { Document myMethod(Document xml

RE: MessageContext argument in service method

2002-03-27 Thread Glen Daniels
PROTECTED]] Sent: Tuesday, March 26, 2002 7:48 AM To: '[EMAIL PROTECTED]' Subject: RE: MessageContext argument in service method You can do that if you are using Messaging style services. Ramón. -Original Message- From: Ken Weiner [mailto:[EMAIL PROTECTED]] Sent: Tuesday

RE: MessageContext argument in service method

2002-03-26 Thread Ramon Turnes
You can do that if you are using Messaging style services. Ramón. -Original Message- From: Ken Weiner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 2:49 AM To: [EMAIL PROTECTED] Subject: Re: MessageContext argument in service method Glen, Thank you so much

MessageContext argument in service method

2002-03-25 Thread Ken Weiner
the session object which I understand I can get from MessageContext.getSession() or set and get properties from MessageContext.setProperty() and MessageContext.getProperty(). How do I access MessageContext in my service? When I try adding it as the first argument to a method, my client throws

Re: MessageContext argument in service method

2002-03-25 Thread Ken Weiner
Glen, Thank you so much - that worked. Is having MessageContext as the first argument of a service method a thing of the past? -Ken - Original Message - From: Glen Daniels [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 25, 2002 1:52 PM Subject: RE: MessageContext argument