> NagarajaRao wrote:
> 
> Hi ,
>  I want to return an Object as a response to a message. How should i
> do it?
> I tried to use SOAPContext.setProperty() at Server and then tried to
> fetch the same at Client. I am getting null. Please let me know.
> At Server:
>   SOAPContext resCtx
>   resCtx.setProperty("Vector" , "MyVector")
>   resCtx.setRootPart("Hello","text/xml");
> 
> At Client
>   Message msg
>  msg.send();
>  SOAPTransport st = msg.getSOAPTransport()
>  SOAPContext rCtx = st.getResponseSOAPContext()
>  Object o = rCtx.getProperty("MyVector");
> 
> I am getting o as null;
> 
> thanks & regards
> Nagaraja Rao

As I understand it, the setProperty, getProperty methods exist
so you can attach something to SOAPContext for use somewhere
else in the message processing. It has nothing to do with the
contents of the SOAP message.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Reply via email to