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 to ClientMain after calling a stub method, the message context
has disappeared.  After the SOAP response is processed, all relevant
context information is held in the Stub, Call, or Service object.

/Chris
http://cvs.apache.org/~haddadc



-----Original Message-----
From: Yan Lin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 5:09 PM
To: [EMAIL PROTECTED]
Subject: MessageContext doesn't work at client side?

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 with the service, but not accessible from
a client?

Thanks!

Gloria

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

Reply via email to