Hi,
sorry this is a newbie question. I wanted to get the source
code from Thomas Dorner to work(sending a gif file as an
attachment back to the caller of a web service). But I'm stuck
with the client code. I did the following
0. Ran Java2WSDL on AXIS_HOME%/samples/userguide/example6. This
iche Nachricht-
Von: Tony Thompson [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 1. April 2004 15:38
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: AW: MessageContext.getCurrentContext() returns null
OK, forgive my stupidity, but I am trying to send an attachment back
from the server.
CTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 01, 2004 7:37 AM
Subject: Re: AW: MessageContext.getCurrentContext() returns null
> In your examples, what is "soapService" and "oService"?
>
> Is it possible that my service is not deplo
= MessageContext.get
if you use the stub and the skeleton!
I get also null from MessageContext
-Ursprüngliche Nachricht-
Von: Tony Thompson [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 1. April 2004 14:38
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: MessageContext.getCurre
hricht-
Von: Tony Thompson [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 1. April 2004 14:38
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: MessageContext.getCurrentContext() returns null
In your examples, what is "soapService" and "oService"?
Is it possible
d to
[EMAIL PROTECTED]
To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc
Subject
AW: AW: MessageContext.getCurrentContext() returns null
oService is your Service or your locator (both are Service or extend
Service!)
--> read my text and think about! ;)
Forget t
ext
-Ursprüngliche Nachricht-
Von: Tony Thompson [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 1. April 2004 14:38
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: AW: MessageContext.getCurrentContext() returns null
In your examples, what is "soapService" and "oService"?
In your examples, what is "soapService" and "oService"?
Is it possible that my service is not deployed correctly and that is
why the current message context is null?
Thanks.
Tony
>>> [EMAIL PROTECTED] 04/01/04 02:37AM >>>
You can handle your attachment like this - without using the
MessageConte
You can handle your attachment like this - without using the
MessageContext
Object[] attachments = soapService.getAttachments();
AttachmentPart attachPart = (AttachmentPart) attachments[0];
AttachmentPart attachPart1 = (AttachmentPart) attachments[1];
DataHandler arrow =