I checked bugzilla and found this bug : 

http://nagoya.apache.org/jira/browse/AXIS-1196

It says that I need to use 
call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT, 
    call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);


But how can I use these when I am using the following type of code  - is 
the set property a static call for some class?


SOAPMessage requestMsg = ... ;
SOAPConnection connection = ... ; 

requestMsg.getAttachmentIml().setSendType (Attachments.SEND_TYPE_DIME);
connection.call(requestMsg , endpoint);


Thanks 
James




[EMAIL PROTECTED] 
30/03/2004 11:33
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Re: AW: Change message content type






Thanks for the reply, but even though I have this line : 

                axisMessage.getAttachmentsImpl().setSendType(
 org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);

I still get the following header when I send : 

POST / HTTP/1.0
Content-Type: multipart/related; type="text/xml"; 
start="<482D4B8117BAD5FC24FD45688BECD007>"; 
boundary="----=_Part_0_33189144.1080631504155"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: 10.0.0.157
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 2607


But I want : 

Content-Type: application/dime 



Thanks again
James




"Dorner, Thomas" <[EMAIL PROTECTED]> 
30/03/2004 10:01
Please respond to
[EMAIL PROTECTED]


To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc

Subject
AW: Change message content type






Hi James,

get the MessageContext and setSendType !

//explicitly set format to DIME, default is MIME
Message rspmsg = 
AxisEngine.getCurrentMessageContext().getResponseMessage();
rspmsg.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Attachme
nts.SEND_TYPE_DIME);
 

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 30. M�rz 2004 11:00
An: [EMAIL PROTECTED]
Betreff: Change message content type


Hi 

Even though it might seem there is an obvious answer 
(message.getSoapPart().setContentType("")) I can't seem to be able to 
change the content type of the message from AXIS to the server to 
be anything other than text/xml

Specifically, I want to change it to being application/dime.

Can anybody help me with this? 

I am actually having problems specifiying DIME attachments too - does 
anyone have any pointers on how to use DimeMultiPart etc?

Thanks in advance.

James


This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 

prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.



This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.

Reply via email to