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!
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
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
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
)
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
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
, 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
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
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.
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
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
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
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
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
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
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
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
: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
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
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
[]) 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
RequestHandler getInstance() {
RequestHandler handler = null;
MessageContext mc = MessageContext.getCurrentContext();
if (mc != null mc.getService() != null) {
String serviceName = mc.getService().getName();
if (serviceName != null
[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
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
://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
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
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
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
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
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
? 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
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
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
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
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
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
: 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
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
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
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
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
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
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
65 matches
Mail list logo