473,396 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

dime format exception

Hi All,

I use WSE 2.0 / DIME to send a zip file of size 9.2 MB. I send file of size less than this success fully but with this the client basically get the exception "dime format exception".

The code is follows..

what am I doing wrong here..?

Nirosh.
[WebMethod]
public bool PreviewMasterBookBackMatterHtml(string tstrUserId, string tstrContentId)
{
if ((tstrUserId != string.Empty)
&& (tstrContentId != string.Empty))
{
string lstrFilePath = this.lobjManagerPreviewContent.tcRequestPreviewMas terBookBackMatterHtml(tstrUserId
, tstrContentId);
if (lstrFilePath != null)
{
SoapContext respContext = ResponseSoapContext.Current;

DimeAttachment dimeAttach = new DimeAttachment(
".zip"
, TypeFormat.Unknown
, lstrFilePath);
respContext.Attachments.Add(dimeAttach);
return true;
}
else
{
throw new System.Web.Services.Protocols.SoapException(Conver t.ToString((int)this.lobjManagerPreviewContent.Las tServiceError)
, System.Web.Services.Protocols.SoapException.Server FaultCode);
}
}
else
{
throw new System.Web.Services.Protocols.SoapException(Conver t.ToString((int)TCErrors.ERROR_SERVICE_INSUFFICIEN T_PARAMETER)
, System.Web.Services.Protocols.SoapException.Client FaultCode);
}
}
Nov 17 '05 #1
0 1080

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Lavitsky | last post by:
Hi, I'm trying to connect using PHP5 to a web service created with the MS SOAP Toolkit3 that supports DIME attachments. PHP fails connecting to the service, for example: <?php $wsdl =...
2
by: Champika Nirosh | last post by:
Hi All, I posted this at "webserviceehnancement" but no reply please see I installed WSE 2.0 and then started to write a web service that use DIME. I fallowed...
0
by: Champika Nirosh | last post by:
Hi All, I use WSE 2.0 / DIME to send a zip file of size 9.2 MB. I send file of size less than this success fully but with this the client basically get the exception "dime format exception". ...
0
by: Ero | last post by:
Hello, I have a simple webmethod to send Dime attachments using WSE 2 : public void CreateDimedImage() {
3
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. For example say, I have a file resume.pdf stored somewhere on my server. How does the web service send the file to the client, so that...
0
by: Vaylor Trucks | last post by:
Using the .NET framework and WSE 1.0 SP1, I have built a web service which receives data from a web service client and saves it to disk in a text file, and it works with no problem. However, when...
0
by: Tom_B | last post by:
Trying to download a .wav file from a Java Axis web service that is using DIME. Unfortunately, the returned data is not properly formed so cannot use WSE with Dime handling to read the data. ...
0
by: daryl | last post by:
I have a situation where a webservice has worked fine in a development environment, but when placed into production has stopped working (although at one time it was). Using WSE 2.0/DIME, we...
1
by: pratishsoma | last post by:
Hi, I'm developing WebServices client in Visual Studio 2005. The Web Service is developed in java, Axis. The Web Service has a function to return Soap Response and an Attachment (DIME or MIME...
1
by: blackjack2150 | last post by:
Hi. I use WSE 2.0 to call a web service method which returns some attachments together with the response. The web service can send it's attachments using either MIME format(widely used in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.