Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2008, 03:00 PM
Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
tinkywinky is on a distinguished road
Question axis 1.2 dime and mime attachments.
Hello !

i've got web service which receives an attachment from .NET service as DIME , adds this attachment to it's own response and sends back to client which accepts only MIME attachments.
When client receives attachment some data seems to be lost, if original file size were 356 000 bytes , client receives only 208 000 bytes.

would be glad to hear any solutions how to solve this! ^^,

Thanks in advance !

code looks something like that :

MyWebService service = new MyWebServiceLocator();

MyWebServiceSoap port = service.getenotarMyWebServiceSoap(new URL(serviceurl)); // .NET setvice url

org.apache.axis.client.Stub stub = (Stub) port;
stub.setTimeout(1000 * 60);
stub.setUsername(login);
stub.setPassword(pwd);
stub._setProperty(AxisEngine.PROP_DOMULTIREFS, new Boolean("false"));
stub._setProperty(Call.ATTACHMENT_ENCAPSULATION_FO RMAT,Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);

DocumentInfo dinf = port.downloadDocument(dokument_id); // gets document from .NET service

Object[] attachments = stub.getAttachments();

MessageContext.getCurrentContext().getResponseMess age().getAttachmentsImpl().setSendType(Attachments .SEND_TYPE_MIME);

try{
AttachmentPart ap = (AttachmentPart)attachments[0]; // always returns only 1 attachment .
MessageContext.getCurrentContext().getResponseMess age().addAttachmentPart(ap);

stub.clearAttachments();
}
catch (AxisFault e){
throw e;
}
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis Client accessing data on .Net webservice cfacile666 Web Frameworks 3 09-02-2008 12:35 PM
webservices axis.. kalpana Advanced Java 0 01-30-2008 07:06 PM
Axis 1.4 xerces memory leaks hlaprade Advanced Java 0 12-11-2007 01:42 AM
How to retrieve HttpSession from axis 2.0. snooze-g Advanced Java 0 10-02-2007 08:08 AM
java.lang.RuntimeException+ Axis Peter Advanced Java 1 07-05-2007 02:43 PM


All times are GMT +2. The time now is 07:43 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org