Thank you, 

it is working with this. 

I have some information for other persons that do the same as I did:
Don't call MessageContext.getCurrentContext().getResponseMessage() within
any JWS file. I did it and the result of the WebService RPC method was
"null" all the time.

best regards
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:[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
(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 msgContext, String arg ) {

            bla bla bla
            return arg;
       }

But it doesn't work in case of calling this method with only one string
parameter. I get this exception:
       Exception in thread "main" java.lang.IllegalArgumentException:
argument type mismatch
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
4)

Has anybody else had problems with this kind of retrieving the
MessageContext? Is there any other way to get the MessageContext?

best regards
Matthias Wimmer

Reply via email to